Use GOOGLE_MAPS_API_KEY only if defined

see also https://github.com/tictoc/google-directions-ruby/commit/a8f52917f697112bd863c270d279536a64cfa4cf.patch

Signed-off-by: Laurent Arnoud <laurent@spkdev.net>
Ruby 1.9 fix requirement

Signed-off-by: Laurent Arnoud <laurent@spkdev.net>
Dont load ruby-debug every time and dont work with 1.9

Signed-off-by: Laurent Arnoud <laurent@spkdev.net>
GOOGLE_MAPS_API_KEY is not needed

https://code.google.com/intl/fr/apis/maps/documentation/directions/
Note: The Google Directions API does not require a Maps API key!

Signed-off-by: Laurent Arnoud <laurent@spkdev.net>
Remove documentation about GOOGLE_MAPS_API_KEY

Signed-off-by: Laurent Arnoud <laurent@spkdev.net>
Add encoding header

Signed-off-by: Laurent Arnoud <laurent@spkdev.net>
test_helper: Full path for Ruby 1.9

Signed-off-by: Laurent Arnoud <laurent@spkdev.net>
Update un-used mock

Signed-off-by: Laurent Arnoud <laurent@spkdev.net>
Fix failing test for drive_time_in_minutes

Having:
  1) Failure:
test_happy_case(GoogleDirectionsTest) [test/unit/google_directions_test.rb:13]:
<6> expected but was
<5>.

Signed-off-by: Laurent Arnoud <laurent@spkdev.net>
Remove api key from test

see also 9013d2807ba641803a4e0ff289601bebd685347e

Signed-off-by: Laurent Arnoud <laurent@spkdev.net>
Indent only.

Signed-off-by: Laurent Arnoud <laurent@spkdev.net>
Update end_location > lat from updated mock

Signed-off-by: Laurent Arnoud <laurent@spkdev.net>
Update the ZERO_RESULTS case.

Is it a good test ? we test the google direction faling case.
https://groups.google.com/group/google-maps-api-web-services/browse_thread/thread/ba3329ea9cc4b37a

All tests ok.
4 tests, 11 assertions, 0 failures, 0 errors, 0 skips

Signed-off-by: Laurent Arnoud <laurent@spkdev.net>
Add failing test with URI::InvalidURIError

Exception raised:
<#<URI::InvalidURIError: bad URI(is not URI?): http://maps.google.com/maps/api/directions/xml?sensor=false&origin=15+rue+poissonnière,+75002+Paris&destination=169+11th+Street+CA+94103+San+Francisco+United+States>>.

Signed-off-by: Laurent Arnoud <laurent@spkdev.net>
Fix failing test for french direction

see 3c749c239510b7127a16a9c47d23c012f0075ea3 for detail

Signed-off-by: Laurent Arnoud <laurent@spkdev.net>
Refacto and add steps

Signed-off-by: Laurent Arnoud <laurent@spkdev.net>
More simple gemspec dont care about old version, and update carfully

Signed-off-by: Laurent Arnoud <laurent@spkdev.net>
Oops break the requirement version for other project

Signed-off-by: Laurent Arnoud <laurent@spkdev.net>
Add distance in meters accessor

Signed-off-by: Laurent Arnoud <laurent@spkdev.net>
Add attr_reader for origin and destination

Signed-off-by: Laurent Arnoud <laurent@spkdev.net>