1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/rdoc/rdoc.rb (RDoc#{initialize,setup_output_dir}):

initialize @last_created and use it.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27243 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2010-04-06 18:29:20 +00:00
parent 1007748627
commit 640c32ef77
2 changed files with 8 additions and 3 deletions

View file

@ -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> 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. * template/fake.rb.in: not define $extout to make target in cwd.

View file

@ -78,7 +78,7 @@ class RDoc::RDoc
@current = nil @current = nil
@exclude = nil @exclude = nil
@generator = nil @generator = nil
@last_created = nil @last_created = {}
@old_siginfo = nil @old_siginfo = nil
@options = nil @options = nil
@stats = nil @stats = nil
@ -135,7 +135,7 @@ class RDoc::RDoc
def setup_output_dir(op_dir, force) def setup_output_dir(op_dir, force)
flag_file = output_flag_file op_dir flag_file = output_flag_file op_dir
last = {} last = @last_created
if File.exist? op_dir then if File.exist? op_dir then
unless File.directory? op_dir then unless File.directory? op_dir then
@ -355,7 +355,7 @@ The internal error was:
@exclude = @options.exclude @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 start_time = Time.now