mirror of
https://github.com/samsonjs/rack-attack.git
synced 2026-03-25 09:25:49 +00:00
Test against Redis 3.x
This commit is contained in:
parent
d189a2c7ee
commit
82c0a17dd4
5 changed files with 16 additions and 2 deletions
|
|
@ -19,6 +19,7 @@ gemfile:
|
|||
- gemfiles/rails_4_2.gemfile
|
||||
- gemfiles/dalli2.gemfile
|
||||
- gemfiles/redis_4.gemfile
|
||||
- gemfiles/redis_3.gemfile
|
||||
- gemfiles/connection_pool_dalli.gemfile
|
||||
- gemfiles/active_support_redis_cache_store.gemfile
|
||||
- gemfiles/active_support_redis_cache_store_pooled.gemfile
|
||||
|
|
|
|||
|
|
@ -44,6 +44,10 @@ appraise 'redis_4' do
|
|||
gem 'redis', '~> 4.0'
|
||||
end
|
||||
|
||||
appraise 'redis_3' do
|
||||
gem 'redis', '~> 3.3'
|
||||
end
|
||||
|
||||
appraise "connection_pool_dalli" do
|
||||
gem "connection_pool", "~> 2.2"
|
||||
gem "dalli", "~> 2.7"
|
||||
|
|
|
|||
9
gemfiles/redis_3.gemfile
Normal file
9
gemfiles/redis_3.gemfile
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
# This file was generated by Appraisal
|
||||
|
||||
source "https://rubygems.org"
|
||||
|
||||
gem "redis", "~> 3.3"
|
||||
|
||||
gemspec path: "../"
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
require_relative "../../spec_helper"
|
||||
|
||||
if defined?(::ConnectionPool) && defined?(::Redis) && defined?(::ActiveSupport::Cache::RedisCacheStore)
|
||||
if defined?(::ConnectionPool) && defined?(::Redis) && Gem::Version.new(::Redis::VERSION) >= Gem::Version.new("4") && defined?(::ActiveSupport::Cache::RedisCacheStore)
|
||||
require_relative "../../support/cache_store_helper"
|
||||
require "timecop"
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
require_relative "../../spec_helper"
|
||||
|
||||
if defined?(::Redis) && defined?(::ActiveSupport::Cache::RedisCacheStore)
|
||||
if defined?(::Redis) && Gem::Version.new(::Redis::VERSION) >= Gem::Version.new("4") && defined?(::ActiveSupport::Cache::RedisCacheStore)
|
||||
require_relative "../../support/cache_store_helper"
|
||||
require "timecop"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue