Skip to content

Commit

Permalink
Merge pull request #3781 from MikeMcQuaid/gem-path-home
Browse files Browse the repository at this point in the history
utils: only look for gems in GEM_HOME.
  • Loading branch information
MikeMcQuaid authored Feb 10, 2018
2 parents 646d696 + 99dda75 commit 021fe22
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Library/Homebrew/utils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ def system(cmd, *args)
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
Expand Down

0 comments on commit 021fe22

Please sign in to comment.