If you could convert this to Ruby, and make it a gem, that would be really neat!
dustin
· 11 months ago
I can understand why this would be desirable, but I'd rather build something new than rewrite this thing. :)
There's good recipe here for *how* it works, so feel free to port it. :)
Cyberfox
· 11 months ago
Greetings,
I was curious, and thus inspired, to try this myself. As dustin said, the recipe was pretty straightforward. Understanding that git log --pretty=format:%at was unixtime was the key, and everything fell out from there. (Well, after I'd figured out the fiddly bits of the Google Charts API, and fixed a bug in the gchart gem...)
There's good recipe here for *how* it works, so feel free to port it. :)
I was curious, and thus inspired, to try this myself. As dustin said, the recipe was pretty straightforward. Understanding that
git log --pretty=format:%atwas unixtime was the key, and everything fell out from there. (Well, after I'd figured out the fiddly bits of the Google Charts API, and fixed a bug in the gchart gem...)Check out http://github.com/cyberfox/snippets/blob/master... (which requires the cyberfox-gchart fork of the gchart gem, btw) for a Ruby example of how to do it.
-- Morgan Schweers, CyberFOX!