Sha256: 1e5c871fc837e56e998b4ceab8a126ee0d209de9f88a1432f3e6406980617784
Contents?: true
Size: 1.37 KB
Versions: 1
Compression:
Stored size: 1.37 KB
Contents
# Auto Tag Version [![Gem Version](https://badge.fury.io/rb/auto_tag_version.svg)](http://badge.fury.io/rb/auto_tag_version) [![Code Climate](https://codeclimate.com/github/rafaelbiriba/auto_tag_version/badges/gpa.svg)](https://codeclimate.com/github/rafaelbiriba/auto_tag_version) [![Travis](https://api.travis-ci.org/rafaelbiriba/auto_tag_version.svg?branch=master)](https://travis-ci.org/rafaelbiriba/auto_tag_version) [![Coverage Status](https://coveralls.io/repos/rafaelbiriba/auto_tag_version/badge.svg?branch=master&service=github)](https://coveralls.io/github/rafaelbiriba/auto_tag_version?branch=master) 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 the file will be automatically commited and the git tag created. **(You need to push it manually!)** You can access the version number of your application using **"TestAPP::VERSION"**
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
auto_tag_version-1.0.0 | README.md |