fuzzy-date
The fuzzy-date gem provides a way to parse and use incomplete dates, like those found in history or genealogy.
For example, if you know your great-great-great grandmother was born in April, 1836, but you don't know the day of the month, that's not going to work if you try to parse it as a Date object.
With fuzzy-date, when you parse an incomplete date, you'll be given a hash of information about the date that can be stored as a string.
Installation
gem install fuzzy-date
Contributing
If you'd like to hack on FuzzyDate - and we hope you do! - start by forking the repo on GitHub:
https://github.com/davidcole-fuzzydate
The best way to get your changes merged back into core is as follows:
- Clone down your fork
- Create a thoughtfully named topic branch to contain your change
- Hack away
- Add tests and make sure everything still passes by running
rake - If you are adding new functionality, document it in the README
- Do not change the version number, I'll take care of that
- If necessary, rebase your commits into logical chunks, without errors
- Push the branch up to GitHub
- Send a pull request for your branch
License
fuzzy-date is released under the MIT License.