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

ruby-changes:61111

From: David <ko1@a...>
Date: Fri, 8 May 2020 14:14:27 +0900 (JST)
Subject: [ruby-changes:61111] 41b288476e (master): [rubygems/rubygems] Move helper to private section

https://git.ruby-lang.org/ruby.git/commit/?id=41b288476e

From 41b288476ee62b032f89ea4f353f638b88de2c95 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?David=20Rodr=C3=ADguez?= <deivid.rodriguez@r...>
Date: Mon, 27 Apr 2020 22:13:21 +0200
Subject: [rubygems/rubygems] Move helper to private section

https://github.com/rubygems/rubygems/commit/fb824b7a81

diff --git a/lib/rubygems/commands/setup_command.rb b/lib/rubygems/commands/setup_command.rb
index 69861f9..dc7a73f 100644
--- a/lib/rubygems/commands/setup_command.rb
+++ b/lib/rubygems/commands/setup_command.rb
@@ -312,16 +312,6 @@ By default, this RubyGems will install gem as: https://github.com/ruby/ruby/blob/trunk/lib/rubygems/commands/setup_command.rb#L312
     end
   end
 
-  def install_file(file, dest_dir)
-    dest_file = File.join dest_dir, file
-    dest_dir = File.dirname dest_file
-    unless File.directory? dest_dir
-      mkdir_p dest_dir, :mode => 0755
-    end
-
-    install file, dest_file, :mode => options[:data_mode] || 0644
-  end
-
   def install_lib(lib_dir)
     libs = { 'RubyGems' => 'lib' }
     libs['Bundler'] = 'bundler/lib'
@@ -644,6 +634,16 @@ abort "#{deprecation_message}" https://github.com/ruby/ruby/blob/trunk/lib/rubygems/commands/setup_command.rb#L634
 
   private
 
+  def install_file(file, dest_dir)
+    dest_file = File.join dest_dir, file
+    dest_dir = File.dirname dest_file
+    unless File.directory? dest_dir
+      mkdir_p dest_dir, :mode => 0755
+    end
+
+    install file, dest_file, :mode => options[:data_mode] || 0644
+  end
+
   def target_bin_path(bin_dir, bin_file)
     bin_file_formatted = if options[:format_executable]
                            Gem.default_exec_format % bin_file
-- 
cgit v0.10.2


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

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