#278 add upper version bounds for fbe and judges#278
Open
VasilevNStas wants to merge 1 commit into
Open
Conversation
VasilevNStas
added a commit
to VasilevNStas/swarm-template
that referenced
this pull request
Jun 29, 2026
Both fbe and judges are pre-1.0 gems where minor version bumps may introduce breaking changes (API changes, CLI option changes, S-expression query changes, exit code changes). Changing from `>0` to `~>0` constrains updates to the 0.x series, preventing `bundle update` from accidentally jumping to a hypothetical 1.0 release. The Gemfile.lock already pins exact versions, but the Gemfile constraint protects against lockfile regeneration. Other gems with `>0` (rubocop-*) are dev-only tools and less critical.
4939756 to
efcb12b
Compare
VasilevNStas
added a commit
to VasilevNStas/swarm-template
that referenced
this pull request
Jun 29, 2026
Both fbe and judges are pre-1.0 gems where minor version bumps may introduce breaking changes (API changes, CLI option changes, S-expression query changes, exit code changes). Changing from `>0` to `~>0` constrains updates to the 0.x series, preventing `bundle update` from accidentally jumping to a hypothetical 1.0 release. The Gemfile.lock already pins exact versions, but the Gemfile constraint protects against lockfile regeneration. Other gems with `>0` (rubocop-*) are dev-only tools and less critical.
efcb12b to
ae0e517
Compare
Both fbe and judges are pre-1.0 gems where minor version bumps may introduce breaking changes (API changes, CLI option changes, S-expression query changes, exit code changes). Changing from `>0` to `~>0` constrains updates to the 0.x series, preventing `bundle update` from accidentally jumping to a hypothetical 1.0 release. The Gemfile.lock already pins exact versions, but the Gemfile constraint protects against lockfile regeneration. Other gems with `>0` (rubocop-*) are dev-only tools and less critical.
ae0e517 to
97b7d67
Compare
Contributor
Author
|
@yegor256 — both fbe and judges are pre-1.0 gems where minor bumps may introduce breaking changes (CLI options, exit codes, S-expression syntax). The Gemfile had >0 with no upper bound. ~>0 constrains to the 0.x series, preventing bundle update from jumping to a hypothetical 1.0. Bonus: updates fbe 0.47→0.48 and judges 0.58→0.60 in the lockfile. |
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.
Both
fbeandjudgesare pre-1.0 gems where minor version bumps may introduce breaking changes — API changes, CLI option changes, S-expression query syntax changes, and exit code changes.The problem
If someone runs
bundle update(accidentally or during Docker build without a lock file), versions could jump to a hypothetical 1.0 with breaking changes.The fix
~>0means>= 0and< 1— allows all 0.x releases but prevents jumping to 1.0.Impact
bundle install(with lock)bundle updatebundle install(without lock)The Gemfile.lock already pins exact versions, so production builds are unaffected. This change protects the next
bundle updatefrom surprise breakage.Checklist
bundle exec rubocop— 0 offencesbundle exec rake— all tasks pass@yegor256 please review