[前][次][番号順一覧][スレッド一覧]

ruby-changes:72747

From: David <ko1@a...>
Date: Sat, 30 Jul 2022 04:24:41 +0900 (JST)
Subject: [ruby-changes:72747] b515fdcc32 (master): [rubygems/rubygems] No need to set anything at all unless standalone is given

https://git.ruby-lang.org/ruby.git/commit/?id=b515fdcc32

From b515fdcc32a6a7d484c73f090fa2a58a8662e6ca Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?David=20Rodr=C3=ADguez?= <deivid.rodriguez@r...>
Date: Sun, 24 Jul 2022 21:58:13 +0200
Subject: [rubygems/rubygems] No need to set anything at all unless standalone
 is given

https://github.com/rubygems/rubygems/commit/d695c8da3e
---
 lib/bundler/cli/install.rb | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/lib/bundler/cli/install.rb b/lib/bundler/cli/install.rb
index e9b85f7f6f..1601fc6a98 100644
--- a/lib/bundler/cli/install.rb
+++ b/lib/bundler/cli/install.rb
@@ -147,8 +147,11 @@ module Bundler https://github.com/ruby/ruby/blob/trunk/lib/bundler/cli/install.rb#L147
     def normalize_settings
       Bundler.settings.set_command_option :path, nil if options[:system]
       Bundler.settings.set_command_option_if_given :path, options[:path]
-      Bundler.settings.temporary(:path_relative_to_cwd => false) do
-        Bundler.settings.set_command_option :path, "bundle" if options["standalone"] && Bundler.settings[:path].nil?
+
+      if options["standalone"] && Bundler.settings[:path].nil?
+        Bundler.settings.temporary(:path_relative_to_cwd => false) do
+          Bundler.settings.set_command_option :path, "bundle"
+        end
       end
 
       bin_option = options["binstubs"]
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]