Restore compatibility with Ruby 1.8 by using hash rockets

One of the projects I'm working is still running on Ruby 1.8. The library runs fine on that version with a few syntax modifications.