Alex Martens
427fdfabbc
Add tracks attr_reader to Configuration ( #664 )
2024-06-24 14:46:01 -03:00
Jonathan del Strother
d9fedfae4f
Avoid RedisCacheStore#increment on Rails 6+ ( #597 )
...
Rails has handled increment+expires_in since
6.0 (9d5b02ec50 ),
and more recent versions add pipeline optimizations on top of that.
2023-11-20 13:59:08 -03:00
Santiago Bartesaghi
ffc210250f
refactor: minor refactoring ( #635 )
2023-10-27 21:46:07 -03:00
Santiago Bartesaghi
3543f61b64
Fix #588 don't fail if request.ip is missing ( #630 )
...
* Fix #588 don't fail if request.ip is missing
* Fix Rails 4 suite
* Improve tests
---------
Co-authored-by: Gonzalo <456459+grzuy@users.noreply.github.com>
2023-10-18 00:19:29 +00:00
Santiago Bartesaghi
e9f472786a
Update rubocop ( #629 )
...
* Upgrade rubocop gem
* Fix obsolete parameter
* Fix Lint/MissingSuper
* Fix Lint/ConstantDefinitionInBlock
* Fix Layout/EmptyLineBetweenDefs
* Add rubocop-minitest
* Add rubocop-rake
* Upgrade rubocop-performance
2023-10-16 20:04:35 -03:00
Mitchell Henke
9a7815c332
Remove support for unmaintained ActiveSupport::Cache::RedisStore ( #625 )
...
* remove support for unmaintained ActiveSupport::Cache::RedisStore
* ci: removes active_support_redis_store matrix job
* test: removes unecessary redis-activesupport require
* test: removes dead code
* fix typo
---------
Co-authored-by: Gonzalo <456459+grzuy@users.noreply.github.com>
2023-10-14 11:29:19 -03:00
Samuel Williams
d82c9fd7e3
Bump minor version.
2023-07-26 16:39:28 +12:00
Samuel Williams
b708de32f3
Support Rack 3. ( #586 )
2023-07-25 15:16:43 +12:00
Katsuhiko YOSHIDA
d3be2f31a5
Replace git.io URL
2022-04-28 19:14:17 +09:00
Gonzalo
f5f92f4459
Bump gem version to v6.6.1
2022-04-13 22:50:01 -03:00
Samuel Williams
933c0576b8
Lower case headers. ( #573 )
2022-02-19 13:56:02 +13:00
Alexey Zapparov
c01208afe6
fix: Fix redis-rb 4.6.0 deprecation warnings
...
Redis 4.6.0 deprecated calling commands on `Redis` inside `#pipelined`:
redis.pipelined do
redis.get("key")
end
The above should be:
redis.pipelined do |pipeline|
pipeline.get("key")
end
See: https://github.com/redis/redis-rb/pull/1059
2022-02-04 21:14:00 +01:00
Gonzalo
d0ec4de69b
Bump gem version to v6.6.0
2022-01-29 16:15:15 -03:00
Gonzalo
8d9c884d40
Merge branch 'master' into dalli3-and-rails7
2022-01-29 15:51:25 -03:00
Gonzalo
aaeff6d0ae
feat: deprecate throttled_response and blocklisted_response
2022-01-29 15:22:19 -03:00
Gonzalo
8bf9d4efad
refactor: attempt to make method name more self explanatory and clear
2022-01-29 15:06:13 -03:00
thomas morgan
2fc8c7b65f
support rails 7.0
2021-11-17 11:33:17 -07:00
Gonzalo
886ba3a18d
Merge branch '6-stable'
2021-02-07 16:46:46 -03:00
Gonzalo
12a8390d2d
Bump gem version to v6.5
2021-02-07 13:34:46 -03:00
Gonzalo
f3f0df3fc0
refactor: attempt to avoid user confusion by clarifying method is used by throttle
2021-02-07 13:34:26 -03:00
fatkodima
1e5fb868f6
Auto include middleware for older railses
2021-02-07 12:57:24 -03:00
fatkodima
e131750a6b
Make store proxies lookup dynamic
2021-02-07 12:56:50 -03:00
fatkodima
df354cd141
Make discriminators case-insensitive by default
2021-02-07 12:55:03 -03:00
Gonzalo
1c460b179e
Merge branch '6-stable'
2021-01-23 22:38:36 -03:00
Gonzalo
6328ddcb19
Bump gem version to v6.4
2021-01-23 21:26:11 -03:00
fukayatsu
dda2489936
Fix Ruby 2.7 kwargs warning in RedisCacheStoreProxy
...
(cherry picked from commit 9020201ff5 )
2021-01-23 13:55:48 -03:00
Olle Jonsson
44b6a7353a
Use RuboCop 0.84.0
...
- this enables each of the new Cops and marks each with the version
they appeared in
(cherry picked from commit c07fcdde43 )
2021-01-23 13:55:46 -03:00
fukayatsu
9020201ff5
Fix Ruby 2.7 kwargs warning in RedisCacheStoreProxy
2020-12-15 23:25:37 +09:00
Olle Jonsson
c07fcdde43
Use RuboCop 0.84.0
...
- this enables each of the new Cops and marks each with the version
they appeared in
2020-05-24 17:50:56 +02:00
Gonzalo Rodriguez
493157d555
Merge branch '6-stable'
2020-05-20 23:53:44 -03:00
Gonzalo Rodriguez
3a5d10c8b3
Bump gem version to v6.3.1
2020-05-20 23:19:26 -03:00
Gonzalo Rodriguez
02f56979f1
Merge pull request #482 from splitwise/rofreg/avoid-rails-5.2.4.3-deprecation-warning
...
Fix deprecation warning in Rails 5.2.4.3
2020-05-20 23:03:29 -03:00
Ryan Laughlin
31dd7a8d17
Override RedisCacheStoreProxy#read to always use raw: true
2020-05-20 10:34:58 -04:00
Ryan Laughlin
d5a240d9d2
Fix deprecation warning in Rails 5.2.4.3
2020-05-18 17:14:12 -04:00
Gonzalo Rodriguez
33b7c3b233
Merge branch '6-stable'
2020-04-26 12:39:42 -03:00
Gonzalo Rodriguez
aa071aa5df
Bump gem version to v6.3.0
2020-04-26 11:57:31 -03:00
fatkodima
9923012fe8
Allow to reset state between tests
2020-04-25 16:22:55 -03:00
Gonzalo Rodriguez
64f879395d
Merge commit '8fcd6c855915c802adeeb1784c503fc74115f5a3' into 6-stable
2020-04-25 16:17:37 -03:00
Gonzalo Rodriguez
53c1d93fd1
style: avoid multiline ternary operator
2020-04-25 15:42:30 -03:00
Gonzalo
626eb8e133
Merge branch '6-stable'
2019-12-18 13:24:56 -03:00
Gonzalo Rodriguez
da41880663
Bump gem version to v6.2.2
2019-12-18 11:44:15 -03:00
fatkodima
6cca2467d2
Fix rescuing errors in RedisProxy#increment
2019-12-17 17:54:18 -03:00
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
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
fatkodima
edaa6c6a91
Make store proxies lookup dynamic
2019-10-25 01:41:24 +03:00
fatkodima
18e637aea8
Allow to reset state between tests
2019-10-23 01:33:49 +03:00