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

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
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.



21
22
23
24
25
26
27
28
29
30
31
32
# File 'lib/dependabot/bundler/update_checker/latest_version_finder.rb', line 21

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



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

def latest_version_details
  @latest_version_details ||= fetch_latest_version_details
end

#lowest_security_fix_versionObject



38
39
40
# File 'lib/dependabot/bundler/update_checker/latest_version_finder.rb', line 38

def lowest_security_fix_version
  @lowest_security_fix_version ||= fetch_lowest_security_fix_version
end