Class: Dependabot::Hex::UpdateChecker::VersionResolver
- Inherits:
-
Object
- Object
- Dependabot::Hex::UpdateChecker::VersionResolver
- Extended by:
- T::Sig
- Defined in:
- lib/dependabot/hex/update_checker/version_resolver.rb
Instance Method Summary collapse
-
#initialize(dependency:, credentials:, original_dependency_files:, prepared_dependency_files:) ⇒ VersionResolver
constructor
A new instance of VersionResolver.
- #latest_resolvable_version ⇒ Object
Constructor Details
#initialize(dependency:, credentials:, original_dependency_files:, prepared_dependency_files:) ⇒ VersionResolver
Returns a new instance of VersionResolver.
28 29 30 31 32 33 34 35 36 37 38 39 |
# File 'lib/dependabot/hex/update_checker/version_resolver.rb', line 28 def initialize( dependency:, credentials:, original_dependency_files:, prepared_dependency_files: ) @dependency = T.let(dependency, Dependabot::Dependency) @original_dependency_files = T.let(original_dependency_files, T::Array[Dependabot::DependencyFile]) @prepared_dependency_files = T.let(prepared_dependency_files, T::Array[Dependabot::DependencyFile]) @credentials = T.let(credentials, T::Array[Dependabot::Credential]) @latest_resolvable_version = T.let(nil, T.nilable(T.any(Dependabot::Version, String, T::Boolean))) end |
Instance Method Details
#latest_resolvable_version ⇒ Object
42 43 44 |
# File 'lib/dependabot/hex/update_checker/version_resolver.rb', line 42 def latest_resolvable_version @latest_resolvable_version ||= fetch_latest_resolvable_version end |