Rails engine gem providing with an easy way to check which commit is running.
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app/controllers/git_version
config
lib
.gitignore
Gemfile
README
Rakefile
config.ru
git_version.gemspec

README

== GitVersion

Simple rails engine gem that provides a quick and easy way to check which commit version your server is running.

It essentially just serves up the last line of your .git/logs/HEAD when you point to #{ROOT_URL}/git_version

== Installing

Add the following line to your Gemfile:

    gem 'git_version'

Then run the command:

    bundle install

Add the following line to your routes.rb file:

    mount GitVersion::Engine => "/git_version"