diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-04-14 13:53:54 +0200 |
---|---|---|
committer | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-04-15 15:09:48 +0200 |
commit | d0fe3a054234f407ebd6b1ff9a35bf30ae67f020 (patch) | |
tree | 79e55e91da5a97acec8f22bfacf9893f8443a121 | |
parent | c26781539a3b12385a6905cc428d4001dd668e77 (diff) | |
download | bundler-d0fe3a054234f407ebd6b1ff9a35bf30ae67f020.tar.gz |
Remove unnecessary env variable checkingbundle_env_improvements
Rubygems already sets these paths from the environment, and once they
are set, it uses the paths and not the environment. So the check is
unnecessary and potentially misleading.
-rw-r--r-- | lib/bundler/env.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bundler/env.rb b/lib/bundler/env.rb index 80974b67ce..3216eb2776 100644 --- a/lib/bundler/env.rb +++ b/lib/bundler/env.rb @@ -100,8 +100,8 @@ module Bundler out << [" Full Path", Gem.ruby] out << [" Config Dir", Pathname.new(Gem::ConfigFile::SYSTEM_WIDE_CONFIG_FILE).dirname] out << ["RubyGems", Gem::VERSION] - out << [" Gem Home", ENV.fetch("GEM_HOME") { Gem.dir }] - out << [" Gem Path", ENV.fetch("GEM_PATH") { Gem.path.join(File::PATH_SEPARATOR) }] + out << [" Gem Home", Gem.dir] + out << [" Gem Path", Gem.path.join(File::PATH_SEPARATOR)] out << [" User Home", Gem.user_home] out << [" User Path", Gem.user_dir] out << [" Bin Dir", Gem.bindir] |