We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77c7da6 commit f3b389aCopy full SHA for f3b389a
lib/rdoc/options.rb
@@ -565,9 +565,10 @@ def finish
565
566
@op_dir ||= 'doc'
567
568
- @rdoc_include << "." if @rdoc_include.empty?
569
root = @root.to_s
570
- @rdoc_include << root unless @rdoc_include.include?(root)
+ if @rdoc_include.empty? || !@rdoc_include.include?(root)
+ @rdoc_include << root
571
+ end
572
573
@exclude = self.exclude
574
lib/rdoc/rdoc.rb
@@ -119,7 +119,7 @@ def error(msg)
119
# +files+.
120
121
def gather_files files
122
- files = ["."] if files.empty?
+ files = [@options.root.to_s] if files.empty?
123
124
file_list = normalized_file_list files, true, @options.exclude
125
0 commit comments