1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

rbinstall.rb: gem subdirectories

* tool/rbinstall.rb (gem): prepare implies makedirs.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38871 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2013-01-18 05:02:07 +00:00
parent 3b5ba5df17
commit 7a9bbf31fd

View file

@ -690,7 +690,6 @@ install?(:ext, :comm, :gem) do
gem_dir = Gem.default_dir
# Gem.ensure_gem_subdirectories makes subdirectories group-writable.
directories = Gem::REPOSITORY_SUBDIRECTORIES
makedirs([gem_dir, *directories.map {|name| File.join(gem_dir, name)}])
prepare "default gems", gem_dir, directories
spec_dir = File.join(gem_dir, directories.grep(/^spec/)[0])