Skip to content

Commit bdf5647

Browse files
apneadivingclaude
andcommitted
Require Ruby 3.2: CI runners no longer provide 3.1
- ubuntu-latest moved to 26.04, which has no Ruby 3.1 build: the 3.1 job failed in setup-ruby and fail-fast cancelled 3.2 and 3.3 - Ruby 3.1 reached end of life in March 2025: drop it from the matrix and raise required_ruby_version to >= 3.2 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 7080499 commit bdf5647

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

‎.github/workflows/rspec.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
ruby-version: ['3.3', '3.2', '3.1']
14+
ruby-version: ['3.3', '3.2']
1515
steps:
1616
- uses: actions/checkout@v4
1717
- uses: ruby/setup-ruby@v1

‎changelog.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Changelog
22

33
## 0.4.0
4+
- **Breaking:** requires Ruby 3.2 or later. Ruby 3.1 reached end of life in March 2025 and the CI runners no longer provide it
45
- **Breaking:** an event whose dispatch raises no longer stops the other events. `dispatch_events` dispatches them all, then raises the first error. The transaction is committed by then and nothing dispatches again, so the events left used to be lost
56
- **Breaking:** since the error is raised once every event is dispatched, a caller that retries the push (a Sidekiq retry) dispatches again every event that succeeded, not only the ones before the failure
67
- Add optional `on_dispatch_error` config: called with `(error, event)` for each dispatch error after the first, which is the one raised. Without it, those errors are written to stderr with `warn`

‎changeset.gemspec‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
1010
spec.summary = "Unit-of-work with event dispatch for Rails"
1111
spec.description = "Collect DB operations and events, execute in one transaction, dispatch events after commit."
1212
spec.license = "MIT"
13-
spec.required_ruby_version = ">= 3.1"
13+
spec.required_ruby_version = ">= 3.2"
1414

1515
spec.files = Dir["{lib,rbi}/**/*", "MIT-LICENSE", "README.md"]
1616

0 commit comments

Comments
 (0)