Skip to content

skywinder/bumper_pusher

Repository files navigation

Gem Version Build Status

BumperPusher

This gem make bumping and pushing your ruby gems easy and fast!

  • Works with gemspec and podspec files
  • Automatically detect your current version (from spec or version.rb file)
  • Auto-bump spec
  • Auto-push spec

Installation

[sudo] gem install bumper_pusher

Usage

  • Just type: bumper_pusher and 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]

    • -r for bump release (1.2.3 -> 2.0.0)
    • -m for bump minor (1.2.3 -> 1.3.0)
    • -p for 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_pusher in your repo folder
  • Supports version storage directly in gemspec file and in version.rb
  • Checks that you're bumping from the master branch (otherwise prints a warning with confirmation)
  • Checks that your git status is 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 gemspec and podspec files

Debug

For Ruby v2.x

Follow by this instructions

gem install ruby-debug-ide

Contributing

  1. Fork it ( https://github.com/skywinder/bumper_pusher/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Alternatives