Commit graph

163 commits

Author SHA1 Message Date
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
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
Aaron Suggs
25d8cc7c49 Changelog: update for 2.3.0 release 2013-10-11 15:53:07 -04:00
Aaron Suggs
1b6925554d travis: use jruby-19mode 2013-10-09 15:47:03 -04:00
Aaron Suggs
c42e035f62 specs: fix MiniTest typo for older ruby versions 2013-10-09 15:31:52 -04:00
Aaron Suggs
01797eb0ca Merge pull request #34 from jormon/patch-1
allow2ban docs typo
2013-09-30 10:30:17 -07:00
Jordan Moncharmont
76dc9b1dc9 Update README.md
docs typo
2013-09-30 10:18:54 -07:00
Aaron Suggs
e7d4217c34 Update CHANGELOG.md 2013-09-28 21:03:36 -04:00
Aaron Suggs
67489b7323 Merge pull request #33 from teslamotors/allow2ban
Allow2Ban
2013-09-28 18:01:13 -07:00
Jordan Moncharmont
273e045f10 fix edge case, if maxretry is 1, let them get 1 request in 2013-09-27 17:35:01 -07:00
Jordan Moncharmont
ef59c5182a Allow2Ban
An alternate to fail2ban that allows clients until they hit the
thresholds, then blocks them.  Think of it like a throttle where you can
block for more than one period.
2013-09-27 17:18:52 -07:00
Aaron Suggs
56858b85af README: add link to mailing list archives 2013-08-21 10:18:32 -04:00
Aaron Suggs
65ea56d9a8 Add mailing list to readme 2013-08-20 18:57:41 -04:00
Aaron Suggs
3cec847048 [travisci] Fix gemspec path in gemfiles 2013-08-20 13:53:18 -04:00
Aaron Suggs
da2f265e7e [travisci] Add tests for activesupport 3.2 and 4.0 2013-08-20 13:47:45 -04:00
Aaron Suggs
7d9326235d Drop test support for ruby 1.9.2
1.9.2 isn't supported by rails 4, and is difficult to test with travis
ci.

Attn @zmillman: I'd welcome further patches to better test ruby 1.9.2
support without compromising testing on 1.9.3 & 2.0.

See also: #21
2013-08-20 13:45:23 -04:00
Aaron Suggs
1d367f5acd version 2.3.0, update changelog, copy tweaks 2013-08-20 11:39:44 -04:00
Aaron Suggs
b7ebb58bd9 Merge pull request #30 from lunks/allow-limit-to-be-a-proc
Allow limit option to be a proc.
2013-08-20 08:35:27 -07:00
Pedro Nascimento
ab6d7b239d Allow limit option to be a proc.
This allows you to do stuff like:
`req.env["USER"] == "god" ? 1000 : 1`
2013-08-19 19:47:48 -03:00
Aaron Suggs
4e5db68ad6 Minor copy tweaks 2013-08-16 02:03:39 -04:00
Aaron Suggs
65511e0835 README.md: add gem badge; re-arrange stuff 2013-08-13 16:31:03 -04:00
Aaron Suggs
4872649e74 add release to changelog 2013-08-13 11:34:40 -04:00
Aaron Suggs
98eec24a8c Update changelog, version 2.2.1 2013-08-05 21:14:16 -04:00