Skip to content
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

Fix for error thrown when using int/int format cron #23

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

kierandoonan
Copy link

Previously parse_element worked with both */int and int-int/int step formats, but would throw an error when doing int/int (e.g. 1/5).

I've added a spec that covers this and a fix for it.

Kieran Doonan added 3 commits January 11, 2016 12:28
Previously parse_element worked with both */int and int-int/int step
formats, but would throw an error when doing int/int (e.g. 1/5).
@@ -157,6 +157,7 @@ def parse_date(str)
["15-59/15 * * * *", "2014-02-01 15:36", "2014-02-01 15:30"],
["15-59/15 * * * *", "2014-02-01 15:45", "2014-02-01 15:30"],
["15-59/15 * * * *", "2014-02-01 15:46", "2014-02-01 15:45"],
["15/15 * * * *", "2014-02-01 15:46", "2014-02-01 15:45"]
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you also add a spec for #nextto have that covered?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants