Change hashes to ruby 1.9.3 hash syntax in ruby snippets