Releasing Kward
Release steps before publishing:
- Update
CHANGELOG.mdfor the version. - Update
Kward::VERSIONinlib/kward/version.rb. - Run the test suite:
bundle exec rake test
- Preview docs locally if you changed documentation or public APIs:
bundle exec rake docs:serve
The preview builds _yardoc/, serves it with WEBrick, and rebuilds in a fresh process when documentation sources, library code, or templates change. Refresh your browser after rebuilds.
- Generate and check documentation:
bundle exec rake rdoc
bundle exec rake docs:build
bundle exec rake docs:check
docs:check validates generated internal links, images, and scripts. Pushes to main deploy the generated YARD site to GitHub Pages.
- Build the gem locally:
gem build kward.gemspec
- Inspect the packaged files and confirm no local config, sessions, logs, or secrets are included.
- Install the built gem locally and smoke test the
kwardexecutable.
Publish the built gem from the release checkout:
gem push kward-VERSION.gem
RubyGems MFA is required for publishing. Prefer RubyGems trusted publishing for automated releases if CI publishing is added later, so long-lived API keys do not need to be stored in CI secrets.