Skip to content

Commit

Permalink
removed extlib dependency (devise compatibility)
Browse files Browse the repository at this point in the history
  • Loading branch information
calebhaye committed Feb 26, 2014
1 parent 1b4695a commit 2f59923
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion google_directions.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions lib/google_directions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require 'net/http'
require 'open-uri'
require 'nokogiri'
require 'extlib/hash'
# require 'extlib/hash'

class GoogleDirections

Expand All @@ -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
Expand Down

0 comments on commit 2f59923

Please sign in to comment.