Adds versioning to a Rails application
Add this line to your application's Gemfile:
gem 'versioning'And then execute:
$ bundle
Or install it yourself as:
$ gem install versioning
Create config/version.txt file with the initial version
0.0.1Running rake -T will list available tasks
...
rake version:bump_major # bump local major version
rake version:bump_minor # bump local minor version
rake version:bump_patch # bump local patch
rake version:github:bump_major # bump local and github major versions
rake version:github:bump_minor # bump local and github minor versions
rake version:github:bump_patch # bump local and github patch versions
rake version:update_from_remote # update localversion with last remote version$ git tag 0.0.1
$ git push --tags