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.


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

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


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

def latest_version_details
  @latest_version_details ||= fetch_latest_version_details
end

#lowest_security_fix_versionObject


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

def lowest_security_fix_version
  @lowest_security_fix_version ||= fetch_lowest_security_fix_version
end