diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2021-11-05 13:27:17 +0100 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2021-11-05 23:20:48 +0900 |
commit | f5a4fdae251901d07cc043918c329b797b2ed094 (patch) | |
tree | 7078abb1502a8b65f5431ad77a41898905bf76e9 /lib/rubygems/commands/setup_command.rb | |
parent | 87a8b22455128adc4c3cdd5c1e0c4d25ae1edac3 (diff) |
[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
Diffstat (limited to 'lib/rubygems/commands/setup_command.rb')
-rw-r--r-- | lib/rubygems/commands/setup_command.rb | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/rubygems/commands/setup_command.rb b/lib/rubygems/commands/setup_command.rb index dd4771b7b9..2041d67c0d 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: 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' |