Commit graph

719 commits

Author SHA1 Message Date
Nikolay Rys
f79759717a Feature proposal: Request instead of Env in callbacks (#419)
feat: allow easy access to the request object in the callbacks
2019-12-17 14:44:08 -03:00
Gonzalo Rodriguez
c4b15500dc
Merge pull request #463 from lumaxis/patch-1
Use gender-neutral pronoun in Readme
2019-12-12 14:25:26 -03:00
Lukas Spieß
58b4042e35
Use gender-neutral pronoun in Readme 2019-12-12 18:13:13 +01:00
Gonzalo Rodriguez
5a767f8736
Merge pull request #458 from fatkodima/older-rails-auto-use
Auto include middleware for older railses
2019-10-31 10:15:01 -03:00
fatkodima
2527b37221 Auto include middleware for older railses 2019-10-31 14:35:29 +02:00
Gonzalo Rodriguez
9c774b5eeb
Merge branch '6-stable' 2019-10-30 16:21:49 -03:00
Gonzalo Rodriguez
3654293085
Bump gem version to v6.2.1 2019-10-30 15:26:58 -03:00
Gonzalo Rodriguez
a103ff4819
Merge pull request #457 from kickstarter/fix_load
fix: avoid unintended effects on load_config_initializers and other gems load order
2019-10-30 15:13:05 -03:00
Gonzalo Rodriguez
e3056e737f
fix: avoid unintended effects on load_config_initializers and other gems load order
Because of the sort algorithm rails uses to satisfy `after` and `before`
constraints, gems can have unintended effects on others. See
0a120a818d

Prefer making rack-attack middleware idempotent instead of relying on
the load order and the contents of the middleware stack too much.

closes #452
closes #456
2019-10-29 15:45:26 -03:00
Gonzalo Rodriguez
a7ce9a89fe
Merge pull request #449 from fatkodima/ruby-2.3
Remove support for ruby 2.3
2019-10-25 11:11:09 -03:00
Gonzalo Rodriguez
129e970d42
Merge pull request #453 from fatkodima/dynamic-proxies
Make store proxies lookup dynamic
2019-10-25 11:05:37 -03:00
fatkodima
edaa6c6a91 Make store proxies lookup dynamic 2019-10-25 01:41:24 +03:00
Gonzalo Rodriguez
a4ea2146dd
Merge pull request #436 from fatkodima/reset-method
Allow to reset state
2019-10-23 14:06:42 -03:00
fatkodima
18e637aea8 Allow to reset state between tests 2019-10-23 01:33:49 +03:00
Gonzalo Rodriguez
c962dc1a41
Merge pull request #438 from fatkodima/case-insensitive-discriminator
Make discriminators case-insensitive by default
2019-10-22 11:31:34 -03:00
fatkodima
a3dff705bb Make discriminators case-insensitive by default 2019-10-22 12:37:08 +03:00
Gonzalo Rodriguez
8fcd6c8559
Merge pull request #450 from fatkodima/better-failsafe
Do not rescue all errors for redis backed stores
2019-10-18 17:44:23 -03:00
Gonzalo Rodriguez
1f216e12e7
refactor: move require statement to correct file 2019-10-18 17:29:58 -03:00
fatkodima
20ec4d31db Do not rescue all errors for redis backed stores 2019-10-18 02:31:05 +03:00
fatkodima
56361ab56b Remove support for ruby 2.3 2019-10-18 01:29:17 +03:00
Gonzalo Rodriguez
0188a90ab2
refactor: DRY setting config defaults 2019-10-17 14:27:32 -03:00
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