Skip to content

Commit 754ebb0

Browse files
authored
AP-1002: Add Sidekiq 8 support (#33)
Upgrade sidekiq-bus for Sidekiq 8 compatibility: - Bump sidekiq dependency to >= 7.3, < 9.0 (minimum 7.3 required for the new Sidekiq::Web.configure block API) - Bump sidekiq-scheduler to >= 5.0, < 7.0 (6.x supports Sidekiq 8) - Migrate web UI registration to Sidekiq::Web.configure block with explicit name:, tab:, and index: keyword arguments (required by Sidekiq 8, forward-compatible with Sidekiq 7.3+) - Bump version to 3.0.0 Verified by running the full RSpec suite (108 examples, 0 failures) against both Sidekiq 8.1.6 and Sidekiq 7.3.9. Jira: https://taskrabbit.atlassian.net/browse/AP-1002
1 parent 2ef186f commit 754ebb0

4 files changed

Lines changed: 16 additions & 6 deletions

File tree

CHANGELOG.md

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

99
### Changed
1010

11+
## [3.0.0] - 2026-06-05
12+
13+
### Changed
14+
- [BREAKING] Sidekiq dependency now allows Sidekiq 8.X (still supports 7.3+).
15+
- [BREAKING] SidekiqScheduler dependency now allows 6.X to support Sidekiq 8.
16+
- Web UI registration migrated to Sidekiq::Web.configure block with explicit
17+
name:, tab:, and index: keyword arguments, which are required by Sidekiq 8.
18+
The same syntax is forward-compatible with Sidekiq 7.
19+
1120
## [2.0.0] - 2025-06-25
1221

1322
### Fixed

lib/sidekiq_bus/server.rb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ def query_subscriptions(app, query_attributes)
134134
end
135135
end
136136

137-
Sidekiq::Web.register SidekiqBus::Server
138-
Sidekiq::Web.locales << File.expand_path(File.dirname(__FILE__) + "/web/locales")
139-
Sidekiq::Web.tabs['Bus'] = 'bus'
137+
Sidekiq::Web.configure do |cfg|
138+
cfg.register(SidekiqBus::Server, name: 'sidekiq_bus', tab: 'Bus', index: 'bus')
139+
cfg.locales << File.expand_path(File.dirname(__FILE__) + "/web/locales")
140+
end

lib/sidekiq_bus/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module SidekiqBus
4-
VERSION = '2.0.1'
4+
VERSION = '3.0.0'
55
end

sidekiq-bus.gemspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ Gem::Specification.new do |s|
1818

1919
s.add_dependency('queue-bus', ['>= 0.7', '< 1'])
2020
s.add_dependency('redis', ['>= 4.0', '< 6.0'])
21-
s.add_dependency('sidekiq', ['>= 7.0.0', '< 8.0'])
22-
s.add_dependency('sidekiq-scheduler', ['>= 5.0', '< 6.0'])
21+
s.add_dependency('sidekiq', ['>= 7.3', '< 9.0'])
22+
s.add_dependency('sidekiq-scheduler', ['>= 5.0', '< 7.0'])
2323

2424
s.add_development_dependency("rspec")
2525
s.add_development_dependency("pry")

0 commit comments

Comments
 (0)