Class: Dependabot::Composer::UpdateChecker::LatestVersionFinder

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

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of LatestVersionFinder.



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

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

Instance Method Details

#latest_versionObject



27
28
29
# File 'lib/dependabot/composer/update_checker/latest_version_finder.rb', line 27

def latest_version
  @latest_version ||= fetch_latest_version
end

#lowest_security_fix_versionObject



31
32
33
# File 'lib/dependabot/composer/update_checker/latest_version_finder.rb', line 31

def lowest_security_fix_version
  @lowest_security_fix_version ||= fetch_lowest_security_fix_version
end