Permalink
Browse files

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

  • Loading branch information...
ksss committed Mar 17, 2017
1 parent cd8284f commit f99e1001878796d84c21d736548a660f4658f08e
Showing with 1 addition and 2 deletions.
  1. +1 −2 minirake
View
@@ -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 ----------------------------------------------------

0 comments on commit f99e100

Please sign in to comment.