summaryrefslogtreecommitdiff
path: root/tool/rbinstall.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-01-13 08:21:51 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-01-13 08:21:51 +0000
commit79cd3c375711fb835d190d9e51a8de841f260075 (patch)
tree1e9a34f2b86c410c83942ed3a2f76359a2e002f4 /tool/rbinstall.rb
parenta28e2ac46b93c9361498a0915b1616441c48bb9f (diff)
rbinstall.rb: reuse options hash
* tool/rbinstall.rb (gem): reuse options hash, which is invariant for all gems. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49233 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool/rbinstall.rb')
-rwxr-xr-xtool/rbinstall.rb10
1 files changed, 9 insertions, 1 deletions
diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb
index b658700..1e3f682 100755
--- a/tool/rbinstall.rb
+++ b/tool/rbinstall.rb
@@ -715,8 +715,16 @@ install?(:ext, :comm, :gem) do
gem_dir = Gem.default_dir
directories = Gem.ensure_gem_subdirectories(gem_dir, :mode => $dir_mode)
prepare "bundle gems", gem_dir, directories
+ options = {
+ :install_dir => with_destdir(gem_dir),
+ :domain => :local,
+ :ignore_dependencies => true,
+ :dir_mode => $dir_mode,
+ :data_mode => $data_mode,
+ :prog_mode => $prog_mode,
+ }
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, options)
gemname = Pathname(gem).basename
puts "#{" "*30}#{gemname}"
end