Class: Dependabot::Bundler::UpdateChecker::LatestVersionFinder
- Inherits:
-
Object
- Object
- Dependabot::Bundler::UpdateChecker::LatestVersionFinder
- Extended by:
- T::Sig
- Defined in:
- lib/dependabot/bundler/update_checker/latest_version_finder.rb,
lib/dependabot/bundler/update_checker/latest_version_finder/dependency_source.rb
Defined Under Namespace
Classes: DependencySource
Instance Method Summary collapse
-
#initialize(dependency:, dependency_files:, repo_contents_path: nil, credentials:, ignored_versions:, raise_on_ignored: false, security_advisories:, options:) ⇒ LatestVersionFinder
constructor
A new instance of LatestVersionFinder.
- #latest_version_details ⇒ Object
- #lowest_security_fix_version ⇒ Object
Constructor Details
#initialize(dependency:, dependency_files:, repo_contents_path: nil, credentials:, ignored_versions:, raise_on_ignored: false, security_advisories:, options:) ⇒ LatestVersionFinder
Returns a new instance of LatestVersionFinder.
21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/dependabot/bundler/update_checker/latest_version_finder.rb', line 21 def initialize(dependency:, dependency_files:, repo_contents_path: nil, credentials:, ignored_versions:, raise_on_ignored: false, security_advisories:, options:) @dependency = dependency @dependency_files = dependency_files @repo_contents_path = repo_contents_path @credentials = credentials @ignored_versions = ignored_versions @raise_on_ignored = raise_on_ignored @security_advisories = security_advisories @options = end |
Instance Method Details
#latest_version_details ⇒ Object
34 35 36 |
# File 'lib/dependabot/bundler/update_checker/latest_version_finder.rb', line 34 def latest_version_details @latest_version_details ||= fetch_latest_version_details end |
#lowest_security_fix_version ⇒ Object
38 39 40 |
# File 'lib/dependabot/bundler/update_checker/latest_version_finder.rb', line 38 def lowest_security_fix_version @lowest_security_fix_version ||= fetch_lowest_security_fix_version end |