Supporting ruby 1.8.7

Hi @samwho
here is a little update to support ruby 1.8.7... But code coverage does not work under 1.9.2.