siebertm / parse-cron

parses cron expressions and calculates the next occurence after a given date
MIT License
147 stars 57 forks source link

Exception is not raised if day of week is outside of 0-7 #41

Open adamruzicka opened 2 years ago

adamruzicka commented 2 years ago
> CronParser.new("* * * * 100").next
=> 2021-11-01 00:00:00 +0100

Other fields seem to raise an exception if the field is out of bound

> CronParser.new("100 400 * * *").next
ArgumentError: argument out of range