Skip to content

Commit 4aa9a1e

Browse files
authored
🔀 Merge pull request #254 from resque/fix-appraisals
⬆️ Update CI matrix with modern versions
2 parents e2fb351 + 7024b3c commit 4aa9a1e

File tree

6 files changed

+45
-15
lines changed

6 files changed

+45
-15
lines changed

.github/workflows/ruby.yml

Lines changed: 30 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,27 @@ jobs:
1111
strategy:
1212
fail-fast: false
1313
matrix:
14-
os: [ ubuntu-22.04 ]
15-
ruby: [ "2.4", "2.5", "2.6", "2.7", "3.0", "3.1", "3.2", "3.3" ]
16-
resque: [ "1.22", "1.23", "1.24", "1.25", "1.26", "1.27", "2.0", "2.1", "2.2", "2.3", "2.4", "2.5", "2.6" ]
14+
os: [ ubuntu-22.04, ubuntu-24.04 ]
15+
ruby: [ "2.4", "2.5", "2.6", "2.7", "3.0", "3.1", "3.2", "3.3", "3.4" ]
16+
resque:
17+
- "1.22"
18+
- "1.23"
19+
- "1.24"
20+
- "1.25"
21+
- "1.26"
22+
- "1.27"
23+
- "2.0"
24+
- "2.1"
25+
- "2.2"
26+
- "2.3"
27+
- "2.4"
28+
- "2.5"
29+
- "2.6"
30+
- "2.7"
1731

1832
include:
19-
- { resque: "1.22", redis: "2.0" }
20-
- { resque: "1.23", redis: "3.0" }
33+
- { resque: "1.22", redis: "2.2" }
34+
- { resque: "1.23", redis: "2.2" }
2135
- { resque: "1.24", redis: "3.0" }
2236
- { resque: "1.25", redis: "3.0" }
2337
- { resque: "1.26", redis: "3.2" }
@@ -29,31 +43,37 @@ jobs:
2943
- { resque: "2.4", redis: "4.8" }
3044
- { resque: "2.5", redis: "5.0" }
3145
- { resque: "2.6", redis: "5.2" }
32-
33-
- os: ubuntu-20.04
34-
ruby: "3.3"
35-
resque: "2.6"
36-
redis: "5.2"
46+
- { resque: "2.7", redis: "5.4" }
3747

3848
exclude:
3949
# The resque 1.22 gemfile seems to be okay with ruby 3.2 and 3.3
4050
- { resque: "1.23", ruby: "3.2" } # unknown incompatibility...
4151
- { resque: "1.23", ruby: "3.3" } # unknown incompatibility...
52+
- { resque: "1.23", ruby: "3.4" } # unknown incompatibility...
53+
4254
- { resque: "1.24", ruby: "3.2" } # unknown incompatibility...
4355
- { resque: "1.24", ruby: "3.3" } # unknown incompatibility...
56+
- { resque: "1.24", ruby: "3.4" } # unknown incompatibility...
57+
4458
- { resque: "1.25", ruby: "3.2" } # unknown incompatibility...
4559
- { resque: "1.25", ruby: "3.3" } # unknown incompatibility...
60+
- { resque: "1.25", ruby: "3.4" } # unknown incompatibility...
61+
4662
- { resque: "1.26", ruby: "3.2" } # unknown incompatibility...
4763
- { resque: "1.26", ruby: "3.3" } # unknown incompatibility...
64+
- { resque: "1.26", ruby: "3.4" } # unknown incompatibility...
4865

4966
- { resque: "2.1", ruby: "3.0" } # redis-namespace 1.7 requires ruby < 3
5067
- { resque: "2.1", ruby: "3.1" } # redis-namespace 1.7 requires ruby < 3
5168
- { resque: "2.1", ruby: "3.2" } # redis-namespace 1.7 requires ruby < 3
5269
- { resque: "2.1", ruby: "3.3" } # redis-namespace 1.7 requires ruby < 3
70+
- { resque: "2.1", ruby: "3.4" } # redis-namespace 1.7 requires ruby < 3
5371

