Skip to content

Commit

Permalink
Merge pull request #3524 from ksss/timestamp
Browse files Browse the repository at this point in the history
MiniRake::Task#timestamp should use Time.now only
  • Loading branch information
matz committed Mar 17, 2017
2 parents fca17b4 + f99e100 commit 27fc76f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions minirake
Expand Up @@ -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 ----------------------------------------------------
Expand Down

0 comments on commit 27fc76f

Please sign in to comment.