Bmp v0.7.1
Bump version info in a repository
Installation
gem install bmp
This install bmp command
Usage
version descriptor
put .version file on the top of your repository like following (which is YAML):
---
version: 0.1.6
files:
gradle.properties: version=%.%.%
README.md:
- coveralls-gradle-plugin v%.%.%
- org.kt3k.gradle.plugin:coveralls-gradle-plugin:%.%.%
version value is the current version number of the repository.
files are the mappings of the files which contain version numbers in them.
gradle.properties: version=%.%.%
The expression above means the file ./gradle.properties contains the string version=0.1.6 (because the current version is 0.1.6) and %.%.% is the placeholder for current version number and will updated on version bumps.
bmp command
show current version info:
bmp -i
bump patch (0.0.1) level:
bmp -p
bump minor (0.1.0) level:
bmp -m
bump major (1.0.0) level:
bmp -j
commit bump results
bmp -f
Contributing
- Fork it
- 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 new Pull Request

