ruby-changes:54591
From: nobu <ko1@a...>
Date: Sun, 13 Jan 2019 22:17:01 +0900 (JST)
Subject: [ruby-changes:54591] nobu:r66806 (trunk): rdoc: ignore garbage files
nobu 2019-01-13 22:16:56 +0900 (Sun, 13 Jan 2019) New Revision: 66806 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=66806 Log: rdoc: ignore garbage files * lib/rdoc/options.rb (RDoc::Options#init_ivars): exclude backup files by default. Modified files: trunk/lib/rdoc/options.rb Index: lib/rdoc/options.rb =================================================================== --- lib/rdoc/options.rb (revision 66805) +++ lib/rdoc/options.rb (revision 66806) @@ -344,7 +344,9 @@ class RDoc::Options https://github.com/ruby/ruby/blob/trunk/lib/rdoc/options.rb#L344 def init_ivars # :nodoc: @dry_run = false - @exclude = [] + @exclude = %w[ + ~\z \.orig\z \.rej\z \.bak\z + ] @files = nil @force_output = false @force_update = true -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/