From dda248993602924536aec97f8c29582f348a3b4d Mon Sep 17 00:00:00 2001 From: fukayatsu Date: Tue, 15 Dec 2020 23:20:58 +0900 Subject: [PATCH] Fix Ruby 2.7 kwargs warning in RedisCacheStoreProxy (cherry picked from commit 9020201ff5be02046c50203959b51b4a3305a374) --- lib/rack/attack/store_proxy/redis_cache_store_proxy.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 1de361cf..9d1be742 100644 --- a/lib/rack/attack/store_proxy/redis_cache_store_proxy.rb +++ b/lib/rack/attack/store_proxy/redis_cache_store_proxy.rb @@ -10,7 +10,7 @@ def self.handle?(store) store.class.name == "ActiveSupport::Cache::RedisCacheStore" end - def increment(name, amount = 1, options = {}) + def increment(name, amount = 1, **options) # RedisCacheStore#increment ignores options[:expires_in]. # # So in order to workaround this we use RedisCacheStore#write (which sets expiration) to initialize