0.0
No commit activity in last 3 years
No release in over 3 years
The mountable rails engine that provide api call to get the git commit number on server (at rails root directory)
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Runtime

< 6.0, >= 4.0
 Project Readme

CodeVersion

The mountable rails engine that provide api call to get the git commit number on server (at rails root directory)

Usage

After install you can go to the url to get a git commit number of code that deploy on server. Url example: http://your_domain/api/metadata

Installation

Add this line to your application's Gemfile:

gem 'code_version', '~> 0.1.6'

And then execute:

$ bundle

And mount rails engine routes to your application routes by putting

Rails.application.routes.draw do
	...
	mount CodeVersion::Engine => "api/metadata"
	...
end

Contributing

Contribution directions go here.

License

The gem is available as open source under the terms of the MIT License.