jeremyevans/ruby-american_date — pull request #4 by denisahearn (2012-09-26 19:10:29+00:00)
Title: Added support for date formats with dashes

Hi Jeremy,

My fork contain a change to allow dates with dashes to work with this gem. For example, Date.parse("01-02-2012") and Date.parse("01-02-12")

I also added specs to test my changes. Please see the note that I left in spec/american_date_spec.rb pertaining to year-less date formats that use dashes. Those formats are not supported by my change. My note explains why.

I would really appreciate it if you would consider merging my work into your gem. We have a rather large Rails 2.x app that we're currently migrating to Rails 3.x, and this app accepts date and datetime input all over the place from users with the "dd-mm-YYYY" format. At this point I don't want to fix the app to only accept the mm/dd/YYYY format, and I also don't want to maintain my own fork of this gem.

Also - if you decide to accept my changes, you'll see from my commit that I didn't update the README.doc or american_date.gemspec file.

Best Regards,
Denis Ahearn