diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2020-06-02 10:24:32 +0200 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2020-06-05 07:32:42 +0900 |
commit | dd5b918cbead5fdb641118aa4e4d90e013f90df1 (patch) | |
tree | eaffeeeabe03c000b03c20509017388323f7a006 /lib/rubygems | |
parent | e4d0cca24ae07d7b9797c384a9b6d82983f269e4 (diff) | |
download | ruby-dd5b918cbead5fdb641118aa4e4d90e013f90df1.tar.gz |
[rubygems/rubygems] Fix template cleanup as well
https://github.com/rubygems/rubygems/commit/10cc79ee21
Diffstat (limited to 'lib/rubygems')
-rw-r--r-- | lib/rubygems/commands/setup_command.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rubygems/commands/setup_command.rb b/lib/rubygems/commands/setup_command.rb index fe2f201f3a..a82b6a44aa 100644 --- a/lib/rubygems/commands/setup_command.rb +++ b/lib/rubygems/commands/setup_command.rb @@ -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 |