hannesg/uri_template — pull request #3 by peterhellberg (2012-07-05 21:22:58+00:00)
Title: Support for symbols in hash passed to expand.

All keys in the variables hash are converted to strings. (Quite similar to [Hash#stringify_keys!](http://apidock.com/rails/Hash/stringify_keys%21) in Rails)

I decided against checking for the key class, but it would be trivial to check `k.is_a?(Symbol)` if we need to support anything else than `Symbol` and `String` keys.

### Ruby 1.9

Ruby 1.9 hashes are ordered, which means that the last key in a collision is used in the template expansion.

### Ruby 1.8
The behavior under Ruby 1.8 is undefined, but it seems like symbols take precedence over strings.

### Tests
I’ve tested the code using `ree-2012.02` and `1.9.3p125`, all green :ok_hand: