Class: Dependabot::Gradle::UpdateChecker
- Inherits:
-
UpdateCheckers::Base
- Object
- UpdateCheckers::Base
- Dependabot::Gradle::UpdateChecker
show all
- Defined in:
- lib/dependabot/gradle/update_checker.rb,
lib/dependabot/gradle/update_checker/version_finder.rb,
lib/dependabot/gradle/update_checker/requirements_updater.rb,
lib/dependabot/gradle/update_checker/multi_dependency_updater.rb
Defined Under Namespace
Classes: MultiDependencyUpdater, RequirementsUpdater, VersionFinder
Instance Method Summary
collapse
Instance Method Details
#latest_resolvable_version ⇒ Object
18
19
20
21
22
23
24
25
26
27
28
|
# File 'lib/dependabot/gradle/update_checker.rb', line 18
def latest_resolvable_version
return nil if version_comes_from_multi_dependency_property?
return nil if version_comes_from_dependency_set?
latest_version
end
|
#latest_resolvable_version_with_no_unlock ⇒ Object
30
31
32
33
34
35
36
37
38
39
|
# File 'lib/dependabot/gradle/update_checker.rb', line 30
def latest_resolvable_version_with_no_unlock
nil
end
|
#latest_version ⇒ Object
14
15
16
|
# File 'lib/dependabot/gradle/update_checker.rb', line 14
def latest_version
latest_version_details&.fetch(:version)
end
|
#requirements_unlocked_or_can_be? ⇒ Boolean
54
55
56
57
58
|
# File 'lib/dependabot/gradle/update_checker.rb', line 54
def requirements_unlocked_or_can_be?
!dependency.version.include?("$")
end
|
#updated_requirements ⇒ Object
41
42
43
44
45
46
47
48
49
50
51
52
|
# File 'lib/dependabot/gradle/update_checker.rb', line 41
def updated_requirements
property_names =
declarations_using_a_property.
map { |req| req.dig(:metadata, :property_name) }
RequirementsUpdater.new(
requirements: dependency.requirements,
latest_version: latest_version&.to_s,
source_url: latest_version_details&.fetch(:source_url),
properties_to_update: property_names
).updated_requirements
end
|