Class: Dependabot::Bundler::UpdateChecker::VersionResolver

Inherits:
Object
  • Object
show all
Includes:
SharedBundlerHelpers
Defined in:
lib/dependabot/bundler/update_checker/version_resolver.rb

Constant Summary

Constants included from SharedBundlerHelpers

SharedBundlerHelpers::GIT_REF_REGEX, SharedBundlerHelpers::GIT_REGEX, SharedBundlerHelpers::PATH_REGEX, SharedBundlerHelpers::RETRYABLE_ERRORS, SharedBundlerHelpers::RETRYABLE_PRIVATE_REGISTRY_ERRORS

Instance Method Summary collapse

Methods included from SharedBundlerHelpers

#base_directory, #handle_bundler_errors, #in_a_native_bundler_context, #inaccessible_git_dependencies, #jfrog_source, #private_registry_credentials, #retryable_error?, #sanitized_lockfile_body, #write_temporary_dependency_files

Constructor Details

#initialize(dependency:, unprepared_dependency_files:, repo_contents_path: nil, credentials:, ignored_versions:, raise_on_ignored: false, replacement_git_pin: nil, remove_git_source: false, unlock_requirement: true, latest_allowable_version: nil, options:) ⇒ VersionResolver

Returns a new instance of VersionResolver.


21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# File 'lib/dependabot/bundler/update_checker/version_resolver.rb', line 21

def initialize(dependency:, unprepared_dependency_files:,
               repo_contents_path: nil, credentials:, ignored_versions:,
               raise_on_ignored: false,
               replacement_git_pin: nil, remove_git_source: false,
               unlock_requirement: true,
               latest_allowable_version: nil,
               options:)
  @dependency                  = dependency
  @unprepared_dependency_files = unprepared_dependency_files
  @credentials                 = credentials
  @repo_contents_path          = repo_contents_path
  @ignored_versions            = ignored_versions
  @raise_on_ignored            = raise_on_ignored
  @replacement_git_pin         = replacement_git_pin
  @remove_git_source           = remove_git_source
  @unlock_requirement          = unlock_requirement
  @latest_allowable_version    = latest_allowable_version
  @options                     = options
end

Instance Method Details

#latest_resolvable_version_detailsObject


41
42
43
44
# File 'lib/dependabot/bundler/update_checker/version_resolver.rb', line 41

def latest_resolvable_version_details
  @latest_resolvable_version_details ||=
    fetch_latest_resolvable_version_details
end