summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authordrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-02-18 23:15:49 +0000
committerdrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-02-18 23:15:49 +0000
commitaec0735f6dd816174fde5a33a6e2eb48c9c6abe4 (patch)
tree0ade8422a9047006529e7fc757dd08a888cf9035 /lib
parent10103e8cc7ce82027b5e96b7a5793ed4c27567b9 (diff)
* lib/rubygems/installer.rb: Fixed placement of executables with
--user-install. [ruby-trunk - Bug #7779] * test/rubygems/test_gem_installer.rb: Test for above. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39307 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/rubygems/installer.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/rubygems/installer.rb b/lib/rubygems/installer.rb
index 780a88b04c..a9ab4c7a5b 100644
--- a/lib/rubygems/installer.rb
+++ b/lib/rubygems/installer.rb
@@ -110,6 +110,7 @@ class Gem::Installer
if options[:user_install] and not options[:unpack] then
@gem_home = Gem.user_dir
+ @bin_dir = Gem.bindir gem_home unless options[:bin_dir]
check_that_user_bin_dir_is_in_path
end
end