Class: Dependabot::Python::UpdateChecker::LatestVersionFinder
- Inherits:
-
Object
- Object
- Dependabot::Python::UpdateChecker::LatestVersionFinder
- Defined in:
- lib/dependabot/python/update_checker/latest_version_finder.rb
Constant Summary collapse
- ENVIRONMENT_VARIABLE_REGEX =
/\$\{.+\}/.freeze
Instance Method Summary collapse
-
#initialize(dependency:, dependency_files:, credentials:, ignored_versions:) ⇒ LatestVersionFinder
constructor
A new instance of LatestVersionFinder.
- #latest_version ⇒ Object
- #latest_version_with_no_unlock ⇒ Object
Constructor Details
#initialize(dependency:, dependency_files:, credentials:, ignored_versions:) ⇒ LatestVersionFinder
Returns a new instance of LatestVersionFinder.
14 15 16 17 18 19 20 |
# File 'lib/dependabot/python/update_checker/latest_version_finder.rb', line 14 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_version ⇒ Object
22 23 24 |
# File 'lib/dependabot/python/update_checker/latest_version_finder.rb', line 22 def latest_version @latest_version ||= fetch_latest_version end |
#latest_version_with_no_unlock ⇒ Object
26 27 28 29 |
# File 'lib/dependabot/python/update_checker/latest_version_finder.rb', line 26 def latest_version_with_no_unlock @latest_version_with_no_unlock ||= fetch_latest_version_with_no_unlock end |