summaryrefslogtreecommitdiff
path: root/tool/rbinstall.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-01-13 12:59:26 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-01-13 12:59:26 +0000
commitec171c45975b525bbe5d63b92f1521622aa05394 (patch)
tree7f56e207295c11efcdda99747bf7798e0b7a1300 /tool/rbinstall.rb
parent3303dbf01bffe833bd0d7d372bcad9c2ec8f5212 (diff)
rbinstall.rb: fix bundled gems location
* tool/rbinstall.rb (gem): fix changing permissions of installed bundled gems. [Fix GH-812] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49238 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool/rbinstall.rb')
-rwxr-xr-xtool/rbinstall.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb
index 1e3f682..ece1080 100755
--- a/tool/rbinstall.rb
+++ b/tool/rbinstall.rb
@@ -730,9 +730,9 @@ install?(:ext, :comm, :gem) do
end
# fix directory permissions
# TODO: Gem.install should accept :dir_mode option or something
- File.chmod($dir_mode, *Dir.glob(with_destdir(Gem.dir)+"/**/"))
+ File.chmod($dir_mode, *Dir.glob(with_destdir(gem_dir)+"/**/"))
# fix .gemspec permissions
- File.chmod($data_mode, *Dir.glob(with_destdir(Gem.dir)+"/specifications/*.gemspec"))
+ File.chmod($data_mode, *Dir.glob(with_destdir(gem_dir)+"/specifications/*.gemspec"))
else
puts "skip installing bundle gems because of lacking zlib"
end