Class: Dependabot::Python::UpdateChecker::PipVersionResolver
- Inherits:
-
Object
- Object
- Dependabot::Python::UpdateChecker::PipVersionResolver
- Defined in:
- lib/dependabot/python/update_checker/pip_version_resolver.rb
Instance Method Summary collapse
-
#initialize(dependency:, dependency_files:, credentials:, ignored_versions:, raise_on_ignored: false, security_advisories:) ⇒ PipVersionResolver
constructor
A new instance of PipVersionResolver.
- #latest_resolvable_version ⇒ Object
- #latest_resolvable_version_with_no_unlock ⇒ Object
- #lowest_resolvable_security_fix_version ⇒ Object
Constructor Details
#initialize(dependency:, dependency_files:, credentials:, ignored_versions:, raise_on_ignored: false, security_advisories:) ⇒ PipVersionResolver
Returns a new instance of PipVersionResolver.
13 14 15 16 17 18 19 20 21 22 |
# File 'lib/dependabot/python/update_checker/pip_version_resolver.rb', line 13 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_resolvable_version ⇒ Object
24 25 26 |
# File 'lib/dependabot/python/update_checker/pip_version_resolver.rb', line 24 def latest_resolvable_version latest_version_finder.latest_version(python_version: language_version_manager.python_version) end |
#latest_resolvable_version_with_no_unlock ⇒ Object
28 29 30 31 |
# File 'lib/dependabot/python/update_checker/pip_version_resolver.rb', line 28 def latest_resolvable_version_with_no_unlock latest_version_finder .latest_version_with_no_unlock(python_version: language_version_manager.python_version) end |
#lowest_resolvable_security_fix_version ⇒ Object
33 34 35 36 |
# File 'lib/dependabot/python/update_checker/pip_version_resolver.rb', line 33 def lowest_resolvable_security_fix_version latest_version_finder .lowest_security_fix_version(python_version: language_version_manager.python_version) end |