Граф коммитов

165 Коммитов

Автор SHA1 Сообщение Дата
Rémy Coutable 025ac24dc0 Merge pull request #52 from Matchbook/env_constraints
Add environment constraints
2013-05-03 01:40:12 -07:00
Jared Wyatt 45fa663b81 add environment constraints 2013-05-03 04:35:16 -04:00
Rémy Coutable 91c7234cc6 Merge pull request #50 from Matchbook/master
Fix bug that was setting arrays as keys in default_options hash
2013-05-03 00:04:18 -07:00
Jared Wyatt cf3ea205fa fix bug that was setting arrays as keys in default_options hash 2013-05-02 23:51:54 -04:00
Rémy Coutable c4674cd69f Optimize cookie regex (again), fix #46 (again) 2013-04-20 14:26:43 +03:00
Rémy Coutable f7af0376f7 Merge pull request #44 from ochko/master
Option for HTTP status code for redirection
2013-04-20 04:21:39 -07:00
Rémy Coutable aed7fdedbe Merge pull request #49 from ktusznio/kt-test-nested-ignore
Add test for nested url ignores.
2013-04-20 04:20:27 -07:00
Kamil Tusznio 1eba31eed6 Add test for nested url ignores. 2013-04-19 15:42:41 -04:00
Rémy Coutable af538af4c6 Update README.md
[ci skip]
2013-03-24 23:50:59 +01:00
Rémy Coutable 3db07e93d3 Actually, only ignore guard-specific gems 2013-03-24 23:46:51 +01:00
Rémy Coutable 5904f3e175 Update .travis.yml & Gemfile 2013-03-24 23:37:07 +01:00
Rémy Coutable 671a3115b6 Add a multiple-constraints example 2013-01-19 14:13:57 +01:00
Rémy Coutable c0388907fd Add a full complex example 2013-01-16 22:46:57 +01:00
Tobias Matthies 86d781fa59 Optimize cookie regex, fix GH issue #46 2013-01-09 18:41:11 +01:00
Tobias Matthies 7ff409c5a8 Merge pull request #45 from potomak/patch-1
Update README.md
2012-12-20 10:18:22 -08:00
Giovanni Cappellotto 5dba07c53c Update README.md
Fix example code to fix sessions issue.
2012-12-20 11:48:49 +01:00
ochko 6e80eab11c updated readme with redirect_code 2012-11-30 15:46:57 +09:00
ochko b1bc0f2388 add redirect_code option 2012-11-30 15:14:49 +09:00
Tobias Matthies 90025f4eec Add some documentation about the :ignore option 2012-11-15 12:43:30 +01:00
Tobias Matthies 6d5bb1b848 Bump to 0.2.5 2012-11-14 20:57:04 +01:00
Tobias Matthies 28b04d931b Move guard gems to dedicated group and exclude it from travis 2012-11-14 20:48:19 +01:00
Tobias Matthies ecbad2ba66 Ungroup rdoc gem 2012-11-13 20:18:57 +01:00
Tobias Matthies b67e4f24bb Exclude development gems 2012-11-13 20:15:29 +01:00
Tobias Matthies c556c67f0c Fix messed up commit d506496, part II 2012-11-13 19:54:19 +01:00
Tobias Matthies 702c91f166 Fix messed up commit d506496 2012-11-12 22:34:33 +01:00
Tobias Matthies d506496a3f Update Rdoc to remove deprecation warnings 2012-11-12 22:23:45 +01:00
Tobias Matthies a31da3377e Add rdoc 2012-11-12 22:23:05 +01:00
Tobias Matthies 69909cf4f1 Cosmetics 2012-11-12 21:26:07 +01:00
Tobias Matthies 4a91397960 Use RbConfig, move gems from :guard to :development group 2012-11-12 21:25:04 +01:00
Kyle Crum a8a594d315 Adding an option to ignore paths. 2012-11-12 21:10:12 +01:00
Tobias Matthies f4cb617635 Merge pull request #42 from ktopping/master
Added some more documentation for nginx - specifically re. passenger
2012-11-08 12:14:07 -08:00
Kieran Topping eec386e459 amended nginx instructions for passenger 2012-11-08 16:08:22 +00:00
Tobias Matthies 072d082f88 Merge pull request #41 from juno/fix-readme
fix README typo
2012-10-31 02:08:35 -07:00
Junya Ogura 0fc9f694c3 fix README typo 2012-10-31 18:06:22 +09:00
Tobias Matthies afbb1803db Merge pull request #37 from danpal/master
Add sinatra/padrino installation instructions.
2012-08-30 13:03:54 -07:00
Daniel Palacio 20ef678341 Explain how to install on sinatra/padrino
Adding RackSslEnforcer to sinatra or padrino is non-trivial.
The default session handler of both frameworks will place
the Rack::Session::Cookie middleware at the top, thus
RackSslEnforcer won't be able to see the cookies and operate
properly.

In order to fix it, you have to manually add Rack::Session::Cookie
as opposed to using enable :sessions.
2012-08-30 14:52:42 -05:00
Tobias Matthies 5628267aad Add tests for redirect_to handling
- test that we redirect if ssl request but request.host does not match redirect_to
  - test that we do not redirect if ssl request and request.host matches redirect_to
2012-03-10 20:12:23 +01:00
Tobias Matthies d0b882a4f9 Cleanup part II
- use instance variable for scheme
- extract code to check for redirect into a separate method
- extract code to redirect into a separate method
- add replace_scheme and replace_host to modify redirect location
- rename #port_for
- redirect if ssl request but request.host does not match redirect_to
- do not redirect if ssl request and request.host matches redirect_to
2012-03-10 20:11:38 +01:00
Tobias Matthies c5542b67d3 Add build status image 2012-03-08 15:07:07 +01:00
Tobias Matthies b6a07f6e14 Ruby 1.8 compat
* 'a string'.send(:!=, 'some_other_string) not working
  * :a_symbol =~ /a_symbol/ returns false using Ruby 1.8
2012-03-08 14:56:04 +01:00
Tobias Matthies f855f94f3d Add rake 2012-03-08 12:00:38 +01:00
Tobias Matthies af10697ade Merge pull request #33 from tobmatth/cleaning_refactoring
Huge cleaning and refactoring
2012-03-08 01:21:29 -08:00
Rémy Coutable dbcfabe24c Improved and completed the README (and converted it to Markdown) 2012-03-08 00:45:20 +01:00
Rémy Coutable 4e2ebd95fd Added .travis.yml 2012-03-08 00:44:45 +01:00
Rémy Coutable b3c1f6cb71 Refactored tests! 2012-03-08 00:44:12 +01:00
Rémy Coutable f2225aad84 Huge cleaning and refactoring, tests unchanged so there should be no regression.
- Get rid of the "env" param and use @request everywhere
- Extracted constraint matching in a new dedicated class
- Simplified logic by x10000! ;)

Next step is to add specific tests for SslEnforcerConstraint...
2012-03-07 00:31:37 +01:00
mgawlista 57687abd7a Implemented new options only_methods and except_methods. 2012-03-03 23:32:52 +01:00
mgawlista f7fa4851b8 Rewrite of enforce_ssl? to generate all condition variants of options from keys_by_type hash. 2012-03-03 23:30:51 +01:00
Thibaud Guillaume-Gentil 97558dcdad Merge pull request #29 from ariejan/master
Added documentation on nginx/proxy setups
2011-10-21 07:15:33 -07:00
Ariejan de Vroom bea415e66f Added info about setting up proxy header with Nginx. 2011-10-21 16:11:03 +03:00