GitVersioner

Use Git tags to versionize your rails application.

Installation

gem "git_versioner"

Getting Started

Once the gem is added to your rails application you don't have to do anything else. By default the version will be memorized when the Rails application is initialized in production and will be retrieved each request when in development.

Change the memorization technique config/initializers/version.rb

YourAppName::VERSION.memorize do
    true
end

A view helper is provided for your convince.

<footer>
    <p><%= version %></p>
</footer>