Class: Dependabot::Bundler::UpdateChecker::LatestVersionFinder

Inherits:
Object
  • Object
show all
Defined in:
lib/dependabot/bundler/update_checker/latest_version_finder.rb,
lib/dependabot/bundler/update_checker/latest_version_finder/dependency_source.rb

Defined Under Namespace

Classes: DependencySource

Instance Method Summary collapse

Constructor Details

#initialize(dependency:, dependency_files:, repo_contents_path: nil, credentials:, ignored_versions:, raise_on_ignored: false, security_advisories:, options:) ⇒ LatestVersionFinder

Returns a new instance of LatestVersionFinder.



17
18
19
20
21
22
23
24
25
26
27
28
# File 'lib/dependabot/bundler/update_checker/latest_version_finder.rb', line 17

def initialize(dependency:, dependency_files:, repo_contents_path: nil,
               credentials:, ignored_versions:, raise_on_ignored: false,
               security_advisories:, options:)
  @dependency          = dependency
  @dependency_files    = dependency_files
  @repo_contents_path  = repo_contents_path
  @credentials         = credentials
  @ignored_versions    = ignored_versions
  @raise_on_ignored    = raise_on_ignored
  @security_advisories = security_advisories
  @options             = options
end

Instance Method Details

#latest_version_detailsObject



30
31
32
# File 'lib/dependabot/bundler/update_checker/latest_version_finder.rb', line 30

def latest_version_details
  @latest_version_details ||= fetch_latest_version_details
end

#lowest_security_fix_versionObject



34
35
36
# File 'lib/dependabot/bundler/update_checker/latest_version_finder.rb', line 34

def lowest_security_fix_version
  @lowest_security_fix_version ||= fetch_lowest_security_fix_version
end