MiniRake::Task#timestamp should use Time.now only

This commit is contained in:
ksss
2017-03-17 12:23:00 +09:00
parent cd8284fe0b
commit f99e100187
+1 -2
View File
@@ -113,8 +113,7 @@ module MiniRake
# Timestamp for this task. Basic tasks return the current time for
# their time stamp. Other tasks can be more sophisticated.
def timestamp
prerequisites = @prerequisites.collect{ |n| n.is_a?(Proc) ? n.call(name) : n }.flatten
prerequisites.collect { |n| Task[n].timestamp }.max || Time.now
Time.now
end
# Class Methods ----------------------------------------------------