Gonzalo Rodriguez
55cb6def03
feat: clear custom response when clearing configuration
2019-10-17 14:26:22 -03:00
Gonzalo Rodriguez
6731e231cd
Merge pull request #440 from fatkodima/retry-after-header
...
Allow to configure Retry-After header for default throttled_response handler
2019-10-16 19:41:44 -03:00
fatkodima
a34c187dda
Allow to configure Retry-After header for default throttled_response handler
2019-10-17 00:26:13 +03:00
Gonzalo Rodriguez
0112405fb4
refactor: prefer require over autoload for const referenced in the same file
2019-10-16 17:43:16 -03:00
Gonzalo Rodriguez
20fdab0c50
style: fix indentation
2019-10-16 16:27:30 -03:00
Gonzalo Rodriguez
a67a7bfdeb
Merge pull request #446 from fatkodima/extract-config
...
Extract Configuration class
2019-10-16 16:23:21 -03:00
fatkodima
7118b7a243
Extract Configuration class
2019-10-16 17:34:46 +03:00
Gonzalo Rodriguez
9cf227a32e
Merge pull request #445 from fatkodima/redis-proxy-increment
...
Fix rescuing errors in RedisProxy#increment
2019-10-15 18:13:52 -03:00
fatkodima
2fac6418f8
Fix rescuing errors in RedisProxy#increment
2019-10-15 22:54:33 +03:00
Gonzalo Rodriguez
6cfd036c2b
Merge pull request #435 from dsantosmerino/refactor/throttle-matched-by
...
Refactor `Throttle#matched_by?` method
2019-10-14 18:01:04 -03:00
dsantosmerino
49131bb4c6
Refactor Throttle#matched_by? method
...
Code Climate complains about the complexity of this method. Here we try to reduce it by using private methods that encapsulate some details that are not required to understand the implementation of the main method.
2019-10-13 09:36:44 +02:00
Gonzalo Rodriguez
9bfec1ac70
Bump gem version to v6.2.0
2019-10-12 19:04:46 -03:00
Gonzalo Rodriguez
1167c65ba6
Don't autoplug middleware for untested rails versions
2019-10-12 18:10:10 -03:00
Gonzalo Rodriguez
f65431f788
feat: provide possibility of rescuing any Rack::Attack error
2019-10-11 18:02:04 -03:00
Gonzalo Rodriguez
7b5f9c07c8
build: fix gem build open-ended version warning
2019-10-11 17:51:46 -03:00
Gonzalo Rodriguez
2d1de4ac62
docs: add note about README contents gotcha
2019-10-11 16:00:01 -03:00
Gonzalo Rodriguez
95347e35f1
Merge pull request #431 from fatkodima/use-middleware
...
Auto plug middleware for simpler installation
2019-10-09 16:12:22 -03:00
fatkodima
f22b24cbc5
Do not auto-plug for rails < 5
2019-10-08 13:08:07 +03:00
fatkodima
bdfb01ab5b
Changes and tests
2019-10-08 12:29:25 +03:00
fatkodima
b512e05786
Auto plug middleware for simpler installation
2019-10-08 12:29:25 +03:00
Gonzalo Rodriguez
e5ceab040c
ci: update rubies
2019-10-02 10:51:01 -03:00
Gonzalo Rodriguez
bdc89dde7b
test: fix minitest/spec deprecation warnings
2019-10-01 17:19:44 -03:00
Gonzalo Rodriguez
6fba2c010d
test: update rubocop-performance to v1.5
2019-10-01 16:52:21 -03:00
Gonzalo Rodriguez
cf4cb6f4ce
test: update rubocop to v0.75
2019-10-01 16:50:52 -03:00
Gonzalo Rodriguez
2ef787e25d
test: update rake to v13
2019-10-01 16:50:19 -03:00
Gonzalo Rodriguez
703fbaf22f
Merge pull request #432 from jpinnix/patch-1
...
Single spelling correction
2019-09-17 17:28:47 -03:00
Jeremy Pinnix
f0c6cb1385
Single spelling correction
2019-09-11 14:55:12 -05:00
Gonzalo Rodriguez
4d0d01f9c4
ci: update rubies patch
2019-08-29 17:00:13 -03:00
Gonzalo Rodriguez
51a58634a3
ci: update from rails 6.0.0.rc2 to 6.0.0
2019-08-16 18:59:28 -03:00
Gonzalo Rodriguez
4fc4d79c9d
Merge pull request #428 from grzuy/style
...
Enable more code style checks
2019-08-06 11:36:56 -03:00
Gonzalo Rodriguez
0ce6befd68
style: update to latest rubocop
2019-08-02 17:04:52 -03:00
Gonzalo Rodriguez
8fafa7602b
style: fix Style/BlockDelimiters cop check
2019-08-02 15:24:17 -03:00
Gonzalo Rodriguez
c0328707b1
style: enable Style/ParallelAssignment cop checks
2019-08-02 13:47:54 -03:00
Gonzalo Rodriguez
9d2e66e4eb
style: attempt to improve gemspec legibility
2019-08-02 12:16:14 -03:00
Gonzalo Rodriguez
d508e21483
style: avoid multiple assignments to same variable in conditional
2019-08-02 11:59:15 -03:00
Gonzalo Rodriguez
26ac5d1370
ci: no longer allow failures for almost stable Rails 6
2019-08-02 11:30:36 -03:00
Gonzalo Rodriguez
c8021da91c
style: avoid compact class/module definitions
2019-08-02 11:17:41 -03:00
Gonzalo Rodriguez
f5a352b8f9
style: limit line length to 120 columns
2019-08-02 10:51:53 -03:00
Gonzalo Rodriguez
9a042ad19a
Merge pull request #426 from grzuy/chat
...
docs: add gitter chat badge
2019-08-01 14:47:04 -03:00
Gonzalo Rodriguez
f86632f386
docs: add gitter chat badge
2019-08-01 14:23:30 -03:00
Gonzalo Rodriguez
644d2a412e
Merge pull request #425 from joemasilotti/patch-1
...
Example Configuration: black/white -> block/safe
2019-07-27 14:41:58 -03:00
Joe Masilotti
8ceda70f14
black/white -> block/safe
2019-07-27 09:31:22 +02:00
Gonzalo Rodriguez
c8abad53fe
Merge remote-tracking branch 'upstream/master'
2019-07-22 15:22:20 -03:00
Gonzalo Rodriguez
7592b99886
Merge pull request #423 from ishigo974/patch-1
...
Fix typo in CHANGELOG.md
2019-07-16 10:59:53 -03:00
Maxime
c16eba61fb
Fix typo in CHANGELOG.md
2019-07-16 14:12:22 +02:00
Gonzalo Rodriguez
dc305e0782
Merge pull request #421 from cristiangreco/cristian/redis-cache-store-failsafe
...
Failsafe on Redis error replies in RedisCacheStoreProxy.
2019-07-15 18:47:17 -03:00
Cristian Greco
dd6c09e581
Failsafe on Redis error replies in RedisCacheStoreProxy.
...
RedisCacheStoreProxy will blow up when RedisCacheStore raises a
CommandError exception. In fact, by default the proxied store only
handles BaseConnectionError exceptions, but will let bubble up any other
type of exception from the underlying client.
This pull request uses the same approach from RedisProxy, where store
operations are wrapped in a `rescuing` block that rescues and ignores
BaseError exceptions (the most generic exception class that can be
raised by the Redis client).
2019-07-14 01:37:59 +01:00
Gonzalo Rodriguez
c3c6398f7e
Bump gem version to v6.1.0
2019-07-11 17:01:40 -03:00
Gonzalo Rodriguez
50fde1e751
Merge pull request #422 from grzuy/discriminator_in_throttle_data
...
feat: provide discriminator in throttle_data
2019-07-11 16:57:24 -03:00
Gonzalo Rodriguez
58ba650e6b
feat: provide discriminator in throttle_data
2019-07-10 17:21:48 -03:00