Sha256: 52dbddb2c0df70999dfb2d74bed06be335b1e74cf06fd24b451c75124d171e7c
Contents?: true
Size: 782 Bytes
Versions: 1
Compression:
Stored size: 782 Bytes
Contents
# Auto Tag Version Create/Update the application version file of your Rails app and automatically create the git tag. ## Prerequisite - For now, only Rails application (Tested Rails 3 and 4) - *Gems support comming soon!* ## Installation Add this line to your application's Gemfile: ``` gem 'auto_tag_version' ``` When you need to create a tag: ``` $ rake autotag TAG=10.24.5 ``` ## How it works Considering you application name is "TestAPP", this code above will create a file in "test_app/config/initializers/app_version.rb" with the content like: ``` module TestAPP VERSION = 10.24.5 end ``` And them will commit this file and create a git tag. **(You need to push it manually!)** You can get the version number in your application as **"TestAPP::VERSION"**
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
auto_tag_version-0.0.1 | README.md |