diff options
| author | Markus Reiter | 2017-04-25 23:42:53 +0200 | 
|---|---|---|
| committer | Markus Reiter | 2017-04-30 21:11:27 +0200 | 
| commit | e221d0481a8f6bc324c507ece8e698b5f41c2d07 (patch) | |
| tree | 70a9c3dd17bea6b45f50f3eecae042f271dd7bab /Library/Homebrew/utils.rb | |
| parent | 3e4fe279b04393d480432371ff73bbb893bfe7d8 (diff) | |
| download | brew-e221d0481a8f6bc324c507ece8e698b5f41c2d07.tar.bz2 | |
Use `to_path_s` in `install_gem_setup_path!`.
Diffstat (limited to 'Library/Homebrew/utils.rb')
| -rw-r--r-- | Library/Homebrew/utils.rb | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb index edc540c45..972732ffe 100644 --- a/Library/Homebrew/utils.rb +++ b/Library/Homebrew/utils.rb @@ -190,10 +190,10 @@ module Homebrew      Gem::Specification.reset      # Add Gem binary directory and (if missing) Ruby binary directory to PATH. -    path = ENV["PATH"].split(File::PATH_SEPARATOR) -    path.unshift(RUBY_BIN) if which("ruby") != RUBY_PATH -    path.unshift(Gem.bindir) -    ENV["PATH"] = path.join(File::PATH_SEPARATOR) +    paths = ENV["PATH"].split(File::PATH_SEPARATOR) +    paths.unshift(RUBY_BIN) if which("ruby") != RUBY_PATH +    paths.unshift(Gem.bindir) +    ENV["PATH"] = paths.to_path_s      if Gem::Specification.find_all_by_name(name, version).empty?        ohai "Installing or updating '#{name}' gem" | 
