made ruby 2.0 compatible
Merge pull request #2 from pannous/master

made ruby 2.0 compatible