diff options
| author | ksss <[email protected]> | 2017-03-17 12:23:00 +0900 |
|---|---|---|
| committer | ksss <[email protected]> | 2017-03-17 12:41:06 +0900 |
| commit | f99e1001878796d84c21d736548a660f4658f08e (patch) | |
| tree | d796b133116a0ec19b30c84d888e2d204b2db843 | |
| parent | cd8284fe0b156aaa6e4cb3f9cb934da25d4829be (diff) | |
| download | mruby-f99e1001878796d84c21d736548a660f4658f08e.tar.gz mruby-f99e1001878796d84c21d736548a660f4658f08e.zip | |
MiniRake::Task#timestamp should use Time.now only
| -rwxr-xr-x | minirake | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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 ---------------------------------------------------- |
