talira

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.

  1. gem-release Release Ruby gems with bump, tag and release commands
  2. commit-and-tag-version Bump versions, write the CHANGELOG and tag releases from Conventional Commits
  3. Commitizen Enforce commit message rules, bump versions and generate changelogs
  4. rubygems-tasks Rake tasks for building and releasing Ruby gems
  5. np A better npm publish: checks, tests, version bump, tag and publish in one step
  6. dist (cargo-dist) Shippable application packaging: build, sign and publish release binaries and installers from a git tag

Compare bump with the top 3