Handles project version number and changelog.
Add this line to your application's Gemfile:
gem 'version_logger', git: '[email protected]:muxumuxu/muxu-ci-version-logger.git'
And then execute:
bundle
Then use the generator as follow:
rails generate version_logger:setup
The following files will be affected :
config/initializers/version.rb
: Will contain the app version number.config/initializers/version_logger.rb
: Will contain the config defined during the setup (slack_channel
,slack_user
,project_name
).project_name
is the name used when pushing a message to Slack.CHANGELOG.md
: A skeleton changelog will be created if the file is missing.Gemfile
: Thevandamme
gem will be installed for dev and test.
rails version_logger:version
#=> 0.0.1
rails version_logger:increment_patch
Version is now 0.0.2
rails version_logger:update_changelog
All Unreleased
items are now in ### v0.0.2 / 2016-01-01
Run the tests with bin/test
.
The rake tasks and generators are not tested yet.