parse-cron
parse-cron copied to clipboard
Fix parse
When using seconds I noticed that the last run were not correct. For example:
- Rule (* * * * *) and time 15:15:01, the last execution must be 15:15:00, not 15:14:00.
- Same having the rule (* * * * *) and time 15:15:00, the last execution must be 15:15:00, exactly now, not 15:14:00.
Also:
- fixed some deprecations in tests
- fixed style
- added new tests
@stakach Does anybody still supports this gem?