Class: Dependabot::Bundler::UpdateChecker::LatestVersionFinder
- Inherits:
-
Object
- Object
- Dependabot::Bundler::UpdateChecker::LatestVersionFinder
- 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.
16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/dependabot/bundler/update_checker/latest_version_finder.rb', line 16 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
29 30 31 |
# File 'lib/dependabot/bundler/update_checker/latest_version_finder.rb', line 29 def latest_version_details @latest_version_details ||= fetch_latest_version_details end |
#lowest_security_fix_version ⇒ Object
33 34 35 |
# File 'lib/dependabot/bundler/update_checker/latest_version_finder.rb', line 33 def lowest_security_fix_version @lowest_security_fix_version ||= fetch_lowest_security_fix_version end |