From 2f599233907f4f463fce2340a0f56f087b5a9bf8 Mon Sep 17 00:00:00 2001 From: Caleb Adam Haye Date: Tue, 25 Feb 2014 20:18:52 -0800 Subject: [PATCH] removed extlib dependency (devise compatibility) --- google_directions.gemspec | 1 - lib/google_directions.rb | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/google_directions.gemspec b/google_directions.gemspec index e785bae..aebf8b4 100644 --- a/google_directions.gemspec +++ b/google_directions.gemspec @@ -20,5 +20,4 @@ Gem::Specification.new do |s| s.test_files = Dir.glob("test/**/*_test.rb") s.add_dependency("nokogiri", ">=1.4.1") - s.add_dependency("extlib", ">=0.9.15") end diff --git a/lib/google_directions.rb b/lib/google_directions.rb index 12fa114..76515ac 100644 --- a/lib/google_directions.rb +++ b/lib/google_directions.rb @@ -3,7 +3,7 @@ require 'net/http' require 'open-uri' require 'nokogiri' -require 'extlib/hash' +# require 'extlib/hash' class GoogleDirections @@ -23,7 +23,7 @@ def initialize(origin, destination, opts=@@default_options) @destination = destination @options = opts.merge({:origin => transcribe(@origin), :destination => transcribe(@destination)}) - @url = @@base_url + '?' + @options.to_params + @url = @@base_url + '?' + @options.to_query @xml = open(@url).read @doc = Nokogiri::XML(@xml) @status = @doc.css('status').text