5472
- { resque: "2.5", ruby: "2.4" } # redis 5.0 requires ruby 2.5
5573
- { resque: "2.6", ruby: "2.4" } # redis 5.2 requires ruby 2.6
5674
- { resque: "2.6", ruby: "2.5" } # redis 5.2 requires ruby 2.6
75+
- { resque: "2.7", ruby: "2.4" } # redis 5.2 requires ruby 2.6
76+
- { resque: "2.7", ruby: "2.5" } # redis 5.2 requires ruby 2.6
5777

5878
services:
5979
redis:

Appraisals

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
appraise "resque-1.22-redis-2.0" do
1+
appraise "resque-1.22-redis-2.2" do
22
gem "resque", "1.22.0" # 2012-08-21
33
gem "redis-namespace", "1.0.3" # 2011-05-17
44
gem "redis", "2.2.2" # 2011-08-04
55
end
66

7-
appraise "resque-1.23-redis-2.0" do
7+
appraise "resque-1.23-redis-2.2" do
88
gem "resque", "1.23.1" # 2013-03-07
99
gem "redis-namespace", "1.1.0" # 2011-08-15
1010
gem "redis", "2.2.2" # 2011-08-04
@@ -75,3 +75,9 @@ appraise "resque-2.6-redis-5.2" do
7575
gem "redis-namespace", "1.11.0" # 2023-06-08
7676
gem "redis", "5.2.0" # 2024-04-15
7777
end
78+
79+
appraise "resque-2.7-redis-5.4" do
80+
gem "resque", "2.7.0" # 2024-12-30
81+
gem "redis-namespace", "1.11.0" # 2023-06-08
82+
gem "redis", "5.4.1" # 2025-07-17
83+
end
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
source "https://rubygems.org"
44

55
gem "appraisal"
6-
gem "resque", "1.23.1"
7-
gem "redis-namespace", "1.2.2"
8-
gem "redis", "3.0.7"
6+
gem "resque", "2.7.0"
7+
gem "redis-namespace", "1.11.0"
8+
gem "redis", "5.4.1"
99

1010
gemspec path: "../"

spec/logging_spec.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
let(:expect_flags) { File::WRONLY | File::APPEND }
77

8+
89
# Don't pollute the log output
910
before(:all) { $skip_logging = true }
1011
after(:all) { $skip_logging = false }
@@ -46,6 +47,7 @@
4647
expect(File.exist?(tmp_path)).to be_truthy
4748
expect(@before).to_not eq(File.stat(tmp_path).inspect)
4849
expect(@fp.stat.inspect).to eq(File.stat(tmp_path).inspect)
50+
pending("ruby 3.4 reopen resets the encoding to nil!") if "3.4.0" <= RUBY_VERSION
4951
expect(@ext).to eq((@fp.external_encoding rescue nil))
5052
expect(@int).to eq((@fp.internal_encoding rescue nil))
5153
expect(expect_flags).to eq((expect_flags & @fp.fcntl(Fcntl::F_GETFL)))
@@ -78,6 +80,7 @@
7880
expect(@tmp_path).to eq(fp.path)
7981
expect(File.exist?(@tmp_path)).to be_truthy
8082
expect(fp.stat.inspect).to eq(File.stat(@tmp_path).inspect)
83+
pending("ruby 3.4 reopen resets the encoding to nil!") if "3.4.0" <= RUBY_VERSION
8184
expect(encoding).to eq(fp.external_encoding)
8285
expect(fp.internal_encoding).to be_nil
8386
expect(expect_flags).to eq((expect_flags & fp.fcntl(Fcntl::F_GETFL)))
@@ -106,6 +109,7 @@
106109
expect(@tmp_path).to eq(fp.path)
107110
expect(File.exist?(@tmp_path)).to be_truthy
108111
expect(fp.stat.inspect).to eq(File.stat(@tmp_path).inspect)
112+
pending("ruby 3.4 reopen resets the encoding to nil!") if "3.4.0" <= RUBY_VERSION
109113
expect(ext).to eq(fp.external_encoding)
110114

111115
if ext != Encoding::BINARY

0 commit comments

Comments
 (0)