From ad80fb9ffe5ab73e05784237de8d8b7d03784867 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADt=20Ondruch?= Date: Fri, 4 Oct 2013 22:13:11 +0200 Subject: [PATCH] Do not modify global Specification.dirs during installation. --- lib/rubygems/dependency_installer.rb | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lib/rubygems/dependency_installer.rb b/lib/rubygems/dependency_installer.rb index e7c489a..5123fce 100644 --- a/lib/rubygems/dependency_installer.rb +++ b/lib/rubygems/dependency_installer.rb @@ -74,12 +74,6 @@ class Gem::DependencyInstaller @only_install_dir = !!options[:install_dir] @install_dir = options[:install_dir] || Gem.dir - if options[:install_dir] then - # HACK shouldn't change the global settings, needed for -i behavior - # maybe move to the install command? See also github #442 - Gem::Specification.dirs = @install_dir - end - options = DEFAULT_OPTIONS.merge options @bin_dir = options[:bin_dir] -- 1.8.3.1