Skip to content

Commit 204760f

Browse files
committed
Ask for latest Sidekiq
1 parent eb94bdd commit 204760f

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

Gemfile

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,16 @@ git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
77
# Specify your gem's dependencies in job-iteration.gemspec
88
gemspec
99

10+
ruby_version = Gem::Version.new(RUBY_VERSION)
11+
12+
sidekiq_version = if ruby_version >= Gem::Version.new("3.2")
13+
">= 8.0.9" # Fixes incompatibility with connection_pool >= 3.0.0
14+
else
15+
">= 7.0.0"
16+
end
17+
1018
# for integration testing
11-
gem "sidekiq"
19+
gem "sidekiq", sidekiq_version
1220
gem "resque"
1321
gem "delayed_job"
1422

@@ -39,7 +47,6 @@ gem "rake"
3947
gem "csv" # required for Ruby 3.4+
4048
gem "mutex_m" # Required for Ruby 3.4+
4149

42-
ruby_version = Gem::Version.new(RUBY_VERSION)
4350
if ruby_version >= Gem::Version.new("3.2")
4451
tapioca_version = ">= 0.17.9" # Fixes incompatibility with Sorbet >= 0.6.12698
4552
sorbet_version = ">= 0.6.12698"

0 commit comments

Comments
 (0)