From 7f72d102cb30b1858ec329f44485ef734ecc6eb0 Mon Sep 17 00:00:00 2001 From: naruse Date: Sun, 11 Apr 2010 00:00:43 +0000 Subject: * lib/rdoc/rdoc.rb (setup_output_dir): compare by Time#to_i. Cached created time doesn't have fractinal times, but FileStat#mtime has; so rdoc almost alway judged files are updated. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27290 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/rdoc/rdoc.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/rdoc') diff --git a/lib/rdoc/rdoc.rb b/lib/rdoc/rdoc.rb index 9dd795383f..ed25d4c796 100644 --- a/lib/rdoc/rdoc.rb +++ b/lib/rdoc/rdoc.rb @@ -227,7 +227,7 @@ class RDoc::RDoc case type = stat.ftype when "file" then next if last_created = @last_created[rel_file_name] and - stat.mtime <= last_created + stat.mtime.to_i <= last_created.to_i if force_doc or RDoc::Parser.can_parse(rel_file_name) then file_list << rel_file_name.sub(/^\.\//, '') -- cgit v1.2.3