Class: Dependabot::UpdateCheckers::Python::Pip::LatestVersionFinder

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

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of LatestVersionFinder.



13
14
15
16
17
18
19
# File 'lib/dependabot/update_checkers/python/pip/latest_version_finder.rb', line 13

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

Instance Method Details

#latest_versionObject



21
22
23
# File 'lib/dependabot/update_checkers/python/pip/latest_version_finder.rb', line 21

def latest_version
  @latest_version ||= fetch_latest_version
end

#latest_version_with_no_unlockObject



25
26
27
28
# File 'lib/dependabot/update_checkers/python/pip/latest_version_finder.rb', line 25

def latest_version_with_no_unlock
  @latest_version_with_no_unlock ||=
    fetch_latest_version_with_no_unlock
end