Class: Dependabot::Hex::UpdateChecker::VersionResolver

Inherits:
Object
  • Object
show all
Defined in:
lib/dependabot/hex/update_checker/version_resolver.rb

Instance Method Summary collapse

Constructor Details

#initialize(dependency:, credentials:, original_dependency_files:, prepared_dependency_files:) ⇒ VersionResolver

Returns a new instance of VersionResolver.



14
15
16
17
18
19
20
# File 'lib/dependabot/hex/update_checker/version_resolver.rb', line 14

def initialize(dependency:, credentials:,
               original_dependency_files:, prepared_dependency_files:)
  @dependency = dependency
  @original_dependency_files = original_dependency_files
  @prepared_dependency_files = prepared_dependency_files
  @credentials = credentials
end

Instance Method Details

#latest_resolvable_versionObject



22
23
24
# File 'lib/dependabot/hex/update_checker/version_resolver.rb', line 22

def latest_resolvable_version
  @latest_resolvable_version ||= fetch_latest_resolvable_version
end