summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2020-06-02 10:24:32 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-06-05 07:32:42 +0900
commitdd5b918cbead5fdb641118aa4e4d90e013f90df1 (patch)
treeeaffeeeabe03c000b03c20509017388323f7a006 /lib
parente4d0cca24ae07d7b9797c384a9b6d82983f269e4 (diff)
[rubygems/rubygems] Fix template cleanup as well
https://github.com/rubygems/rubygems/commit/10cc79ee21
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3184
Diffstat (limited to 'lib')
-rw-r--r--lib/rubygems/commands/setup_command.rb2
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