Convert street addresses and personal or company names to title case from full caps (or all lowercase).
Add this line to your application's Gemfile:
gem 'gettysburg'And then execute:
$ bundle
Or install it yourself as:
$ gem install gettysburg
This monkeypatches String with #titlecase and #titlecase! methods. These should apply correct titlecasing and leave things like NE, NW, PO (in PO Box), LLC, INC, and so on, alone.
- Fork it ( https://github.com/[my-github-username]/gettysburg/fork )
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request