Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Ensure an RDoc::Stats is created even when there are no files

  • Loading branch information...
commit 23ea7cdc17d75bdc7759088947bd0dbe0eaed7ab 1 parent 9ff81ba
@drbrain drbrain authored
Showing with 9 additions and 2 deletions.
  1. +7 −0 History.txt
  2. +1 −1  lib/rdoc.rb
  3. +1 −1  lib/rdoc/rdoc.rb
View
7 History.txt
@@ -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
View
2  lib/rdoc.rb
@@ -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
View
2  lib/rdoc/rdoc.rb
@@ -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|
Please sign in to comment.
Something went wrong with that request. Please try again.