Jerk
Jerk is insensitive, particularly about URL casing. It is middleware that prevents any uppercase URLs from making it through in the path of a URL. The default mode is to issue 301 redirects to a lowercase-normalized version of the requested URL. Query strings are left alone.
Installation & Usage
# Gemfile
gem 'jerk'
# Shell
$ bundle
On Rails? You're done. Not on Rails? Just add the middleware wherever you like:
use Jerk::Redirect
# or Jerk::Ignore if you don't want redirects
Contributing
- Pork it
- Create your feature branch (
git checkout -b say-do-you-want-to-catch-a-moooovie
) - Commit your changes (
git commit -am 'Mah spoon is too big'
) - Push to the branch (
git push origin i-am-a-banana
) - Create new Pull-My-Finger Request