mroth/lolcommits — pull request #52 by cowboyrushforth (2012-05-26 02:37:02+00:00)
Title: adding twitter support

Hey there, I took a crack at adding twitter support to lolcommits.

So basically this patch takes care of asking them if twitter is desired during lolcommits --enable, and if so, it will then at capture time, take care of running the user through a pin-based oauth flow, and storing oauth tokens in ~/.lolcommits/.tw_auth

One snafu is that I had to create a twitter application so that this would work. I could change the code so that it requires one to enter their own twitter oauth application, or configurable or something, but as of now, if these ones are used (lib/lolcommits.rb lines 16/17) it will say "sent from lolcommits".

Anyhow, suggestions completely welcome. This is just a first stab, but thought it would be interesting to capture some of the lolcommit action on twitter.