diff --git a/README.md b/README.md index 7db38dd..e7b0beb 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,10 @@ You will now have the following rake tasks available: rake version:bump:minor # bump minor version (x.y.z -> x.y+1.0) rake version:bump:patch # bump patch version (x.y.z -> x.y.z+1) +(Since `version:bump:major` is a lot of typing, there are also shortcuts: +`v:b:major`, `v:b:maj`, `v:b:minor`, `v:b:min`, `v:b:patch`, `v:b:pat`, and +`v:b:p`) + By running any of those, a new tag will be created representing the newly incremented version number at the current commit. If no tags currently exist, the previous version will be taken to be `0.0.0` and then incremented diff --git a/lib/git-version-bump/rake-tasks.rb b/lib/git-version-bump/rake-tasks.rb index 5615bce..c087c3c 100644 --- a/lib/git-version-bump/rake-tasks.rb +++ b/lib/git-version-bump/rake-tasks.rb @@ -24,3 +24,17 @@ end end end + +namespace :v do + namespace :b do + task :major => "version:bump:major" + task :maj => "version:bump:major" + + task :minor => "version:bump:minor" + task :min => "version:bump:minor" + + task :patch => "version:bump:patch" + task :pat => "version:bump:patch" + task :p => "version:bump:patch" + end +end