Class: Dependabot::Bundler::MetadataFinder

Inherits:
MetadataFinders::Base
  • Object
show all
Defined in:
lib/dependabot/bundler/metadata_finder.rb

Constant Summary collapse

SOURCE_KEYS =
%w(
  source_code_uri
  homepage_uri
  wiki_uri
  bug_tracker_uri
  documentation_uri
  changelog_uri
  mailing_list_uri
  download_uri
).freeze

Instance Method Summary collapse

Instance Method Details

#homepage_urlObject


21
22
23
24
25
26
# File 'lib/dependabot/bundler/metadata_finder.rb', line 21

def homepage_url
  return super unless %w(default rubygems).include?(new_source_type)
  return super unless rubygems_api_response["homepage_uri"]

  rubygems_api_response["homepage_uri"]
end