File tree 7 files changed +91
-2
lines changed
7 files changed +91
-2
lines changed Original file line number Diff line number Diff line change 28
28
gemfile :
29
29
- rack_3
30
30
- rack_2
31
+ - rails_7_2
31
32
- rails_7_1
32
33
- rails_7_0
33
34
- rails_6_1
38
39
- redis_5
39
40
- redis_4
40
41
- connection_pool_dalli
42
+ - active_support_7_2_redis_cache_store
43
+ - active_support_7_2_redis_cache_store_pooled
41
44
- active_support_7_1_redis_cache_store
42
45
- active_support_7_1_redis_cache_store_pooled
43
46
- active_support_7_0_redis_cache_store
@@ -104,6 +107,30 @@ jobs:
104
107
ruby : ' 2.6'
105
108
- gemfile : active_support_7_1_redis_cache_store_pooled
106
109
ruby : ' 2.5'
110
+ - gemfile : rails_7_2
111
+ ruby : ' 3.0'
112
+ - gemfile : rails_7_2
113
+ ruby : ' 2.7'
114
+ - gemfile : rails_7_2
115
+ ruby : ' 2.6'
116
+ - gemfile : rails_7_2
117
+ ruby : ' 2.5'
118
+ - gemfile : active_support_7_2_redis_cache_store
119
+ ruby : ' 3.0'
120
+ - gemfile : active_support_7_2_redis_cache_store
121
+ ruby : ' 2.7'
122
+ - gemfile : active_support_7_2_redis_cache_store
123
+ ruby : ' 2.6'
124
+ - gemfile : active_support_7_2_redis_cache_store
125
+ ruby : ' 2.5'
126
+ - gemfile : active_support_7_2_redis_cache_store_pooled
127
+ ruby : ' 3.0'
128
+ - gemfile : active_support_7_2_redis_cache_store_pooled
129
+ ruby : ' 2.7'
130
+ - gemfile : active_support_7_2_redis_cache_store_pooled
131
+ ruby : ' 2.6'
132
+ - gemfile : active_support_7_2_redis_cache_store_pooled
133
+ ruby : ' 2.5'
107
134
env :
108
135
BUNDLE_GEMFILE : gemfiles/${{ matrix.gemfile }}.gemfile
109
136
steps :
Original file line number Diff line number Diff line change @@ -8,6 +8,10 @@ appraise "rack_2" do
8
8
gem "rack" , "~> 2.0"
9
9
end
10
10
11
+ appraise 'rails_7-2' do
12
+ gem 'railties' , '~> 7.2.0'
13
+ end
14
+
11
15
appraise 'rails_7-1' do
12
16
gem 'railties' , '~> 7.1.0'
13
17
end
@@ -49,6 +53,17 @@ appraise "connection_pool_dalli" do
49
53
gem "dalli" , "~> 3.0"
50
54
end
51
55
56
+ appraise "active_support_7-2_redis_cache_store" do
57
+ gem "activesupport" , "~> 7.2.0"
58
+ gem "redis" , "~> 5.0"
59
+ end
60
+
61
+ appraise "active_support_7-2_redis_cache_store_pooled" do
62
+ gem "activesupport" , "~> 7.2.0"
63
+ gem "connection_pool" , "~> 2.2"
64
+ gem "redis" , "~> 5.0"
65
+ end
66
+
52
67
appraise "active_support_7-1_redis_cache_store" do
53
68
gem "activesupport" , "~> 7.1.0"
54
69
gem "redis" , "~> 5.0"
Original file line number Diff line number Diff line change
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "activesupport", "~> 7.2.0"
6
+ gem "redis", "~> 5.0"
7
+
8
+ group :maintenance, optional: true do
9
+ gem "bake"
10
+ gem "bake-gem"
11
+ end
12
+
13
+ gemspec path: "../"
Original file line number Diff line number Diff line change
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "activesupport", "~> 7.2.0"
6
+ gem "connection_pool", "~> 2.2"
7
+ gem "redis", "~> 5.0"
8
+
9
+ group :maintenance, optional: true do
10
+ gem "bake"
11
+ gem "bake-gem"
12
+ end
13
+
14
+ gemspec path: "../"
Original file line number Diff line number Diff line change
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "railties", "~> 7.2.0"
6
+
7
+ group :maintenance, optional: true do
8
+ gem "bake"
9
+ gem "bake-gem"
10
+ end
11
+
12
+ gemspec path: "../"
Original file line number Diff line number Diff line change 7
7
8
8
describe "ActiveSupport::Cache::MemCacheStore (pooled) as a cache backend" do
9
9
before do
10
- Rack ::Attack . cache . store = ActiveSupport ::Cache ::MemCacheStore . new ( pool_size : 2 )
10
+ Rack ::Attack . cache . store = if ActiveSupport . gem_version >= Gem ::Version . new ( "7.2.0" )
11
+ ActiveSupport ::Cache ::MemCacheStore . new ( pool : true )
12
+ else
13
+ ActiveSupport ::Cache ::MemCacheStore . new ( pool_size : 2 )
14
+ end
11
15
end
12
16
13
17
after do
Original file line number Diff line number Diff line change 13
13
14
14
describe "ActiveSupport::Cache::RedisCacheStore (pooled) as a cache backend" do
15
15
before do
16
- Rack ::Attack . cache . store = ActiveSupport ::Cache ::RedisCacheStore . new ( pool_size : 2 )
16
+ Rack ::Attack . cache . store = if ActiveSupport . gem_version >= Gem ::Version . new ( "7.2.0" )
17
+ ActiveSupport ::Cache ::RedisCacheStore . new ( pool : true )
18
+ else
19
+ ActiveSupport ::Cache ::RedisCacheStore . new ( pool_size : 2 )
20
+ end
17
21
end
18
22
19
23
after do
You can’t perform that action at this time.
0 commit comments