From 070e467ef220a4566abed7dc4c64c278d66b812f Mon Sep 17 00:00:00 2001 From: Santiago Bartesaghi Date: Tue, 24 Oct 2023 19:14:27 -0300 Subject: [PATCH] ci: test against ActiveSupport::RedisCacheStore v5 (#632) --- .github/workflows/build.yml | 14 ++++++++++++++ Appraisals | 11 +++++++++++ .../active_support_5_redis_cache_store.gemfile | 13 +++++++++++++ ...tive_support_5_redis_cache_store_pooled.gemfile | 14 ++++++++++++++ gemfiles/active_support_redis_cache_store.gemfile | 5 +++++ ...active_support_redis_cache_store_pooled.gemfile | 5 +++++ gemfiles/connection_pool_dalli.gemfile | 5 +++++ gemfiles/dalli2.gemfile | 5 +++++ gemfiles/dalli3.gemfile | 5 +++++ gemfiles/rack_1.gemfile | 5 +++++ gemfiles/rack_2.gemfile | 6 +++++- gemfiles/rack_3.gemfile | 5 +++++ gemfiles/rails_4_2.gemfile | 5 +++++ gemfiles/rails_5_2.gemfile | 5 +++++ gemfiles/rails_6_0.gemfile | 5 +++++ gemfiles/rails_6_1.gemfile | 5 +++++ gemfiles/rails_7_0.gemfile | 5 +++++ gemfiles/rails_7_1.gemfile | 5 +++++ gemfiles/redis_4.gemfile | 5 +++++ gemfiles/redis_5.gemfile | 5 +++++ gemfiles/redis_store.gemfile | 5 +++++ 21 files changed, 137 insertions(+), 1 deletion(-) create mode 100644 gemfiles/active_support_5_redis_cache_store.gemfile create mode 100644 gemfiles/active_support_5_redis_cache_store_pooled.gemfile diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 46d6746..6ca2063 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -40,12 +40,18 @@ jobs: - connection_pool_dalli - active_support_redis_cache_store - active_support_redis_cache_store_pooled + - active_support_5_redis_cache_store + - active_support_5_redis_cache_store_pooled - redis_store exclude: - gemfile: rack_1 ruby: 3.2.2 - gemfile: rails_5_2 ruby: 3.2.2 + - gemfile: active_support_5_redis_cache_store + ruby: 3.2.2 + - gemfile: active_support_5_redis_cache_store_pooled + ruby: 3.2.2 - gemfile: rails_4_2 ruby: 3.2.2 - gemfile: dalli2 @@ -54,6 +60,10 @@ jobs: ruby: 3.1.4 - gemfile: rails_5_2 ruby: 3.1.4 + - gemfile: active_support_5_redis_cache_store + ruby: 3.1.4 + - gemfile: active_support_5_redis_cache_store_pooled + ruby: 3.1.4 - gemfile: rails_4_2 ruby: 3.1.4 - gemfile: dalli2 @@ -62,6 +72,10 @@ jobs: ruby: 3.0.6 - gemfile: rails_5_2 ruby: 3.0.6 + - gemfile: active_support_5_redis_cache_store + ruby: 3.0.6 + - gemfile: active_support_5_redis_cache_store_pooled + ruby: 3.0.6 - gemfile: rails_4_2 ruby: 3.0.6 - gemfile: dalli2 diff --git a/Appraisals b/Appraisals index fe49917..89062b5 100644 --- a/Appraisals +++ b/Appraisals @@ -81,6 +81,17 @@ appraise "active_support_redis_cache_store_pooled" do gem "redis", "~> 5.0" end +appraise "active_support_5_redis_cache_store" do + gem "activesupport", "~> 5.2.0" + gem "redis", "~> 5.0" +end + +appraise "active_support_5_redis_cache_store_pooled" do + gem "activesupport", "~> 5.2.0" + gem "connection_pool", "~> 2.2" + gem "redis", "~> 5.0" +end + appraise "redis_store" do gem "redis-store", "~> 1.5" end diff --git a/gemfiles/active_support_5_redis_cache_store.gemfile b/gemfiles/active_support_5_redis_cache_store.gemfile new file mode 100644 index 0000000..0b800a0 --- /dev/null +++ b/gemfiles/active_support_5_redis_cache_store.gemfile @@ -0,0 +1,13 @@ +# This file was generated by Appraisal + +source "https://rubygems.org" + +gem "activesupport", "~> 5.2.0" +gem "redis", "~> 5.0" + +group :maintenance, optional: true do + gem "bake" + gem "bake-gem" +end + +gemspec path: "../" diff --git a/gemfiles/active_support_5_redis_cache_store_pooled.gemfile b/gemfiles/active_support_5_redis_cache_store_pooled.gemfile new file mode 100644 index 0000000..9127da5 --- /dev/null +++ b/gemfiles/active_support_5_redis_cache_store_pooled.gemfile @@ -0,0 +1,14 @@ +# This file was generated by Appraisal + +source "https://rubygems.org" + +gem "activesupport", "~> 5.2.0" +gem "connection_pool", "~> 2.2" +gem "redis", "~> 5.0" + +group :maintenance, optional: true do + gem "bake" + gem "bake-gem" +end + +gemspec path: "../" diff --git a/gemfiles/active_support_redis_cache_store.gemfile b/gemfiles/active_support_redis_cache_store.gemfile index 21a16e7..72fb5b1 100644 --- a/gemfiles/active_support_redis_cache_store.gemfile +++ b/gemfiles/active_support_redis_cache_store.gemfile @@ -5,4 +5,9 @@ source "https://rubygems.org" gem "activesupport", "~> 6.1.0" gem "redis", "~> 5.0" +group :maintenance, optional: true do + gem "bake" + gem "bake-gem" +end + gemspec path: "../" diff --git a/gemfiles/active_support_redis_cache_store_pooled.gemfile b/gemfiles/active_support_redis_cache_store_pooled.gemfile index f74738f..36a40f5 100644 --- a/gemfiles/active_support_redis_cache_store_pooled.gemfile +++ b/gemfiles/active_support_redis_cache_store_pooled.gemfile @@ -6,4 +6,9 @@ gem "activesupport", "~> 6.1.0" gem "connection_pool", "~> 2.2" gem "redis", "~> 5.0" +group :maintenance, optional: true do + gem "bake" + gem "bake-gem" +end + gemspec path: "../" diff --git a/gemfiles/connection_pool_dalli.gemfile b/gemfiles/connection_pool_dalli.gemfile index 67c69a5..f84eb52 100644 --- a/gemfiles/connection_pool_dalli.gemfile +++ b/gemfiles/connection_pool_dalli.gemfile @@ -5,4 +5,9 @@ source "https://rubygems.org" gem "connection_pool", "~> 2.2" gem "dalli", "~> 3.0" +group :maintenance, optional: true do + gem "bake" + gem "bake-gem" +end + gemspec path: "../" diff --git a/gemfiles/dalli2.gemfile b/gemfiles/dalli2.gemfile index c47d5af..eb7e4ac 100644 --- a/gemfiles/dalli2.gemfile +++ b/gemfiles/dalli2.gemfile @@ -4,4 +4,9 @@ source "https://rubygems.org" gem "dalli", "~> 2.0" +group :maintenance, optional: true do + gem "bake" + gem "bake-gem" +end + gemspec path: "../" diff --git a/gemfiles/dalli3.gemfile b/gemfiles/dalli3.gemfile index 5f4d073..3873ded 100644 --- a/gemfiles/dalli3.gemfile +++ b/gemfiles/dalli3.gemfile @@ -4,4 +4,9 @@ source "https://rubygems.org" gem "dalli", "~> 3.0" +group :maintenance, optional: true do + gem "bake" + gem "bake-gem" +end + gemspec path: "../" diff --git a/gemfiles/rack_1.gemfile b/gemfiles/rack_1.gemfile index 2390b85..36b2f91 100644 --- a/gemfiles/rack_1.gemfile +++ b/gemfiles/rack_1.gemfile @@ -7,4 +7,9 @@ gem "activesupport", ">= 4.2" gem "rack", "~> 1.6" gem "rack-test", ">= 0.6" +group :maintenance, optional: true do + gem "bake" + gem "bake-gem" +end + gemspec path: "../" diff --git a/gemfiles/rack_2.gemfile b/gemfiles/rack_2.gemfile index 41b64ab..246c981 100644 --- a/gemfiles/rack_2.gemfile +++ b/gemfiles/rack_2.gemfile @@ -3,6 +3,10 @@ source "https://rubygems.org" gem "rack", "~> 2.0" -gem "railties" + +group :maintenance, optional: true do + gem "bake" + gem "bake-gem" +end gemspec path: "../" diff --git a/gemfiles/rack_3.gemfile b/gemfiles/rack_3.gemfile index 24e3a76..f073501 100644 --- a/gemfiles/rack_3.gemfile +++ b/gemfiles/rack_3.gemfile @@ -4,4 +4,9 @@ source "https://rubygems.org" gem "rack", "~> 3.0" +group :maintenance, optional: true do + gem "bake" + gem "bake-gem" +end + gemspec path: "../" diff --git a/gemfiles/rails_4_2.gemfile b/gemfiles/rails_4_2.gemfile index 055cf9f..4209e6d 100644 --- a/gemfiles/rails_4_2.gemfile +++ b/gemfiles/rails_4_2.gemfile @@ -5,4 +5,9 @@ source "https://rubygems.org" gem "railties", "~> 4.2.0" gem "rack-test", ">= 0.6" +group :maintenance, optional: true do + gem "bake" + gem "bake-gem" +end + gemspec path: "../" diff --git a/gemfiles/rails_5_2.gemfile b/gemfiles/rails_5_2.gemfile index 8b2627f..161bb69 100644 --- a/gemfiles/rails_5_2.gemfile +++ b/gemfiles/rails_5_2.gemfile @@ -4,4 +4,9 @@ source "https://rubygems.org" gem "railties", "~> 5.2.0" +group :maintenance, optional: true do + gem "bake" + gem "bake-gem" +end + gemspec path: "../" diff --git a/gemfiles/rails_6_0.gemfile b/gemfiles/rails_6_0.gemfile index 4cd55a8..679fea7 100644 --- a/gemfiles/rails_6_0.gemfile +++ b/gemfiles/rails_6_0.gemfile @@ -4,4 +4,9 @@ source "https://rubygems.org" gem "railties", "~> 6.0.0" +group :maintenance, optional: true do + gem "bake" + gem "bake-gem" +end + gemspec path: "../" diff --git a/gemfiles/rails_6_1.gemfile b/gemfiles/rails_6_1.gemfile index 4c467fe..b1e5c03 100644 --- a/gemfiles/rails_6_1.gemfile +++ b/gemfiles/rails_6_1.gemfile @@ -4,4 +4,9 @@ source "https://rubygems.org" gem "railties", "~> 6.1.0" +group :maintenance, optional: true do + gem "bake" + gem "bake-gem" +end + gemspec path: "../" diff --git a/gemfiles/rails_7_0.gemfile b/gemfiles/rails_7_0.gemfile index 495c72d..6f490ff 100644 --- a/gemfiles/rails_7_0.gemfile +++ b/gemfiles/rails_7_0.gemfile @@ -4,4 +4,9 @@ source "https://rubygems.org" gem "railties", "~> 7.0.0" +group :maintenance, optional: true do + gem "bake" + gem "bake-gem" +end + gemspec path: "../" diff --git a/gemfiles/rails_7_1.gemfile b/gemfiles/rails_7_1.gemfile index 036d983..fdfb546 100644 --- a/gemfiles/rails_7_1.gemfile +++ b/gemfiles/rails_7_1.gemfile @@ -4,4 +4,9 @@ source "https://rubygems.org" gem "railties", "~> 7.1.0" +group :maintenance, optional: true do + gem "bake" + gem "bake-gem" +end + gemspec path: "../" diff --git a/gemfiles/redis_4.gemfile b/gemfiles/redis_4.gemfile index 701e936..e8b82f1 100644 --- a/gemfiles/redis_4.gemfile +++ b/gemfiles/redis_4.gemfile @@ -4,4 +4,9 @@ source "https://rubygems.org" gem "redis", "~> 4.0" +group :maintenance, optional: true do + gem "bake" + gem "bake-gem" +end + gemspec path: "../" diff --git a/gemfiles/redis_5.gemfile b/gemfiles/redis_5.gemfile index 0aac102..fc9b465 100644 --- a/gemfiles/redis_5.gemfile +++ b/gemfiles/redis_5.gemfile @@ -4,4 +4,9 @@ source "https://rubygems.org" gem "redis", "~> 5.0" +group :maintenance, optional: true do + gem "bake" + gem "bake-gem" +end + gemspec path: "../" diff --git a/gemfiles/redis_store.gemfile b/gemfiles/redis_store.gemfile index 8aafc6d..e32d1e9 100644 --- a/gemfiles/redis_store.gemfile +++ b/gemfiles/redis_store.gemfile @@ -4,4 +4,9 @@ source "https://rubygems.org" gem "redis-store", "~> 1.5" +group :maintenance, optional: true do + gem "bake" + gem "bake-gem" +end + gemspec path: "../"