lib/dependabot/composer/update_checker/requirements_updater.rb in dependabot-composer-0.105.8 vs lib/dependabot/composer/update_checker/requirements_updater.rb in dependabot-composer-0.106.0
- old
+ new
@@ -22,17 +22,16 @@
SEPARATOR = /(?:#{AND_SEPARATOR})|(?:#{OR_SEPARATOR})/.freeze
ALLOWED_UPDATE_STRATEGIES =
%i(widen_ranges bump_versions bump_versions_if_necessary).freeze
def initialize(requirements:, update_strategy:,
- latest_version:, latest_resolvable_version:)
+ latest_resolvable_version:)
@requirements = requirements
@update_strategy = update_strategy
check_update_strategy
- @latest_version = version_class.new(latest_version) if latest_version
return unless latest_resolvable_version
@latest_resolvable_version =
version_class.new(latest_resolvable_version)
end
@@ -44,10 +43,10 @@
end
private
attr_reader :requirements, :update_strategy,
- :latest_version, :latest_resolvable_version
+ :latest_resolvable_version
def check_update_strategy
return if ALLOWED_UPDATE_STRATEGIES.include?(update_strategy)
raise "Unknown update strategy: #{update_strategy}"