lib/dependabot/composer/update_checker/requirements_updater.rb in dependabot-composer-0.115.1 vs lib/dependabot/composer/update_checker/requirements_updater.rb in dependabot-composer-0.115.2
- old
+ new
@@ -52,11 +52,10 @@
raise "Unknown update strategy: #{update_strategy}"
end
# rubocop:disable Metrics/PerceivedComplexity
- # rubocop:disable Metrics/CyclomaticComplexity
def updated_requirement(req)
req_string = req[:requirement].strip
or_string_reqs = req_string.split(OR_SEPARATOR)
or_separator = req_string.match(OR_SEPARATOR)&.to_s || " || "
numeric_or_string_reqs = or_string_reqs.
@@ -81,10 +80,9 @@
new_req_string =
[new_req[:requirement], *branch_or_string_reqs].join(or_separator)
new_req.merge(requirement: new_req_string)
end
# rubocop:enable Metrics/PerceivedComplexity
- # rubocop:enable Metrics/CyclomaticComplexity
def updated_alias(req)
req_string = req[:requirement]
real_version = req_string.split(/\sas\s/).first.strip