alpinweis / cronex

Ruby library that converts cron expressions into human readable strings
Other
77 stars 29 forks source link

Leading zeros cause ArgumentError #4

Closed tylergets closed 7 years ago

tylergets commented 7 years ago

Hey I ran into this problem recently with my project, cron strings that have fields with leading zeros fail. An example string would be "10 09 *" which should return "At 9:10" but it wails with the following error:

ArgumentError (invalid value for Integer(): "09"):

tylergets commented 7 years ago

It appears I was mistaken; it appears there is a test case for this. sorry I am a ruby newb.