No commit activity in last 3 years
No release in over 3 years
Generate auto tag
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
>= 0

Runtime

 Project Readme

Auto Tag Version Gem Version Code Climate Travis Coverage Status

Create/Update the application version file of your Rails app and automatically create the git tag.

Prerequisite

  • Rails application
  • 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"

Contributing

First of all, thank you for wanting to help!

  1. Fork it.
  2. Create a feature branch - git checkout -b more_magic
  3. Add tests and make your changes
  4. Check if tests are ok - rake spec
  5. Commit changes - git commit -am "Added more magic"
  6. Push to Github - git push origin more_magic
  7. Send a pull request! ❤️