Class: Dependabot::Swift::UpdateChecker::VersionResolver

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

Instance Method Summary collapse

Constructor Details

#initialize(dependency:, manifest:, lockfile:, repo_contents_path:, credentials:) ⇒ VersionResolver

Returns a new instance of VersionResolver.



12
13
14
15
16
17
18
# File 'lib/dependabot/swift/update_checker/version_resolver.rb', line 12

def initialize(dependency:, manifest:, lockfile:, repo_contents_path:, credentials:)
  @dependency         = dependency
  @manifest           = manifest
  @lockfile           = lockfile
  @credentials        = credentials
  @repo_contents_path = repo_contents_path
end

Instance Method Details

#latest_resolvable_versionObject



20
21
22
# File 'lib/dependabot/swift/update_checker/version_resolver.rb', line 20

def latest_resolvable_version
  @latest_resolvable_version ||= fetch_latest_resolvable_version
end