henrypoydar / chronic_duration

A simple Ruby natural language parser for elapsed time
MIT License
351 stars 68 forks source link

Default units option for parse #8

Closed ianlevesque closed 13 years ago

ianlevesque commented 13 years ago

I added the ability to specify the default units for parsing, like ChronicDuration.parse('5', :default_unit => "minutes"). There is a corresponding rspec test.

henrypoydar commented 13 years ago

Merged and released. Thanks!

On Fri, Jun 3, 2011 at 10:11 PM, ianlevesque reply@reply.github.com wrote:

I added the ability to specify the default units for parsing, like ChronicDuration.parse('5', :default_unit => "minutes").  There is a corresponding rspec test.

Reply to this email directly or view it on GitHub: https://github.com/hpoydar/chronic_duration/pull/8