Follow these steps to release a new version of devise-bootstrap-form to rubygems.org.
- You must have commit rights to the
devise-bootstrap-formrepository. - You must have push rights for the
devise-bootstrap-formgem onrubygems.org. - You must be using Ruby >= 3.2.
- Run
bundle installto make sure that you have all the gems necessary for testing and releasing. - Ensure the tests are passing by running
rake. - Determine which would be the correct next version number according to semver.
- Update the version in
./lib/devise_bootstrap_form/version.rb. - Update the
CHANGELOG.md(for an illustration of these steps, refer to the bootstrap_form 4.0.0.alpha1 commit as an example):- Add a new Pending Release section at the top of the file with a template for contributors to fill in, including "Your contribution here!" bullets
- Rename the Pending Release section to
[version][] (date)with appropriate values forversionanddate - Remove the "Your contribution here!" bullets from the former Pending Release section release notes
- Add the appropriate GitHub diff links to the footer of the document
[Pending Release]: https://github.com/lcreid/devise-bootstrap-form/compare/.v0.0.1...HEAD
[0.0.1]: https://github.com/lcreid/devise-bootstrap-form/compare/...v0.0.1
- Update the installation instructions in
README.mdto use the new version. - Commit the CHANGELOG and version changes in a single commit; the message should be "Preparing vX.Y.Z" where
X.Y.Zis the version being released. - Run
bundle exec rake release; this will tag, push to GitHub, publish torubygems.org, and upload the latest CHANGELOG entry to the GitHub releases page.