From 9020201ff5be02046c50203959b51b4a3305a374 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 --- 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 8041259..00670f0 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 @@ module Rack 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