[前][次][番号順一覧][スレッド一覧]

ruby-changes:34741

From: nobu <ko1@a...>
Date: Tue, 15 Jul 2014 17:43:02 +0900 (JST)
Subject: [ruby-changes:34741] nobu:r46824 (trunk): rbinstall.rb: fix directory permissions

nobu	2014-07-15 17:42:49 +0900 (Tue, 15 Jul 2014)

  New Revision: 46824

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=46824

  Log:
    rbinstall.rb: fix directory permissions
    
    * tool/rbinstall.rb (gem): fix permissions of bundle gems
      directories.

  Modified files:
    trunk/tool/rbinstall.rb
Index: tool/rbinstall.rb
===================================================================
--- tool/rbinstall.rb	(revision 46823)
+++ tool/rbinstall.rb	(revision 46824)
@@ -721,10 +721,13 @@ install?(:ext, :comm, :gem) do https://github.com/ruby/ruby/blob/trunk/tool/rbinstall.rb#L721
   directories = Gem.ensure_gem_subdirectories(gem_dir, :mode => $dir_mode)
   prepare "bundle gems", gem_dir, directories
   Dir.glob(srcdir+'/gems/*.gem').each do |gem|
-    Gem.install gem, install_dir: with_destdir(Gem.dir)
+    Gem.install gem, :install_dir => with_destdir(Gem.dir)
     gemname = Pathname(gem).basename
     puts "#{" "*30}#{gemname}"
   end
+  # fix directory permissions
+  # TODO: Gem.install should accept :dir_mode option or something
+  File.chmod($dir_mode, *Dir.glob(with_destdir(Gem.dir)+"/**/"))
 end
 
 parse_args()

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]