Class: Dependabot::Swift::UpdateChecker
- Inherits:
-
UpdateCheckers::Base
- Object
- UpdateCheckers::Base
- Dependabot::Swift::UpdateChecker
show all
- Defined in:
- lib/dependabot/swift/update_checker.rb,
lib/dependabot/swift/update_checker/version_resolver.rb,
lib/dependabot/swift/update_checker/requirements_updater.rb
Defined Under Namespace
Classes: RequirementsUpdater, VersionResolver
Instance Method Summary
collapse
Instance Method Details
#latest_resolvable_version ⇒ Object
21
22
23
|
# File 'lib/dependabot/swift/update_checker.rb', line 21
def latest_resolvable_version
@latest_resolvable_version ||= fetch_latest_resolvable_version
end
|
#latest_resolvable_version_with_no_unlock ⇒ Object
25
26
27
|
# File 'lib/dependabot/swift/update_checker.rb', line 25
def latest_resolvable_version_with_no_unlock
raise NotImplementedError
end
|
#latest_version ⇒ Object
17
18
19
|
# File 'lib/dependabot/swift/update_checker.rb', line 17
def latest_version
@latest_version ||= fetch_latest_version
end
|
#lowest_resolvable_security_fix_version ⇒ Object
33
34
35
36
37
38
39
|
# File 'lib/dependabot/swift/update_checker.rb', line 33
def lowest_resolvable_security_fix_version
raise "Dependency not vulnerable!" unless vulnerable?
return @lowest_resolvable_security_fix_version if defined?(@lowest_resolvable_security_fix_version)
@lowest_resolvable_security_fix_version = fetch_lowest_resolvable_security_fix_version
end
|
#lowest_security_fix_version ⇒ Object
29
30
31
|
# File 'lib/dependabot/swift/update_checker.rb', line 29
def lowest_security_fix_version
@lowest_security_fix_version ||= fetch_lowest_security_fix_version
end
|
#updated_requirements ⇒ Object
41
42
43
44
45
46
|
# File 'lib/dependabot/swift/update_checker.rb', line 41
def updated_requirements
RequirementsUpdater.new(
requirements: old_requirements,
target_version: preferred_resolvable_version
).updated_requirements
end
|