summaryrefslogtreecommitdiff
path: root/tool/rbinstall.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-12-28 14:49:39 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-12-28 14:49:39 +0000
commit34fbf57aaafee9390a0f7427eb90efac099e33ec (patch)
tree7e6c153a06761221501b0b64955df535c02f7988 /tool/rbinstall.rb
parent42c2cc7c57822da9f010a3695aa64a16efc1efea (diff)
rbinstall.rb: fix bundled gems location
* rbinstall.rb: fix target location for installing bundled gems. install to the prepared directory instead of default Gem.dir, not to be affected GEM_HOME environment variable. [Fix GH-798] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49047 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 db36a21..0d15a59 100755
--- a/tool/rbinstall.rb
+++ b/tool/rbinstall.rb
@@ -719,7 +719,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::Requirement.default, :install_dir => with_destdir(Gem.dir), :domain => :local, :ignore_dependencies => true
+ Gem.install gem, Gem::Requirement.default, :install_dir => with_destdir(gem_dir), :domain => :local, :ignore_dependencies => true
gemname = Pathname(gem).basename
puts "#{" "*30}#{gemname}"
end