A quick and dirty gem to see if a date falls on a retail holiday. I use this to determine if a sub-contractor should be paid weekend/emergency rates for a site visit at a retail shop.
require 'retail_holidays'
d = Date.civil(2011, 1, 1)
d.holiday? _#=> true_
I use:
$ autotest
There is the default rake task:
$ rake
Or the more explicit:
$ rake spec
Otherwise:
$ rspec spec
- Fork
- Create a branch (
git checkout -b my_branch
) - Commit (
git commit -am "Added coolness"
) - Push (
git push origin my_branch
) - Create an Issue with a link to your branch
- Enjoy