From 167dac74b75b8a6b5aae89ab2a7a0b739184cda3 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Fri, 2 Jan 2015 13:35:36 +0000 Subject: utils: tweak install_gem_setup_path to not warn. If the `Gem.user_dir/bin` is not already in the PATH it'll complain unnecessarily (as we add it to the PATH ourselves) so just add it to the PATH before running the install. --- Library/Homebrew/utils.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Library') diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb index c7e61e379..c48671feb 100644 --- a/Library/Homebrew/utils.rb +++ b/Library/Homebrew/utils.rb @@ -122,10 +122,10 @@ module Homebrew def self.install_gem_setup_path! gem return if quiet_system "gem", "list", "--installed", gem - system "gem", "install", "--no-ri", "--no-rdoc", - "--user-install", gem require "rubygems" ENV["PATH"] = "#{Gem.user_dir}/bin:#{ENV["PATH"]}" + system "gem", "install", "--no-ri", "--no-rdoc", + "--user-install", gem end end -- cgit v1.2.3