Repository navigation
Select the next development version part - #79
Merged
Merged
Conversation
Contributor
Danger ReportNo issues found. |
Add `next_version:` to `Workflow::RubyGem` (and, through it, `Workflow::SemanticRubyGem`) to choose `:patch` (default), `:minor`, or `:major` for the next development iteration. The default call to `increment!(from:)` is unchanged; other parts pass `part:`, which is checked against the version object at construction so an unsupported selection fails before publication. Start 0.8.0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011Gr21j6KD4oksnhmZ5u3pr
dblock
force-pushed
the
dblock/next-version-option
branch
from
November 20, 2026 21:19
5c85a9b to
9c9a726
Compare
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
Add
next_version:toWorkflow::RubyGemso projects that bump minor (or major) after each release don't need a version-object subclass::patch(default),:minor, or:major, as a Symbol or String; anything else raisesArgumentErrorat construction.increment!(from:)unchanged, preserving the documented contract for custom version objects. Other parts callincrement!(from:, part:), whichRubyConstant,PlainText, andReferencessupport.:minoror:majoris selected, construction checks that the version object'sincrement!acceptspart:, so an unsupported selection fails before publication rather than aftergem push.Workflow::SemanticRubyGemforwards the option; it applies withbump: true.Motivated by the review of ruby-grape/grape#3078, where Grape always bumps minor after a release.
Validation
bundle exec rake: RuboCop (including spellcheck) and all unit and integration specs pass.bundle exec rake buildbuildsruby-gem-release-0.8.0.gem.part:from the release version, String parts, rejected values, custom version objects withoutpart:(rejected only for non-patch), a realRubyConstantwrapped inReferenceswriting2.1.0after2.0.0, and the semantic workflow withbump: true.This PR was written by an AI (Claude) acting on behalf of @dblock.
🤖 Generated with Claude Code
https://claude.ai/code/session_011Gr21j6KD4oksnhmZ5u3pr