support ruby 1.8
Merge pull request #1 from youpy/ruby1.8

support ruby 1.8