aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike McQuaid2018-02-10 19:27:43 +0000
committerGitHub2018-02-10 19:27:43 +0000
commit021fe22e3c982b08346422d1e7897e929a709380 (patch)
tree93e3e7ce9d399821e0cebc2dab9999aa8754acf2
parent646d696135e51c1b2e3cd7cd3d70cf9106ef3893 (diff)
parent99dda758c40a83149300af80131a0078a2858552 (diff)
downloadbrew-021fe22e3c982b08346422d1e7897e929a709380.tar.bz2
Merge pull request #3781 from MikeMcQuaid/gem-path-home1.5.4
utils: only look for gems in GEM_HOME.
-rw-r--r--Library/Homebrew/utils.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb
index 989f05b45..03924dcef 100644
--- a/Library/Homebrew/utils.rb
+++ b/Library/Homebrew/utils.rb
@@ -200,6 +200,7 @@ module Homebrew
def install_gem_setup_path!(name, version = nil, executable = name)
# Match where our bundler gems are.
ENV["GEM_HOME"] = "#{ENV["HOMEBREW_LIBRARY"]}/Homebrew/vendor/bundle/ruby/#{RbConfig::CONFIG["ruby_version"]}"
+ ENV["GEM_PATH"] = ENV["GEM_HOME"]
# Make rubygems notice env changes.
Gem.clear_paths