Class: Dependabot::Cargo::UpdateChecker::LatestVersionFinder

Inherits:
Package::PackageLatestVersionFinder
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/dependabot/cargo/update_checker/latest_version_finder.rb

Instance Method Summary collapse

Instance Method Details

#latest_version(language_version: nil) ⇒ Object



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

def latest_version(language_version: nil)
  @latest_version ||= fetch_latest_version(language_version: language_version)
end

#lowest_security_fix_version(language_version: nil) ⇒ Object



41
42
43
# File 'lib/dependabot/cargo/update_checker/latest_version_finder.rb', line 41

def lowest_security_fix_version(language_version: nil)
  @lowest_security_fix_version ||= fetch_lowest_security_fix_version(language_version: language_version)
end

#package_detailsObject



21
22
23
24
25
26
27
# File 'lib/dependabot/cargo/update_checker/latest_version_finder.rb', line 21

def package_details
  @package_details ||= Package::PackageDetailsFetcher.new(
    dependency: dependency,
    dependency_files: dependency_files,
    credentials: credentials
  ).fetch
end