Commit graph

184 commits

Author SHA1 Message Date
hakanensari
5ff5bf44ba Don't memoize in test
I don’t think this has any side effect, but still…
2014-04-17 18:21:13 +01:00
hakanensari
5d72c6e5f9 Move individual proxy classes to separate files 2014-04-15 16:19:43 +01:00
hakanensari
bf40123c04 Move offline case to separate file 2014-04-15 16:17:27 +01:00
hakanensari
f0a53f474e Stub #with on delegator 2014-04-09 13:15:00 +01:00
hakanensari
0640a53cdf Use Appraisal to test against multiple versions 2014-04-09 13:11:43 +01:00
hakanensari
ca2c0e5515 Ignore binstubs 2014-04-09 13:11:10 +01:00
hakanensari
b4fc97405d Merge remote-tracking branch 'upstream/dalli_versions' into patch-3 2014-04-09 12:17:29 +01:00
hakanensari
937cd3ca20 Merge branch 'master' into patch-3 2014-04-09 12:17:10 +01:00
hakanensari
1c0bc3da4d Merge branch 'patch-2' into patch-3
Conflicts:
	lib/rack/attack/store_proxy.rb
2014-04-09 12:16:16 +01:00
Aaron Suggs
66231dc5b2 v3.1.0 2014-04-04 16:16:31 -04:00
Aaron Suggs
d7f5a31e31 update changelog 2014-04-04 15:52:26 -04:00
Aaron Suggs
f872f5140c Merge pull request #59 from tristandunn/custom-request
Add a custom request class to allow for helper methods.
2014-04-04 15:52:02 -04:00
Tristan Dunn
16f1cfc578 Add a custom request class to allow for helper methods.
Fixes #58.
2014-04-04 14:41:59 -05:00
Aaron Suggs
e445bd803a Update changelog 2014-04-03 22:38:38 -04:00
Aaron Suggs
ea09a49538 Merge pull request #54 from stevehodgkiss/dont_override_new_and_return_a_class
Rack::Attack.new should return an instance of a class, not the Rack::Attack constant
2014-04-03 22:37:05 -04:00
Steve Hodgkiss
93421efa5a Tidy up defaults. We don't need to use ||= because this runs when the class gets loaded, and we won't have user supplied defaults yet. 2014-04-02 17:12:28 +11:00
Steve Hodgkiss
332dd4ff9e Delegate to class methods with forwardable 2014-04-02 17:08:46 +11:00
hakanensari
92be2791ab Handle older Dalli clients 2014-04-01 12:23:10 +01:00
hakanensari
128c5aa9bf Support a Dalli Connection Pool 2014-04-01 12:10:32 +01:00
hakanensari
adab844784 Support older dalli client versions 2014-04-01 11:21:14 +01:00
Aaron Suggs
db42cc702e tests: add gemfiles for dalli 1.1.x and 2.x 2014-03-31 18:42:27 -04:00
Aaron Suggs
d76444164a Update changelog 2014-03-31 12:06:11 -04:00
Aaron Suggs
d3026acef5 Merge pull request #53 from hakanensari/patch-1
Implement Proxy for Dalli
2014-03-31 11:28:09 -04:00
Steve Hodgkiss
c3a077442a Make Rack::Attack a class and Rack::Attack.new return an instance of that class, rather than Rack::Attack. 2014-03-28 14:53:51 +11:00
hakanensari
a7ec48fb44 Implement Proxy for Dalli
kickstarter/rack-attack#52
2014-03-26 21:54:12 +00:00
Aaron Suggs
40963654b8 README: remove year from copyright.
h/t @fredbenenson
2014-03-25 10:58:55 -04:00
Aaron Suggs
95264f9d19 Merge branch 'integration' 2014-03-15 15:01:13 -04:00
Aaron Suggs
9049433f0b Update changelog 2014-03-15 15:01:03 -04:00
Aaron Suggs
1767c134ff [travisci] Add ruby 2.1.1 tests 2014-03-15 14:55:14 -04:00
Aaron Suggs
671f3d4c40 [travisci] Fix Errno::ENETUNREACH errors in redis integration tests 2014-03-15 14:51:15 -04:00
Aaron Suggs
2a7ae7d84d Integration tests: less flakiness by sleeping more 2014-03-15 14:41:50 -04:00
Aaron Suggs
cabadf3dc0 Better organize integration tests
Add rake tasks `test:units` and `test:integration`

