tobmatth/rack-ssl-enforcer — pull request #32 by Applicat (2012-03-03 22:49:56+00:00)
Title: Rewrite of enforce_ssl? and implementation of new options only_methods and except_methods.

For "methods" a 3rd type of options I've rewritten the enforce_ssl? method to generate all condition variants of options from a keys_by_type hash (maybe the variable should be named options_by_type or matcher_options_by_type).

Now we should only need 1 test context with one pair of matcher option types and could remove all the other contexts testing all possible variants.

So I also have not written new test contexts for testing variants like only_method & only_host & only.