tobmatth/rack-ssl-enforcer — pull request #33 by rymai (2012-03-06 23:36:18+00:00)
Title: Huge cleaning and refactoring

Tests unchanged so there should be no regression.

Here is the summary of my changes:

- Get rid of the "env" param and use `@request` everywhere
- Extracted constraint matching in a new `SslEnforcerConstraint` class
- Simplified logic by x10000! ;)

Next step is to add specific tests for `SslEnforcerConstraint`...

Let me know guys what you think (so I can merge it myself, or not)! :)