mirror of
https://github.com/ruby/ruby.git
synced 2025-08-24 13:34:17 +02:00
parent
5400811db9
commit
41b288476e
Notes:
git
2020-05-08 14:14:19 +09:00
1 changed files with 10 additions and 10 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue