diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2020-04-27 18:49:13 +0200 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2020-05-08 14:13:29 +0900 |
commit | d59b92221df2188006f0323aa8af969676728ead (patch) | |
tree | c9906e9d2c2a573fe58e2ec8cc807a2580303836 | |
parent | 53b548f4384f1efb647baf9fc3290dc673e05403 (diff) |
[rubygems/rubygems] Rename method to clarify
https://github.com/rubygems/rubygems/commit/6dc76146ad
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3092
-rw-r--r-- | lib/rubygems/commands/setup_command.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/rubygems/commands/setup_command.rb b/lib/rubygems/commands/setup_command.rb index 679803c338..69861f978a 100644 --- a/lib/rubygems/commands/setup_command.rb +++ b/lib/rubygems/commands/setup_command.rb @@ -329,7 +329,7 @@ By default, this RubyGems will install gem as: say "Installing #{tool}" if @verbose lib_files = rb_files_in path - lib_files.concat(template_files) if tool == 'Bundler' + lib_files.concat(bundler_template_files) if tool == 'Bundler' pem_files = pem_files_in path @@ -503,8 +503,7 @@ By default, this RubyGems will install gem as: end end - # for installation of bundler as default gems - def template_files + def bundler_template_files Dir.chdir "bundler/lib" do (Dir[File.join('bundler', 'templates', '**', '{*,.*}')]). select{|f| !File.directory?(f)} |