ruby-changes:26818
From: nobu <ko1@a...>
Date: Fri, 18 Jan 2013 12:54:35 +0900 (JST)
Subject: [ruby-changes:26818] nobu:r38870 (trunk): rbinstall.rb: gem subdirectories
nobu 2013-01-18 12:54:24 +0900 (Fri, 18 Jan 2013) New Revision: 38870 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=38870 Log: rbinstall.rb: gem subdirectories * tool/rbinstall.rb (gem): Gem.ensure_gem_subdirectories makes subdirectories group-writable, so make them with $dir_mode. Modified files: trunk/ChangeLog trunk/tool/rbinstall.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 38869) +++ ChangeLog (revision 38870) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Fri Jan 18 12:54:21 2013 Nobuyoshi Nakada <nobu@r...> + + * tool/rbinstall.rb (gem): Gem.ensure_gem_subdirectories makes + subdirectories group-writable, so make them with $dir_mode. + Fri Jan 18 11:24:33 2013 Nobuyoshi Nakada <nobu@r...> * ext/win32ole/win32ole.c (ole_initialize): uninitialize OLE at thread Index: tool/rbinstall.rb =================================================================== --- tool/rbinstall.rb (revision 38869) +++ tool/rbinstall.rb (revision 38870) @@ -688,7 +688,9 @@ install?(:ext, :comm, :gem) do https://github.com/ruby/ruby/blob/trunk/tool/rbinstall.rb#L688 $:.unshift(File.join(srcdir, "lib")) require("rubygems.rb") gem_dir = Gem.default_dir - directories = Gem.ensure_gem_subdirectories(gem_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]) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/