diff options
author | Colby Swandale <colby@taplaboratories.com> | 2017-10-04 23:14:08 +1100 |
---|---|---|
committer | Colby Swandale <colby@taplaboratories.com> | 2017-10-05 08:58:14 +1100 |
commit | e951fe68c52b3dbff8cd6b0f822986508de3f9cb (patch) | |
tree | f5d2a17519e1b77a99309e5268f9da01522c941d | |
parent | 4a53b530dd05e6288157e644e0ef30869e23dee3 (diff) | |
download | bundler-colby/ruby-env-dir.tar.gz |
source ruby global config dir from Gem::ConfigFile::SYSTEM_WIDE_CONFIG_FILEcolby/ruby-env-dir
-rw-r--r-- | lib/bundler/env.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/env.rb b/lib/bundler/env.rb index 437dafc65f..58fe20dbe7 100644 --- a/lib/bundler/env.rb +++ b/lib/bundler/env.rb @@ -104,7 +104,7 @@ module Bundler out << [" Platforms", Gem.platforms.join(", ")] out << ["Ruby", ruby_version] out << [" Full Path", Gem.ruby] - out << [" Config Dir", Gem::ConfigFile::SYSTEM_CONFIG_PATH] + 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) }] |