Skip to content

Commit 35abb74

Browse files
committed
Fixed broken test for install_lib
1 parent a53aca9 commit 35abb74

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/rubygems/commands/setup_command.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -442,16 +442,16 @@ def rb_files_in dir
442442
# for installation of bundler as default gems
443443
def template_files
444444
Dir.chdir "bundler/lib" do
445-
Dir[File.join('bundler', 'templates', '**', '*')].select{|f| !File.directory?(f)} +
446-
["bundler/templates/newgem/.travis.yml.tt"] # Dir#[] don't match dotfile.
445+
(Dir[File.join('bundler', 'templates', '**', '*')] + Dir[File.join('bundler', 'templates', '**', '.*')]).
446+
select{|f| !File.directory?(f)}
447447
end
448448
end
449449

450450
# for cleanup old bundler files
451451
def template_files_in dir
452452
Dir.chdir dir do
453-
Dir[File.join('templates', '**', '*')].select{|f| !File.directory?(f)} +
454-
["templates/newgem/.travis.yml.tt"] # Dir#[] don't match dotfile.
453+
(Dir[File.join('templates', '**', '*')] + Dir[File.join('templates', '**', '.*')]).
454+
select{|f| !File.directory?(f)}
455455
end
456456
end
457457

0 commit comments

Comments
 (0)