summaryrefslogtreecommitdiff
path: root/tool/rbinstall.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-10-14 12:39:17 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-10-14 12:39:17 +0000
commit3958ba3cbeb3a362f25522017b26455bfcd5c58b (patch)
tree4219c68dfe4f03d3672fb31ed28f94118ed1cc0e /tool/rbinstall.rb
parentfb06f0802e7d7b05594e6c206dd01c4806261222 (diff)
rbinstall.rb: fix .gemspec permissions
* tool/rbinstall.rb (gem): Fix permissions of bundled gems specification files. [ruby-core:65700] [Bug #10383] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47916 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool/rbinstall.rb')
-rwxr-xr-xtool/rbinstall.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb
index e21c811..98e601e 100755
--- a/tool/rbinstall.rb
+++ b/tool/rbinstall.rb
@@ -721,6 +721,8 @@ install?(:ext, :comm, :gem) do
# fix directory permissions
# TODO: Gem.install should accept :dir_mode option or something
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"))
end
parse_args()