Project

tagit

0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
Use git to manage your rationally-versioned releases
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.0.0
~> 1.8.3
~> 3.12
>= 2.8.0
>= 2.8.0

Runtime

>= 3.0.0
 Project Readme

Tagit

Tagit exists because I tag my Rails releases in a human-readable way and I like to get my application to tell me what version I'm currently running on. I tag using git and I use the RubyGems rational versioning system. Yes, you can tag with Capistrano, but I don't like the huge tags. I'm much happier discussing what we fixed in v1.2 than I am discussing what we fixed in production_24012012989734.

If you tag your releases with human-readable numbers yourself, this gem gives you a so-stupid-it-might-be-clever engine that shows you what version you're currently on, based on the largest rational tag currently in git.

In your Gemfile, add

gem 'tagit'

You can then add a line to config/routes.rb like

mount Tagit::Engine => '/versions', :as => 'versions'

and visit:

  • /versions/current for the current version
  • /versions for a list of versions