#!/usr/bin/env bash
gem bump --version ${1:-'patch'} --no-commit

_package=`node -e "console.log(require('./package.json').name)"`
_version=`npm version --no-git-tag-version ${1:-'patch'}`

git commit -am "Version bump $_package@$_version"
# git tag "$_package@$_version"