From e4d0cca24ae07d7b9797c384a9b6d82983f269e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Tue, 2 Jun 2020 10:19:41 +0200 Subject: [rubygems/rubygems] Fix installing template files with dots https://github.com/rubygems/rubygems/commit/a82a77251d --- lib/rubygems/commands/setup_command.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/rubygems/commands/setup_command.rb b/lib/rubygems/commands/setup_command.rb index 2f86964b45..fe2f201f3a 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.glob(File.join('bundler', 'templates', '**', '*'), File::FNM_DOTMATCH). select{|f| !File.directory?(f)} end end -- cgit v1.2.3