[rubygems/rubygems] Fix template cleanup as well

10cc79ee21
This commit is contained in:
David Rodríguez 2020-06-02 10:24:32 +02:00 committed by Hiroshi SHIBATA
parent e4d0cca24a
commit dd5b918cbe
Notes: git 2020-06-05 07:33:44 +09:00
2 changed files with 4 additions and 2 deletions

View file

@ -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.glob(File.join('templates', '**', '*'), File::FNM_DOTMATCH).
select{|f| !File.directory?(f)}
end
end