summaryrefslogtreecommitdiff
path: root/tool/rbinstall.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-07-15 08:24:39 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-07-15 08:24:39 +0000
commita7f03a4659d34a459f915a41f260a1b9299ef219 (patch)
tree67ae8a7fa3a5187e93602955ad5b91bd7322ca13 /tool/rbinstall.rb
parent163c2994206805c3c717e8566878babf3621e994 (diff)
rbinstall.rb: respect DESTDIR
* lib/rubygems.rb (Gem.install): pass optinos to Gem::DependencyInstaller. * tool/rbinstall.rb (gem): respect DESTDIR. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46823 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool/rbinstall.rb')
-rwxr-xr-xtool/rbinstall.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb
index c31902b..5e582f7 100755
--- a/tool/rbinstall.rb
+++ b/tool/rbinstall.rb
@@ -721,7 +721,7 @@ install?(:ext, :comm, :gem) do
directories = Gem.ensure_gem_subdirectories(gem_dir, :mode => $dir_mode)
prepare "bundle gems", gem_dir, directories
Dir.glob(srcdir+'/gems/*.gem').each do |gem|
- Gem.install gem
+ Gem.install gem, install_dir: with_destdir(Gem.dir)
gemname = Pathname(gem).basename
puts "#{" "*30}#{gemname}"
end