Class: Dependabot::Bundler::UpdateChecker::VersionResolver
- Inherits:
-
Object
- Object
- Dependabot::Bundler::UpdateChecker::VersionResolver
- 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
-
#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
constructor
A new instance of VersionResolver.
- #latest_allowable_version_incompatible_with_ruby? ⇒ Boolean
- #latest_resolvable_version_details ⇒ Object
Methods included from SharedBundlerHelpers
#base_directory, #handle_bundler_errors, #in_a_native_bundler_context, #inaccessible_git_dependencies, #jfrog_source, #private_registry_credentials, #retryable_error?, #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.
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'lib/dependabot/bundler/update_checker/version_resolver.rb', line 23 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 = @latest_allowable_version_incompatible_with_ruby = false end |
Instance Method Details
#latest_allowable_version_incompatible_with_ruby? ⇒ Boolean
50 51 52 |
# File 'lib/dependabot/bundler/update_checker/version_resolver.rb', line 50 def latest_allowable_version_incompatible_with_ruby? @latest_allowable_version_incompatible_with_ruby end |
#latest_resolvable_version_details ⇒ Object
45 46 47 48 |
# File 'lib/dependabot/bundler/update_checker/version_resolver.rb', line 45 def latest_resolvable_version_details @latest_resolvable_version_details ||= fetch_latest_resolvable_version_details end |