Skalar / google_distance_matrix

Ruby client for The Google Distance Matrix API.
MIT License
57 stars 45 forks source link

Syntax error #37

Closed thibault261 closed 7 years ago

thibault261 commented 7 years ago

Hi,

I have installed your gem today and when i launch my server, i have this error :

/home/sycomore/.rvm/gems/ruby-2.0.0-p247/gems/google_distance_matrix-0.5.0/lib/google_distance_matrix/url_builder.rb:3:in `require_relative': /home/sycomore/.rvm/gems/ruby-2.0.0-p247/gems/google_distance_matrix-0.5.0/lib/google_distance_matrix/url_builder/polyline_encoder_buffer.rb:15: syntax error, unexpected ')' (SyntaxError)

In the file "polyline_encoder_buffer.rb" at line 15 we have : def flush(to:) I think it must be : def flush(to) No ?

Thanks a lot, Thibault.

thhermansen commented 7 years ago

Hi,

As all tests pass on different versions of Ruby my guess would be that it has something to do the Ruby version you are using.

Are you using 2.0.0? Please try upgrading to any of the Ruby version as I don't think 2.0.0 is supported by this gem. As an alternative you could try an older version of this gem and see if that helps you out, but I would advice upgrading your Ruby instead if possible.

thhermansen commented 7 years ago

Hello again,

I didn't hear back from you and I think ruby version is the issue, thus I'm closing this issue now.