Support ruby 1.8.7
Merge pull request #12 from kjg/ruby187_support

Support ruby 1.8.7
Bumped version to 0.1.2

* Syntax changes to support Ruby 1.8.7