diff options
-rw-r--r-- | lib/rubygems/commands/setup_command.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rubygems/commands/setup_command.rb b/lib/rubygems/commands/setup_command.rb index 055f329a5d..2f86964b45 100644 --- a/lib/rubygems/commands/setup_command.rb +++ b/lib/rubygems/commands/setup_command.rb @@ -547,7 +547,7 @@ By default, this RubyGems will install gem as: def bundler_template_files Dir.chdir "bundler/lib" do - (Dir[File.join('bundler', 'templates', '**', '{*,.*}')]). + Dir[File.join('bundler', 'templates', '**', '{*,.*}')]. select{|f| !File.directory?(f)} end end @@ -555,7 +555,7 @@ By default, this RubyGems will install gem as: # for cleanup old bundler files def template_files_in(dir) Dir.chdir dir do - (Dir[File.join('templates', '**', '{*,.*}')]). + Dir[File.join('templates', '**', '{*,.*}')]. select{|f| !File.directory?(f)} end end |