Skip to content

Commit 23ea7cd

Browse files
committed
Ensure an RDoc::Stats is created even when there are no files
1 parent 9ff81ba commit 23ea7cd

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

History.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
=== 3.5.1
2+
3+
* Bug fixes
4+
* Fixed some typos. Pull request #13 by R.T. Lechow.
5+
* Ensure an RDoc::Stats is created in #parse_files. Fixes documentation for
6+
railties which has no files. Reported by Aaron Patterson
7+
18
=== 3.5 / 2010-01-29
29

310
* Minor enhancements

lib/rdoc.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def self.const_missing const_name # :nodoc:
9595
##
9696
# RDoc version you are using
9797

98-
VERSION = '3.5'
98+
VERSION = '3.5.1'
9999

100100
##
101101
# Method visibilities

lib/rdoc/rdoc.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,12 +354,12 @@ def parse_file filename
354354

355355
def parse_files files
356356
file_list = gather_files files
357+
@stats = RDoc::Stats.new file_list.size, @options.verbosity
357358

358359
return [] if file_list.empty?
359360

360361
file_info = []
361362

362-
@stats = RDoc::Stats.new file_list.size, @options.verbosity
363363
@stats.begin_adding
364364

365365
file_info = file_list.map do |filename|

0 commit comments

Comments
 (0)