ruby-changes:45473
From: nobu <ko1@a...>
Date: Mon, 6 Feb 2017 08:52:54 +0900 (JST)
Subject: [ruby-changes:45473] nobu:r57546 (trunk): rbinstall.rb: Gem::Installer lacks dir_mode option
nobu 2017-02-06 08:52:49 +0900 (Mon, 06 Feb 2017) New Revision: 57546 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=57546 Log: rbinstall.rb: Gem::Installer lacks dir_mode option * tool/rbinstall.rb (bundle-gems): Gem::Installer does not support directory permission option, set umask to owner writable. Modified files: trunk/tool/rbinstall.rb Index: tool/rbinstall.rb =================================================================== --- tool/rbinstall.rb (revision 57545) +++ tool/rbinstall.rb (revision 57546) @@ -845,7 +845,14 @@ install?(:ext, :comm, :gem, :'bundle-gem https://github.com/ruby/ruby/blob/trunk/tool/rbinstall.rb#L845 inst = Gem::Installer.new(gem, options) inst.spec.extension_dir = with_destdir(inst.spec.extension_dir) begin - Gem::DefaultUserInteraction.use_ui(silent) {inst.install} + Gem::DefaultUserInteraction.use_ui(silent) do + begin + File.umask(022) + inst.install + ensure + File.umask(0222) + end + end rescue Gem::InstallError => e next end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/