Class: Dependabot::Conda::UpdateChecker::LatestVersionFinder
- Inherits:
-
Package::PackageLatestVersionFinder
- Object
- Package::PackageLatestVersionFinder
- Dependabot::Conda::UpdateChecker::LatestVersionFinder
- Extended by:
- T::Sig
- Defined in:
- lib/dependabot/conda/update_checker/latest_version_finder.rb
Instance Method Summary collapse
- #cooldown_enabled? ⇒ Boolean
-
#initialize(dependency:, dependency_files:, credentials:, ignored_versions:, raise_on_ignored:, security_advisories:, cooldown_options:) ⇒ LatestVersionFinder
constructor
A new instance of LatestVersionFinder.
- #package_details ⇒ Object
Constructor Details
#initialize(dependency:, dependency_files:, credentials:, ignored_versions:, raise_on_ignored:, security_advisories:, cooldown_options:) ⇒ LatestVersionFinder
Returns a new instance of LatestVersionFinder.
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
# File 'lib/dependabot/conda/update_checker/latest_version_finder.rb', line 30 def initialize( dependency:, dependency_files:, credentials:, ignored_versions:, raise_on_ignored:, security_advisories:, cooldown_options: ) @raise_on_ignored = T.let(raise_on_ignored, T::Boolean) @cooldown_options = T.let(, T.nilable(Dependabot::Package::ReleaseCooldownOptions)) @conda_client = T.let(CondaRegistryClient.new, CondaRegistryClient) super end |
Instance Method Details
#cooldown_enabled? ⇒ Boolean
56 57 58 |
# File 'lib/dependabot/conda/update_checker/latest_version_finder.rb', line 56 def cooldown_enabled? true end |
#package_details ⇒ Object
47 48 49 50 51 52 53 |
# File 'lib/dependabot/conda/update_checker/latest_version_finder.rb', line 47 def package_details @package_details ||= if pip_dependency? python_latest_version_finder.package_details else conda_package_details end end |