DISQUS

Dustin at Github: Git Timecard

  • Kieran · 11 months ago
    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...)

    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!
  • dustin · 11 months ago
    Yeah, the google chart API seems to be the hard part in a lot of these attempts to plot stuff.