Skip to content

Commit

Permalink
MiniRake::Task#timestamp should use Time.now only
Browse files Browse the repository at this point in the history
  • Loading branch information
ksss committed Mar 17, 2017
1 parent cd8284f commit f99e100
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions minirake
Original file line number Diff line number Diff line change
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 f99e100

Please sign in to comment.