make it ruby 2.0 compatible
Merge pull request #2 from jakubsvehla/ruby-2-0-compatible

Ruby 2.0 compatibility