mirror of
https://github.com/samsonjs/rack-attack.git
synced 2026-03-25 09:25:49 +00:00
Drop Dalli 2 support (#679)
This commit is contained in:
parent
f8fc4dc1ea
commit
6db4a73253
3 changed files with 0 additions and 44 deletions
8
.github/workflows/build.yml
vendored
8
.github/workflows/build.yml
vendored
|
|
@ -35,7 +35,6 @@ jobs:
|
||||||
- rails_6_1
|
- rails_6_1
|
||||||
- rails_6_0
|
- rails_6_0
|
||||||
- dalli3
|
- dalli3
|
||||||
- dalli2
|
|
||||||
- redis_5
|
- redis_5
|
||||||
- redis_4
|
- redis_4
|
||||||
- connection_pool_dalli
|
- connection_pool_dalli
|
||||||
|
|
@ -51,13 +50,6 @@ jobs:
|
||||||
- active_support_6_redis_cache_store_pooled
|
- active_support_6_redis_cache_store_pooled
|
||||||
- redis_store
|
- redis_store
|
||||||
exclude:
|
exclude:
|
||||||
- gemfile: dalli2
|
|
||||||
ruby: '3.3'
|
|
||||||
- gemfile: dalli2
|
|
||||||
ruby: '3.2'
|
|
||||||
- gemfile: dalli2
|
|
||||||
ruby: '3.1'
|
|
||||||
- gemfile: dalli2
|
|
||||||
ruby: '3.0'
|
ruby: '3.0'
|
||||||
- gemfile: rails_7_0
|
- gemfile: rails_7_0
|
||||||
ruby: '2.6'
|
ruby: '2.6'
|
||||||
|
|
|
||||||
|
|
@ -1,12 +0,0 @@
|
||||||
# This file was generated by Appraisal
|
|
||||||
|
|
||||||
source "https://rubygems.org"
|
|
||||||
|
|
||||||
gem "dalli", "~> 2.0"
|
|
||||||
|
|
||||||
group :maintenance, optional: true do
|
|
||||||
gem "bake"
|
|
||||||
gem "bake-gem"
|
|
||||||
end
|
|
||||||
|
|
||||||
gemspec path: "../"
|
|
||||||
|
|
@ -1,24 +0,0 @@
|
||||||
# frozen_string_literal: true
|
|
||||||
|
|
||||||
require_relative "../../spec_helper"
|
|
||||||
|
|
||||||
should_run =
|
|
||||||
defined?(::Dalli) &&
|
|
||||||
Gem::Version.new(::Dalli::VERSION) < Gem::Version.new("3")
|
|
||||||
|
|
||||||
if should_run
|
|
||||||
require_relative "../../support/cache_store_helper"
|
|
||||||
require "active_support/cache/dalli_store"
|
|
||||||
|
|
||||||
describe "ActiveSupport::Cache::DalliStore as a cache backend" do
|
|
||||||
before do
|
|
||||||
Rack::Attack.cache.store = ActiveSupport::Cache::DalliStore.new
|
|
||||||
end
|
|
||||||
|
|
||||||
after do
|
|
||||||
Rack::Attack.cache.store.clear
|
|
||||||
end
|
|
||||||
|
|
||||||
it_works_for_cache_backed_features(fetch_from_store: ->(key) { Rack::Attack.cache.store.fetch(key) })
|
|
||||||
end
|
|
||||||
end
|
|
||||||
Loading…
Reference in a new issue