Use hash parameters compatible with Ruby 1.8.7
Merge pull request #46 from gioele/ruby-187-hash

Use hash parameters compatible with Ruby 1.8.7