BumperPusher
This gem make bumping and pushing your ruby gems easy and fast!
- Works with
gemspecandpodspecfiles - Automatically detect your current version (from
specorversion.rbfile) - Auto-bump spec
- Auto-push spec
Installation
[sudo] gem install bumper_pusher
Usage
-
Just type:
bumper_pusherand that's it! -
If you want to test that all works as expected: try dry_run mode:
bumper_pusher --dry-run -
To bump version print:
bumper_pusher [option]-
-rfor bump release (1.2.3->2.0.0) -
-mfor bump minor (1.2.3->1.3.0) -
-pfor bump patch (1.2.3->1.2.4) default option
-
-
To install locally your gemspec
bumper_pusher -b
Params (bumper_pusher -h)
-d, --dry-run Dry run
--release Bump release version
-m, --minor Bump minor version
-p, --patch Bump patch version
-r, --revert Revert last bump
-i, --[no-]install Install this gem after push it. Default is true.
-b, --beta Build beta gem without commit and push
-v, --version Print version number
-g, --gen-changelog Auto generation of changelog and pushing it origin. Default is false
Features & Benefits of this project
Prerequirements (optional)
This tool usess git flow three structure.
Before run, please consider to run git flow init (default options is fine).
-
Very easy to use: just type
bumper_pusherin your repo folder - Supports version storage directly in
gemspecfile and inversion.rb - Checks that you're bumping from the
masterbranch (otherwise prints a warning with confirmation) - Checks that your
git statusis clean - Ability to easily test build your gem
bumper_pusher -b(it adds extra verions prefix to avoind version collising with release veriosions) - Ability to generate changelog for the new version using github_changelog_generator (but broken with latest gcg releases)
- Supports both
gemspecandpodspecfiles
Debug
For Ruby v2.x
Follow by this instructions
gem install ruby-debug-ide
Contributing
- Fork it ( https://github.com/skywinder/bumper_pusher/fork )
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request