floraison / fugit

time tools (cron, parsing, durations, ...) for Ruby, rufus-scheduler, and flor
MIT License
355 stars 29 forks source link

Add missing seconds attr to Fugit::Cron #3

Closed SpComb closed 6 years ago

SpComb commented 6 years ago

The Fugit::Cron class has attr readers for the minutes, hours etc. fields, but it does not have an attr reader for the seconds field in the alternative cron syntax:

irb(main):003:0> Fugit::Cron.parse('30 * * * * *').seconds
=> [30]
jmettraux commented 6 years ago

Many thanks.

I will release 1.1.2 with the change.

Best regards.

jmettraux commented 6 years ago

1.1.2 released https://rubygems.org/gems/fugit

Thanks again!

SpComb commented 6 years ago

Thank you for the fast merge and release!