From 8fef6aa20bd658d90036287caa96b9ca17ef3fc5 Mon Sep 17 00:00:00 2001 From: hsbt Date: Mon, 16 Nov 2015 06:33:17 +0000 Subject: [PATCH] * tool/rbinstall.rb: fix wrong permission for gem specification without zlib runtime. [Bug #11685][ruby-dev:49343] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52585 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ tool/rbinstall.rb | 1 + 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index 74461993cd..ed5f50f2fe 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Mon Nov 16 15:33:11 2015 SHIBATA Hiroshi + + * tool/rbinstall.rb: fix wrong permission for gem specification without + zlib runtime. [Bug #11685][ruby-dev:49343] + Mon Nov 16 12:11:11 2015 SHIBATA Hiroshi * lib/webrick/httpauth/basicauth.rb: fix a typo. diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb index 58a4613b0d..4614c3538a 100755 --- a/tool/rbinstall.rb +++ b/tool/rbinstall.rb @@ -752,6 +752,7 @@ install?(:ext, :comm, :gem) do ins = RbInstall::UnpackedInstaller.new(spec, options) puts "#{" "*30}#{spec.name} #{spec.version}" ins.install + File.chmod($data_mode, File.join(install_dir, "specifications", "#{spec.full_name}.gemspec")) installed_gems[spec.full_name] = true end installed_gems, gems = Dir.glob(srcdir+'/gems/*.gem').partition {|gem| installed_gems.key?(File.basename(gem, '.gem'))}