Class: Dependabot::Conda::UpdateChecker::LatestVersionFinder

Inherits:
Package::PackageLatestVersionFinder
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/dependabot/conda/update_checker/latest_version_finder.rb

Instance Method Summary collapse

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(cooldown_options, T.nilable(Dependabot::Package::ReleaseCooldownOptions))
  @conda_client = T.let(CondaRegistryClient.new, CondaRegistryClient)

  super
end

Instance Method Details

#cooldown_enabled?Boolean

Returns:

  • (Boolean)


56
57
58
# File 'lib/dependabot/conda/update_checker/latest_version_finder.rb', line 56

def cooldown_enabled?
  true
end

#package_detailsObject



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