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

ruby-changes:69607

From: David <ko1@a...>
Date: Fri, 5 Nov 2021 23:21:10 +0900 (JST)
Subject: [ruby-changes:69607] f5a4fdae25 (master): [rubygems/rubygems] Remove unnecessarily changing GEM_HOME

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

From f5a4fdae251901d07cc043918c329b797b2ed094 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?David=20Rodr=C3=ADguez?= <deivid.rodriguez@r...>
Date: Fri, 5 Nov 2021 13:27:17 +0100
Subject: [rubygems/rubygems] Remove unnecessarily changing GEM_HOME

At this point gem paths are already loaded and memoize. Changing
`GEM_HOME` has no effect.

https://github.com/rubygems/rubygems/commit/a1f62f0939
---
 lib/rubygems/commands/setup_command.rb | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/lib/rubygems/commands/setup_command.rb b/lib/rubygems/commands/setup_command.rb
index dd4771b7b95..2041d67c0d3 100644
--- a/lib/rubygems/commands/setup_command.rb
+++ b/lib/rubygems/commands/setup_command.rb
@@ -149,12 +149,6 @@ By default, this RubyGems will install gem as: https://github.com/ruby/ruby/blob/trunk/lib/rubygems/commands/setup_command.rb#L149
   def execute
     @verbose = Gem.configuration.really_verbose
 
-    install_destdir = options[:destdir]
-
-    unless install_destdir.empty?
-      ENV['GEM_HOME'] ||= prepend_destdir(Gem.default_dir)
-    end
-
     check_ruby_version
 
     require 'fileutils'
-- 
cgit v1.2.1


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

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