Class: Dependabot::Python::UpdateChecker::LatestVersionFinder

Inherits:
Object
  • Object
show all
Defined in:
lib/dependabot/python/update_checker/latest_version_finder.rb

Instance Method Summary collapse

Constructor Details

#initialize(dependency:, dependency_files:, credentials:, ignored_versions:, security_advisories:) ⇒ LatestVersionFinder

Returns a new instance of LatestVersionFinder.



15
16
17
18
19
20
21
22
# File 'lib/dependabot/python/update_checker/latest_version_finder.rb', line 15

def initialize(dependency:, dependency_files:, credentials:,
               ignored_versions:, security_advisories:)
  @dependency          = dependency
  @dependency_files    = dependency_files
  @credentials         = credentials
  @ignored_versions    = ignored_versions
  @security_advisories = security_advisories
end

Instance Method Details

#latest_versionObject



24
25
26
# File 'lib/dependabot/python/update_checker/latest_version_finder.rb', line 24

def latest_version
  @latest_version ||= fetch_latest_version
end

#latest_version_with_no_unlockObject



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

def latest_version_with_no_unlock
  @latest_version_with_no_unlock ||=
    fetch_latest_version_with_no_unlock
end

#lowest_security_fix_versionObject



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

def lowest_security_fix_version
  @lowest_security_fix_version ||= fetch_lowest_security_fix_version
end