Skip to content

Commit

Permalink
Ensure an RDoc::Stats is created even when there are no files
Browse files Browse the repository at this point in the history
  • Loading branch information
drbrain committed Jan 30, 2011
1 parent 9ff81ba commit 23ea7cd
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions History.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
=== 3.5.1

* Bug fixes
* Fixed some typos. Pull request #13 by R.T. Lechow.
* Ensure an RDoc::Stats is created in #parse_files. Fixes documentation for
railties which has no files. Reported by Aaron Patterson

=== 3.5 / 2010-01-29

* Minor enhancements
Expand Down
2 changes: 1 addition & 1 deletion lib/rdoc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def self.const_missing const_name # :nodoc:
##
# RDoc version you are using

VERSION = '3.5'
VERSION = '3.5.1'

##
# Method visibilities
Expand Down
2 changes: 1 addition & 1 deletion lib/rdoc/rdoc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -354,12 +354,12 @@ def parse_file filename

def parse_files files
file_list = gather_files files
@stats = RDoc::Stats.new file_list.size, @options.verbosity

return [] if file_list.empty?

file_info = []

@stats = RDoc::Stats.new file_list.size, @options.verbosity
@stats.begin_adding

file_info = file_list.map do |filename|
Expand Down

0 comments on commit 23ea7cd

Please sign in to comment.