Project

jerk

0.0
No commit activity in last 3 years
No release in over 3 years
Jerk is insensitive, particularly about URL casing.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Runtime

>= 0
 Project Readme

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

  1. Pork it
  2. Create your feature branch (git checkout -b say-do-you-want-to-catch-a-moooovie)
  3. Commit your changes (git commit -am 'Mah spoon is too big')
  4. Push to the branch (git push origin i-am-a-banana)
  5. Create new Pull-My-Finger Request