Skip to content

Commit 36479cd

Browse files
authored
Merge pull request #22 from zendesk/jury.razumau/ruby_4.0
Drop support for Ruby below 3.2, add tests with Ruby 4.0
2 parents 40ebb22 + 761cacd commit 36479cd

File tree

14 files changed

+101
-88
lines changed

14 files changed

+101
-88
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,15 @@ jobs:
1818
fail-fast: false
1919
matrix:
2020
ruby-version:
21-
- '2.7'
22-
- '3.0'
23-
- '3.1'
2421
- '3.2'
2522
- '3.3'
2623
- '3.4'
24+
- '4.0'
2725
gemfile:
2826
- 'resque_1'
2927
- 'resque_2'
3028
steps:
31-
- uses: actions/checkout@v3
29+
- uses: actions/checkout@v6
3230
- uses: ruby/setup-ruby@v1
3331
with:
3432
ruby-version: ${{ matrix.ruby-version }}
@@ -39,7 +37,7 @@ jobs:
3937
linter:
4038
runs-on: ubuntu-latest
4139
steps:
42-
- uses: actions/checkout@v3
40+
- uses: actions/checkout@v6
4341
- uses: ruby/setup-ruby@v1
4442
with:
4543
bundler-cache: true

.ruby-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.7.8
1+
3.2

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
- Drop support for Ruby below 3.2.
11+
1012
## [0.3.0] - 2023-07-18
1113
- Adds support for Resque 2.x.
1214
- Ruby versions from 2.7 to 3.2 are now tested against and supported.

Gemfile.lock

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,14 @@ GEM
1010
ast (2.4.2)
1111
coderay (1.1.3)
1212
docile (1.4.0)
13-
json (2.6.3)
13+
json (2.18.0)
1414
language_server-protocol (3.17.0.3)
15+
logger (1.7.0)
1516
method_source (1.0.0)
16-
minitest (5.25.4)
17-
minitest-rg (5.2.0)
18-
minitest (~> 5.0)
17+
minitest (6.0.1)
18+
prism (~> 1.5)
19+
minitest-rg (5.4.0)
20+
minitest (>= 5.0, < 7)
1921
mocha (2.7.1)
2022
ruby2_keywords (>= 0.0.5)
2123
mono_logger (1.1.2)
@@ -26,6 +28,7 @@ GEM
2628
parser (3.2.2.3)
2729
ast (~> 2.4.1)
2830
racc
31+
prism (1.7.0)
2932
pry (0.14.2)
3033
coderay (~> 1.1)
3134
method_source (~> 1.0)
@@ -34,7 +37,7 @@ GEM
3437
rack-protection (3.0.6)
3538
rack
3639
rainbow (3.1.1)
37-
rake (13.0.6)
40+
rake (13.3.1)
3841
redis (4.8.1)
3942
redis-namespace (1.11.0)
4043
redis (>= 4)
@@ -81,6 +84,7 @@ PLATFORMS
8184
ruby
8285

8386
DEPENDENCIES
87+
logger
8488
minitest
8589
minitest-rg
8690
mocha
@@ -93,4 +97,4 @@ DEPENDENCIES
9397
simplecov
9498

9599
BUNDLED WITH
96-
2.4.12
100+
4.0.3

gemfiles/common.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
gemspec path: '../'
66

7+
gem 'logger'
78
gem 'minitest'
89
gem 'minitest-rg'
910
gem 'mocha'

