Unverified Commit f99e1001 authored by ksss's avatar ksss

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

parent cd8284fe
...@@ -113,8 +113,7 @@ module MiniRake ...@@ -113,8 +113,7 @@ module MiniRake
# Timestamp for this task. Basic tasks return the current time for # Timestamp for this task. Basic tasks return the current time for
# their time stamp. Other tasks can be more sophisticated. # their time stamp. Other tasks can be more sophisticated.
def timestamp def timestamp
prerequisites = @prerequisites.collect{ |n| n.is_a?(Proc) ? n.call(name) : n }.flatten Time.now
prerequisites.collect { |n| Task[n].timestamp }.max || Time.now
end end
# Class Methods ---------------------------------------------------- # Class Methods ----------------------------------------------------
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment