diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | lib/rdoc/rdoc.rb | 6 |
2 files changed, 8 insertions, 3 deletions
@@ -1,3 +1,8 @@ +Wed Apr 7 03:28:27 2010 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * lib/rdoc/rdoc.rb (RDoc#{initialize,setup_output_dir}): + initialize @last_created and use it. + Wed Apr 7 02:05:41 2010 Nobuyoshi Nakada <nobu@ruby-lang.org> * template/fake.rb.in: not define $extout to make target in cwd. diff --git a/lib/rdoc/rdoc.rb b/lib/rdoc/rdoc.rb index 7e48b99dbd..493dada4f0 100644 --- a/lib/rdoc/rdoc.rb +++ b/lib/rdoc/rdoc.rb @@ -78,7 +78,7 @@ class RDoc::RDoc @current = nil @exclude = nil @generator = nil - @last_created = nil + @last_created = {} @old_siginfo = nil @options = nil @stats = nil @@ -135,7 +135,7 @@ class RDoc::RDoc def setup_output_dir(op_dir, force) flag_file = output_flag_file op_dir - last = {} + last = @last_created if File.exist? op_dir then unless File.directory? op_dir then @@ -355,7 +355,7 @@ The internal error was: @exclude = @options.exclude - @last_created = setup_output_dir @options.op_dir, @options.force_update + setup_output_dir @options.op_dir, @options.force_update start_time = Time.now |