Renaming to_hash to to-hash since the former name is taken in RubyGems.