mirror of
https://github.com/ruby/ruby.git
synced 2025-08-24 13:34:17 +02:00
parent
41b288476e
commit
d2087f1cde
Notes:
git
2020-05-08 14:14:18 +09:00
1 changed files with 8 additions and 6 deletions
|
@ -324,13 +324,9 @@ By default, this RubyGems will install gem as:
|
|||
pem_files = pem_files_in path
|
||||
|
||||
Dir.chdir path do
|
||||
lib_files.each do |lib_file|
|
||||
install_file lib_file, lib_dir
|
||||
end
|
||||
install_file_list(lib_files, lib_dir)
|
||||
|
||||
pem_files.each do |pem_file|
|
||||
install_file pem_file, lib_dir
|
||||
end
|
||||
install_file_list(pem_files, lib_dir)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -634,6 +630,12 @@ abort "#{deprecation_message}"
|
|||
|
||||
private
|
||||
|
||||
def install_file_list(files, dest_dir)
|
||||
files.each do |file|
|
||||
install_file file, dest_dir
|
||||
end
|
||||
end
|
||||
|
||||
def install_file(file, dest_dir)
|
||||
dest_file = File.join dest_dir, file
|
||||
dest_dir = File.dirname dest_file
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue