Class: Dependabot::Python::UpdateChecker::LatestVersionFinder

Inherits:
Dependabot::Package::PackageLatestVersionFinder
  • Object
show all
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

Returns:

  • (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 cooldown_options.nil?

  cooldown = T.must(cooldown_options)
  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_detailsObject



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