Skip to content

Comments

fix: Use version.rb for gem versioning with release-please#17

Merged
facundofarias merged 1 commit intomasterfrom
fix/release-version-bump
Feb 19, 2026
Merged

fix: Use version.rb for gem versioning with release-please#17
facundofarias merged 1 commit intomasterfrom
fix/release-version-bump

Conversation

@facundofarias
Copy link
Contributor

Summary

  • Simplify lib/deploy_agent/version.rb to define DeployAgent::VERSION as a plain constant (set to 1.4.0)
  • Update deploy-agent.gemspec to read version from DeployAgent::VERSION via require_relative
  • Add version-file to release-please-config.json so release-please bumps version.rb automatically
  • Remove the VERSION file workaround from the CI release job (no longer needed)
  • Document versioning strategy in CLAUDE.md

Context

The previous release (1.4.0) failed to publish to RubyGems because release-please updated the manifest and CHANGELOG but not the gemspec — the gem was built with version 1.3.3 which was already published.

Test plan

  • All 17 RSpec tests pass (version correctly reports 1.4.0)
  • RuboCop passes with no offenses
  • CI matrix (Ruby 2.7–3.4) passes

🤖 Generated with Claude Code

Move version to lib/deploy_agent/version.rb as a simple constant,
reference it from the gemspec via require_relative, and configure
release-please to bump it automatically via version-file. This fixes
the release pipeline which was publishing stale versions because
release-please didn't know where to update the version.

Also removes the VERSION file workaround from CI and documents the
versioning strategy in CLAUDE.md.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@facundofarias facundofarias merged commit 505e2cf into master Feb 19, 2026
12 checks passed
@facundofarias facundofarias deleted the fix/release-version-bump branch February 19, 2026 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant