From e951fe68c52b3dbff8cd6b0f822986508de3f9cb Mon Sep 17 00:00:00 2001 From: Colby Swandale Date: Wed, 4 Oct 2017 23:14:08 +1100 Subject: source ruby global config dir from Gem::ConfigFile::SYSTEM_WIDE_CONFIG_FILE --- lib/bundler/env.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }] -- cgit v1.2.1