diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2020-04-27 22:13:21 +0200 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2020-05-08 14:13:29 +0900 |
commit | 41b288476ee62b032f89ea4f353f638b88de2c95 (patch) | |
tree | fa0ec4abf6a90db0051a22ed1ac385643a2c993a | |
parent | 5400811db94361ba20e2e2467a77b75355c232e9 (diff) |
[rubygems/rubygems] Move helper to private section
https://github.com/rubygems/rubygems/commit/fb824b7a81
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3092
-rw-r--r-- | lib/rubygems/commands/setup_command.rb | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/rubygems/commands/setup_command.rb b/lib/rubygems/commands/setup_command.rb index 69861f978a..dc7a73f63a 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: 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}" 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 |