summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColby Swandale <colby@taplaboratories.com>2017-10-04 23:14:08 +1100
committerColby Swandale <colby@taplaboratories.com>2017-10-04 23:37:57 +1100
commitf0ff8fc7b6b7ff14166e416359cbd4a3bf9105c2 (patch)
treefba7af854c1c0da3bd39d30265415851d84d9133
parentef569f46b08fc67c6993b6153c4abd7e01c9af3e (diff)
downloadbundler-colby/gem-env-dir.tar.gz
source ruby global config dir from Gem::ConfigFile::SYSTEM_WIDE_CONFIG_FILEcolby/gem-env-dir
-rw-r--r--lib/bundler/env.rb2
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) }]