diff options
author | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-17 23:59:31 +0000 |
---|---|---|
committer | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-17 23:59:31 +0000 |
commit | 215fbc639fc63d4300a91ae4c8e30865f6a03f3c (patch) | |
tree | 13f0bc33bcdd0dca931c0af17a6ac1b70dd282f8 /lib/rubygems/commands/install_command.rb | |
parent | 9d4f37f51fb2ffdef5e318afb3cb81516dcba4f7 (diff) | |
download | ruby-215fbc639fc63d4300a91ae4c8e30865f6a03f3c.tar.gz |
Fix RubyGems for 1.9, r1780
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17393 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rubygems/commands/install_command.rb')
-rw-r--r-- | lib/rubygems/commands/install_command.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/rubygems/commands/install_command.rb b/lib/rubygems/commands/install_command.rb index 48cd3869f9..dad19380ea 100644 --- a/lib/rubygems/commands/install_command.rb +++ b/lib/rubygems/commands/install_command.rb @@ -50,7 +50,11 @@ class Gem::Commands::InstallCommand < Gem::Command installed_gems = [] - ENV['GEM_PATH'] = options[:install_dir] # HACK what does this do? + if options[:install_dir].nil? and RUBY_VERSION > '1.9' then + ENV.delete 'GEM_PATH' + else + ENV['GEM_PATH'] = options[:install_dir] # HACK what does this do? + end install_options = { :env_shebang => options[:env_shebang], |