From 02f56979f1774dddb8027c4f62cd897847fecfa6 Mon Sep 17 00:00:00 2001 From: Gonzalo Rodriguez Date: Wed, 20 May 2020 21:33:13 -0300 Subject: [PATCH 1/2] Merge pull request #482 from splitwise/rofreg/avoid-rails-5.2.4.3-deprecation-warning Fix deprecation warning in Rails 5.2.4.3 --- lib/rack/attack/store_proxy/redis_cache_store_proxy.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/rack/attack/store_proxy/redis_cache_store_proxy.rb b/lib/rack/attack/store_proxy/redis_cache_store_proxy.rb index 78807f8..1de361c 100644 --- a/lib/rack/attack/store_proxy/redis_cache_store_proxy.rb +++ b/lib/rack/attack/store_proxy/redis_cache_store_proxy.rb @@ -24,6 +24,10 @@ module Rack end end + def read(name, options = {}) + super(name, options.merge!(raw: true)) + end + def write(name, value, options = {}) super(name, value, options.merge!(raw: true)) end From 3a5d10c8b371ece53c46ff95a393b8c7346397f6 Mon Sep 17 00:00:00 2001 From: Gonzalo Rodriguez Date: Wed, 20 May 2020 23:19:26 -0300 Subject: [PATCH 2/2] Bump gem version to v6.3.1 --- CHANGELOG.md | 8 ++++++++ lib/rack/attack/version.rb | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fb5506a..d44d1e0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,12 @@ All notable changes to this project will be documented in this file. +## [6.3.1] - 2020-05-21 + +### Fixed + +- Warning when using `ActiveSupport::Cache::RedisCacheStore` as a cache store with rails 5.2.4.3 (#482) (@rofreg) + ## [6.3.0] - 2020-04-26 ### Added @@ -216,6 +222,7 @@ so your custom code is less prone to race conditions ([#282](https://github.com/ - Remove unused variable - Extract mandatory options to constants +[6.3.1]: https://github.com/kickstarter/rack-attack/compare/v6.3.0...v6.3.1/ [6.3.0]: https://github.com/kickstarter/rack-attack/compare/v6.2.2...v6.3.0/ [6.2.2]: https://github.com/kickstarter/rack-attack/compare/v6.2.1...v6.2.2/ [6.2.1]: https://github.com/kickstarter/rack-attack/compare/v6.2.0...v6.2.1/ @@ -247,3 +254,4 @@ so your custom code is less prone to race conditions ([#282](https://github.com/ [2.2.0]: https://github.com/kickstarter/rack-attack/compare/v2.1.1...v2.2.0/ [@fatkodima]: https://github.com/fatkodima +[@rofreg]: https://github.com/rofreg diff --git a/lib/rack/attack/version.rb b/lib/rack/attack/version.rb index 67b60a5..7b5859c 100644 --- a/lib/rack/attack/version.rb +++ b/lib/rack/attack/version.rb @@ -2,6 +2,6 @@ module Rack class Attack - VERSION = '6.3.0' + VERSION = '6.3.1' end end