Class: Dependabot::Python::UpdateChecker::LatestVersionFinder
- Inherits:
-
Dependabot::Package::PackageLatestVersionFinder
- Object
- Dependabot::Package::PackageLatestVersionFinder
- Dependabot::Python::UpdateChecker::LatestVersionFinder
- Extended by:
- T::Sig
- Defined in:
- lib/dependabot/python/update_checker/latest_version_finder.rb
Instance Method Summary collapse
Instance Method Details
#cooldown_enabled? ⇒ Boolean
36 37 38 39 40 41 42 43 44 |
# File 'lib/dependabot/python/update_checker/latest_version_finder.rb', line 36 def cooldown_enabled? return false if .nil? cooldown = T.must() cooldown.default_days.to_i.positive? || cooldown.semver_major_days.to_i.positive? || cooldown.semver_minor_days.to_i.positive? || cooldown.semver_patch_days.to_i.positive? end |
#package_details ⇒ Object
27 28 29 30 31 32 33 |
# File 'lib/dependabot/python/update_checker/latest_version_finder.rb', line 27 def package_details @package_details ||= Package::PackageDetailsFetcher.new( dependency: dependency, dependency_files: dependency_files, credentials: credentials ).fetch end |