-
Notifications
You must be signed in to change notification settings - Fork 613
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FileTask#out_of_date? calls depended FileTask#out_of_date? for execution #183
Conversation
@@ -29,7 +29,14 @@ def timestamp | |||
|
|||
# Are there any prerequisites with a later time than the given time stamp? | |||
def out_of_date?(stamp) | |||
@prerequisites.any? { |n| application[n, @scope].timestamp > stamp } | |||
@prerequisites.any? { |p| |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
p
is a name which is in Ruby as Kernel#p
. Can you find a good replacement name for the block parameter?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, I made a silly mistake. It's as you says. I added a commit 679ccb8.
13e16c1
to
679ccb8
Compare
0c712c0
to
ec7dc8f
Compare
ec7dc8f
to
7be2c78
Compare
1 similar comment
rake "-n" | ||
assert_equal(%w{fileA fileB fileC default}, dryrun_tasks) | ||
rake | ||
sleep 1 # for stride seconds surely for timestamp |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a passer-by reading this comment. I'm confused by it. Can you reword it, to make it less ambiguous?
What I believe it wants to say: Ensure the timestamp is on a new second.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, I added a commit to fix the comment!
This fixes #92 what says below:
I think so. In this Pull Request,
FileTask#out_of_date?
calls dependencyFileTask
's#out_of_date?
viaFileTask#needed?
.