Test against Redis 3.x

This commit is contained in:
Gonzalo Rodriguez 2018-09-30 21:24:44 -03:00
parent d189a2c7ee
commit 82c0a17dd4
No known key found for this signature in database
GPG key ID: 5DB8B81B049B8AB1
5 changed files with 16 additions and 2 deletions

View file

@ -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

View file

@ -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
View 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: "../"

View file

@ -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"

View file

@ -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"