Skip to content

Release with ruby-gem-release and RubyGems Trusted Publishing - #63

Merged
dblock merged 1 commit into
masterfrom
dblock/ruby-gem-release
Nov 25, 2026
Merged

dblock merged 1 commit into
masterfrom
dblock/ruby-gem-release

Conversation

@dblock

@dblock dblock commented Nov 25, 2026

Copy link
Copy Markdown
Owner

Adds release automation with ruby-gem-release v0.9.0, modeled on dblock/guard-rack#34.

  • .github/workflows/release.yml: manually dispatched Release workflow (version and dry-run inputs), restricted to dblock/fui on master, calling dblock/ruby-gem-release/.github/workflows/release.yml@v0.9.0 on Ruby 3.3 with bundle exec rake lint spec as the test command. Publishes through RubyGems Trusted Publishing (already configured for repository dblock/fui, workflow release.yml, environment release, workflow repository dblock/ruby-gem-release).
  • script/release.rb: FuiRelease.workflow builder for Fui::VERSION in lib/fui/version.rb and the ### X (Next) / * Your contribution here. CHANGELOG format.
  • Rakefile: installs the release tasks on MRI 3.3 and newer and disables Bundler's release, release:rubygem_push, and release:source_control_push.
  • Gemfile: ruby-gem-release 0.9.0 and commonmarker ~> 2.10 as development dependencies on MRI 3.3 and newer.
  • fui.gemspec: loads the version with require_relative so release fixtures read their own version file rather than one already on the load path.
  • spec/release/release_spec.rb: runs the real release tasks against a local fixture with the ruby-gem-release RSpec helpers (skipped on older Rubies).
  • Rewrote RELEASING.md; added /vendor/bundle/ to .gitignore and new words to .spellcheck.txt.

Validation: bundle exec rake (RuboCop and 50 specs, including 3 release specs) on Ruby 4.0.9; bundle exec rake and bundle exec rspec (47 specs, release tooling skipped) on Ruby 2.7.7; actionlint; gem build fui.gemspec. The disabled rake release aborts with a pointer to RELEASING.md. No release was dispatched.

Note: the gem package includes CONTRIBUTING.md and RELEASING.md via Dir['*.md']; left unchanged.

This PR was written by an AI (Claude) acting on behalf of @dblock.

🤖 Generated with Claude Code

https://claude.ai/code/session_011Gr21j3fxXzrnwVEAhRGGw

Add a manually dispatched Release workflow using the dblock/ruby-gem-release
v0.9.0 reusable workflow, a script/release.rb builder for lib/fui/version.rb
and the CHANGELOG format, release Rake tasks on MRI 3.3 and newer with
Bundler's release tasks disabled, release specs using the ruby-gem-release
RSpec helpers, and rewrite RELEASING.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011Gr21j3fxXzrnwVEAhRGGw
@dblock
dblock merged commit 5af1bc6 into master Nov 25, 2026
5 checks passed
@dblock
dblock deleted the dblock/ruby-gem-release branch November 25, 2026 14:12
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