NoMethodError instead of returning nil
I expect to get nil when I try to run: a = Chronic.parse("T") but instead it blows up and I get: NoMethodError: undefined method `start=' for nil:NilClass
Thanks, Jason
The same for me for "2011 May 09 to 2011 June 28" with 0.10.2
Chronic.parse('2011 May 09 to 2011 June 28') => NoMethodError: undefined method `+' for nil:NilClass
Chronic.parse("T") this is bug, it should return nil not throw exception.
Chronic.parse('2011 May 09 to 2011 June 28') this is just unsupported, but still it shouldn't raise exception. It's unsupported firstly because Chronic parses only discrete times not intervals. Secondly such format 2011 June 28 isn't implemented at all.
this bug fixed by https://github.com/mojombo/chronic/pull/243 commit maybe we can close this issue