lib/dependabot/composer/update_checker/requirements_updater.rb in dependabot-composer-0.119.3 vs lib/dependabot/composer/update_checker/requirements_updater.rb in dependabot-composer-0.119.4
- old
+ new
@@ -94,10 +94,11 @@
new_version_string = latest_resolvable_version.to_s
new_req = req_string.sub(real_version, new_version_string)
req.merge(requirement: new_req)
end
+ # rubocop:disable Metrics/PerceivedComplexity
def widen_requirement(req, or_separator)
current_requirement = req[:requirement]
reqs = current_requirement.strip.split(SEPARATOR).map(&:strip)
updated_requirement =
@@ -113,9 +114,10 @@
update_version_string(current_requirement)
end
req.merge(requirement: updated_requirement)
end
+ # rubocop:enable Metrics/PerceivedComplexity
def update_requirement_version(req, or_separator)
current_requirement = req[:requirement]
reqs = current_requirement.strip.split(SEPARATOR).map(&:strip)