Permalink
Browse files

Apply #11671 by Trans.

  • Loading branch information...
1 parent 58e713a commit cb6f77606e750065a23efa27f28758b09c03807c drbrain committed Sep 23, 2008
Showing with 3 additions and 4 deletions.
  1. +1 −0 History.txt
  2. +1 −3 lib/rdoc/options.rb
  3. +1 −1 lib/rdoc/rdoc.rb
View
@@ -14,6 +14,7 @@ to polish RDoc for Ruby 1.9.1.
if it encounters the alias first because the alias lives in a different
file.
* Fix the parsing of multiline constants (patch by Chris Alfeld and Joel VanderWerf)
+ * Make --exclude usuable. Patch #11671 by Trans.
=== 2.2.0 / 2008-09-19
This version includes some significant enhancements to ri. See RI.txt for
View
@@ -284,9 +284,7 @@ def parse(argv)
opt.on("--exclude=PATTERN", "-x", Regexp,
"Do not process files or directories",
- "matching PATTERN. Files given explicitly",
- "on the command line will never be",
- "excluded.") do |value|
+ "matching PATTERN.") do |value|
@exclude << value
end
View
@@ -193,7 +193,7 @@ def parse_files(options)
files = options.files
files = ["."] if files.empty?
- file_list = normalized_file_list(options, files, true)
+ file_list = normalized_file_list(options, files, true, options.exclude)
return [] if file_list.empty?

0 comments on commit cb6f776

Please sign in to comment.