Run integration tests by default on TravisCi.
Run memcached and redis on TravisCi.
2014-03-15 14:21:37 -04:00
Aaron Suggs
7c6cead69c Version 3.0.0; update changelog 2014-03-15 08:01:55 -04:00
Aaron Suggs
1abe292240 Merge pull request #49 from wkimeria/wip/dont_raise_redis_error
If redis client throws exception, don't raise it
2014-03-15 07:56:16 -04:00
Will Kimeria
87f628d0c1 If redis client throws exception, don't raise it
For throttling, when the redis client throws an exception, the request
ends up getting rate limited. Modify this to be similar to how
ActiveSupport.MemCacheStore functions (the read, write and increment
methods do not raise exceptions)
2014-03-14 11:50:59 -07:00
Aaron Suggs
8993db2dc4 Update Changelog 2014-02-06 18:52:58 -05:00
Aaron Suggs
48adeda2f6 Merge pull request #42 from carpodaster/feature/return-403-forbidden-by-default
Return 403 forbidden by default
2014-02-06 18:51:29 -05:00
Carsten Zimmermann
1095f85242 Change response body to 'Forbidden' 2014-02-06 23:29:44 +01:00
Carsten Zimmermann
355a6fbce6 Update readme 2014-02-06 21:35:28 +01:00
Carsten Zimmermann
97a43f7e66 Return 403 Forbidden instead of 401
401 Unauthorized suggests that the requests can be
retried with appropriate credentials. 403 explicitly
states that the request should not be repeated.

See #41
2014-02-06 21:32:51 +01:00
Aaron Suggs
d79fda80d6 TravisCI: workaround errors on ruby 2.1.0
Use latest bundler version.
See https://github.com/travis-ci/travis-ci/issues/1806
2014-01-03 13:47:58 -05:00
Aaron Suggs
d28dcaf0b1 Merge pull request #39 from tjschuck/patch-1
Update deprecated nginx limit_zone to limit_conn_zone
2014-01-03 10:37:43 -08:00
T.J. Schuck
63b8a0d7bd Update deprecated nginx limit_zone to limit_conn_zone 2014-01-03 10:04:21 -05:00
Aaron Suggs
93fae0853e Merge pull request #38 from salimane/pr_ruby_2_1_0
Add Ruby 2.1.0 to .travis.yml
2013-12-27 19:45:08 -08:00
Aaron Suggs
f8b516fb11 Remove debugger as development dependency 2013-12-27 22:28:13 -05:00
Salimane Adjao Moustapha
31d69071e7 Add Ruby 2.1.0 to .travis.yml 2013-12-27 15:40:25 +01:00
Aaron Suggs
9538d3156f Merge pull request #37 from mjelks/master
Update README.md
2013-11-06 14:25:34 -08:00
Michael Jelks
df276e6dfa Update README.md
Appears to be error with documentation and Allow2Ban portion. Caused local errors with '.path= is undefined'
2013-11-06 14:18:37 -08:00
Aaron Suggs
4a9222e03a Merge pull request #35 from schneems/patch-1
properly indent code sections
2013-10-23 04:59:22 -07:00
Richard Schneeman
41c449f838 properly indent code sections
Using three tick marks and double indenting is redundant. Doing both produces a readme with an odd visual flow. This change does not modify content, it only changes lefthand whitespace so the Readme on Github will be more coherent.
2013-10-23 00:09:43 -05:00