ruby-changes:61513
From: David <ko1@a...>
Date: Fri, 5 Jun 2020 07:33:44 +0900 (JST)
Subject: [ruby-changes:61513] 5c924f597f (master): [rubygems/rubygems] Make `forgotten_command_line_options` always "forget" options
https://git.ruby-lang.org/ruby.git/commit/?id=5c924f597f From 5c924f597f7d633543589de152d09011a3fc2d21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= <deivid.rodriguez@r...> Date: Thu, 28 May 2020 18:04:41 +0200 Subject: [rubygems/rubygems] Make `forgotten_command_line_options` always "forget" options https://github.com/rubygems/rubygems/commit/4d39338670 diff --git a/spec/bundler/support/helpers.rb b/spec/bundler/support/helpers.rb index e487a86..c9d292a 100644 --- a/spec/bundler/support/helpers.rb +++ b/spec/bundler/support/helpers.rb @@ -131,12 +131,10 @@ module Spec https://github.com/ruby/ruby/blob/trunk/spec/bundler/support/helpers.rb#L131 bang :bundle def forgotten_command_line_options(options) - remembered = Bundler::VERSION.split(".", 2).first == "2" options = options.map do |k, v| v = '""' if v && v.to_s.empty? [k, v] end - return Hash[options] if remembered options.each do |k, v| if v.nil? bundle! "config unset #{k}" -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/