Closed mscrivo closed 2 months ago
require 'fugit'
p Fugit.parse('* */24 * * *').class
# ==> EtOrbi::EoTime
p Fugit.parse('* */24 * * *').to_t
# ==> 2024-04-24 00:00:00 +0900
p Fugit.parse('* */25 * * *').to_t
# ==> 2024-04-25 00:00:00 +0900
Thanks for spotting that, I will fix it as soon as possible.
Behaviour changed between 1.8.1 and 1.9.0. 1.8.1 returns Fugit::Cron
instances while 1.9.0 and later return a time EtOrbi::EoTime
.
"* */24 * * *"
, in the end, should be deflated into "* 0 * * *"
.
Breaking change introduced for gh-86.
fugit 1.11.0 released. Thanks!
Issue description
Upon upgrading to 1.10, we noticed that some of our tests started failing with the following exception:
How to reproduce
will throw the above exception, where it previously worked fine in 1.8.1
Note, other cron expressions work just fine, like ' *' for example.
Error and error backtrace (if any)
Expected behaviour
This should not throw an exception as it's a valid cron expression