0.0
No commit activity in last 3 years
No release in over 3 years
Allows you to view the local git changelog at the /changelog/ path
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

>= 1.2.5
>= 3.1.0
 Project Readme

Gitchangelog

Adds in a /changelog/ path that displays the git commit log of the local rails root.

Install the gem in your Gemfile

gem 'gitchangelog'

In order to pull in css styles you have to modify your application.css file and add this line in with the other require statements.

*= require gitchangelog

You can link to your changelog from a view with:

<%= link_to "Changelog", changelog_path %>

That's all there is to it.

Custom Style

You can omit the stylesheet above, and create your own styles.

Each commit is wrapped in a div with class "commit". This div contains spans with the following class styles: "cdate", "cname", and "chash". The commit message is enclosed in a pre tag.

Custom Layout

You can set the application layout specifically for Gitchangelog in your application.rb file.

config.to_prepare do
	GitchangelogController.layout "mylayout"
end