Add Ruby 4.0 to CI and automate gem releases#3
Merged
Conversation
CI: - Test matrix now covers Ruby 3.3, 3.4, and 4.0 (latest); lint and benchmark jobs bumped to 3.4. Verified the extension builds and all 28 specs pass on 4.0.5 and clang-format/rubocop gates are clean. - Pin dev Ruby to 3.4.7 via mise.toml and align .ruby-version. Release automation: - release.yml publishes the gem on a v* tag via RubyGems trusted publishing (OIDC, no stored API key) and creates a GitHub Release, gated on a green compile + spec run and a tag/version match check. - rake release:tag tags ZSV::VERSION and pushes it (CI does the push). - docs/RELEASING.md documents the one-time setup and per-release flow. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
compile+ 28 specs + RuboCop all green.CI
clang-format --Werrorclean, RuboCop 0 offenses.mise.toml) with.ruby-versionaligned.Release automation
.github/workflows/release.yml: on av*tag → gate on compile + spec → verify tag matchesZSV::VERSION→ publish to RubyGems via trusted publishing (OIDC, no stored API key) → create a GitHub Release.rake release:tag: tags the currentZSV::VERSIONand pushes it (CI does the actual gem push); refuses on a dirty tree or existing tag.docs/RELEASING.md: one-time trusted-publisher setup + per-release flow.Release flow
Bump
lib/zsv/version.rb→ add aCHANGELOG.mdsection → commit →bundle exec rake release:tag.🤖 Generated with Claude Code