ruby-changes:61510
From: David <ko1@a...>
Date: Fri, 5 Jun 2020 07:33:38 +0900 (JST)
Subject: [ruby-changes:61510] 97d05c9db3 (master): [rubygems/rubygems] Remove unnecessary option mutation
https://git.ruby-lang.org/ruby.git/commit/?id=97d05c9db3 From 97d05c9db38f92b214cd30bb821ce29add20f082 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= <deivid.rodriguez@r...> Date: Thu, 28 May 2020 23:00:19 +0200 Subject: [rubygems/rubygems] Remove unnecessary option mutation https://github.com/rubygems/rubygems/commit/744c03d144 diff --git a/lib/bundler/cli/install.rb b/lib/bundler/cli/install.rb index dcd8d7c..ed21485 100644 --- a/lib/bundler/cli/install.rb +++ b/lib/bundler/cli/install.rb @@ -161,14 +161,11 @@ module Bundler https://github.com/ruby/ruby/blob/trunk/lib/bundler/cli/install.rb#L161 without |= Bundler.settings[:without].map(&:to_s) without -= options[:with] if options[:with] - options[:with] = with - options[:without] = without - # need to nil them out first to get around validation for backwards compatibility Bundler.settings.set_command_option :without, nil Bundler.settings.set_command_option :with, nil - Bundler.settings.set_command_option :without, options[:without] - options[:with] - Bundler.settings.set_command_option :with, options[:with] + Bundler.settings.set_command_option :without, without - with + Bundler.settings.set_command_option :with, with end def normalize_settings -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/