This is simply updated to work with ruby 1.9. 
Merge pull request #6 from tit/master

This is simply updated to work with ruby 1.9