Bump a Ruby gem's version number, commit it and tag it
open sourceMITfree
bump is a Ruby gem and command-line tool that bumps the version of a gem or Chef cookbook: major, minor, patch or pre. It finds the version in a VERSION file, the gemspec, lib/**/version.rb or a cookbook's metadata.rb, writes the new number, runs bundle and commits the change, and can add a git tag, update CHANGELOG.md and replace the version in other files. It works from the command line, as Rake tasks or from Ruby code.
Problems it solves
- bump my Ruby gem's patch version and commit it in one command
- tag a gem release in git after changing its version file
- update the version in the changelog and README when I release a gem
Features
- bump major, minor, patch or pre versions
- finds the version in VERSION, the gemspec, lib/**/version.rb or metadata.rb
- runs bundle and commits the change
- optional git tag with a custom prefix
- updates CHANGELOG.md and other files
- Rake tasks and a Ruby API
Alternatives
The same job
These do what bump does.
- gem-release Release Ruby gems with bump, tag and release commands
- commit-and-tag-version Bump versions, write the CHANGELOG and tag releases from Conventional Commits
- Commitizen Enforce commit message rules, bump versions and generate changelogs
- rubygems-tasks Rake tasks for building and releasing Ruby gems
- np A better npm publish: checks, tests, version bump, tag and publish in one step
- dist (cargo-dist) Shippable application packaging: build, sign and publish release binaries and installers from a git tag