gemfiles/resque_1.gemfile.lock

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,14 @@ GEM
1010
ast (2.4.2)
1111
coderay (1.1.3)
1212
docile (1.4.0)
13-
json (2.6.3)
13+
json (2.18.0)
1414
language_server-protocol (3.17.0.3)
15+
logger (1.7.0)
1516
method_source (1.0.0)
16-
minitest (5.25.4)
17-
minitest-rg (5.2.0)
18-
minitest (~> 5.0)
17+
minitest (6.0.1)
18+
prism (~> 1.5)
19+
minitest-rg (5.4.0)
20+
minitest (>= 5.0, < 7)
1921
mocha (2.7.1)
2022
ruby2_keywords (>= 0.0.5)
2123
mono_logger (1.1.2)
@@ -26,6 +28,7 @@ GEM
2628
parser (3.2.2.3)
2729
ast (~> 2.4.1)
2830
racc
31+
prism (1.7.0)
2932
pry (0.14.2)
3033
coderay (~> 1.1)
3134
method_source (~> 1.0)
@@ -34,7 +37,7 @@ GEM
3437
rack-protection (3.0.6)
3538
rack
3639
rainbow (3.1.1)
37-
rake (13.0.6)
40+
rake (13.3.1)
3841
redis (4.8.1)
3942
redis-namespace (1.11.0)
4043
redis (>= 4)
@@ -81,6 +84,7 @@ PLATFORMS
8184
ruby
8285

8386
DEPENDENCIES
87+
logger
8488
minitest
8589
minitest-rg
8690
mocha
@@ -93,4 +97,4 @@ DEPENDENCIES
9397
simplecov
9498

9599
BUNDLED WITH
96-
2.4.12
100+
4.0.3

gemfiles/resque_2.gemfile.lock

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,14 @@ GEM
1111
coderay (1.1.3)
1212
connection_pool (2.4.1)
1313
docile (1.4.0)
14-
json (2.6.3)
14+
json (2.18.0)
1515
language_server-protocol (3.17.0.3)
16+
logger (1.7.0)
1617
method_source (1.0.0)
17-
minitest (5.25.4)
18-
minitest-rg (5.2.0)
19-
minitest (~> 5.0)
18+
minitest (6.0.1)
19+
prism (~> 1.5)
20+
minitest-rg (5.4.0)
21+
minitest (>= 5.0, < 7)
2022
mocha (2.7.1)
2123
ruby2_keywords (>= 0.0.5)
2224
mono_logger (1.1.2)
@@ -27,6 +29,7 @@ GEM
2729
parser (3.2.2.3)
2830
ast (~> 2.4.1)
2931
racc
32+
prism (1.7.0)
3033
pry (0.14.2)
3134
coderay (~> 1.1)
3235
method_source (~> 1.0)
@@ -35,7 +38,7 @@ GEM
3538
rack-protection (3.0.6)
3639
rack
3740
rainbow (3.1.1)
38-
rake (13.0.6)
41+
rake (13.3.1)
3942
redis (5.0.6)
4043
redis-client (>= 0.9.0)
4144
redis-client (0.14.1)
@@ -82,6 +85,7 @@ PLATFORMS
8285
ruby
8386

8487
DEPENDENCIES
88+
logger
8589
minitest
8690
minitest-rg
8791
mocha
@@ -93,4 +97,4 @@ DEPENDENCIES
9397
simplecov
9498

9599
BUNDLED WITH
96-
2.4.12
100+
4.0.3

lib/resque/plugins/disable_job.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ def disable_job_handler(message, *_args)
2626
end
2727

2828
def disable(specific_args = [], timeout = DEFAULT_TIMEOUT)
29-
Job.disable_job(name, specific_args: specific_args, timeout: timeout)
29+
Job.disable_job(name, specific_args:, timeout:)
3030
end
3131

3232
def enable(specific_args = [])
33-
Job.enable_job(name, specific_args: specific_args)
33+
Job.enable_job(name, specific_args:)
3434
end
3535

3636
def enable_all

resque-disable-job.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ It uses some Redis data structures to keep a record of what jobs need to be disa
2222
spec.bindir = 'exe'
2323
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
2424
spec.require_paths = ['lib']
25-
spec.required_ruby_version = '>= 2.7'
25+
spec.required_ruby_version = '>= 3.2'
2626

2727
spec.add_dependency 'resque'
2828
end

spec/resque/disable_job/version_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
require_relative '../../spec_helper'
44
describe Resque::DisableJob do
55
it 'has a version number' do
6-
expect(Resque::DisableJob::VERSION).wont_be_nil
6+
refute_nil(Resque::DisableJob::VERSION)
77
end
88
end

0 commit comments

Comments
 (0)