Fix most tests on Ruby 1.8.7
Fix Ruby 1.8.7 compatibility
Version 1.0.2.dev
Merge pull request #24 from locomote/ruby18

Ruby 1.8 and Rubinius compatibility