Resurrected to have a post-receive Twitter hook with custom formatting
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
public
tmp
.gitignore
README
config.ru
config.yml.example
github-twitter-test.rb
github-twitter.rb

README

github-twitter
===============

Toss your github pushes to Twitter. All props go to jnewland for the idea (http://github.com/jnewland/github-campfire/tree/master) and to jnunemaker for the first version (http://github.com/jnunemaker/github-twitter).

I resurrected the project because I wanted the post-receive twitter hook of github to show me the commit message of each commit. The latest version of the Twitter gem is now required, as well as the bitly gem for URL shortening.

requirements
============
sudo gem install json twitter sinatra bitly

instructions
============
cp config.yml.example config.yml
nano config.yml
rackup config.ru

sample output
=============

    [github-twitter] http://bit.ly/5hXG93 Wes Oldenbeuving: Added public and tmp dir required for passenger deployment