Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove addressable, no longer needed. Whitespace fixes, fix a test

  • Loading branch information...
commit 87e725e8142ef8b8dbcc81acb9c1546d41064018 1 parent ecc0b81
@kyledrake kyledrake authored
View
6 Rakefile
@@ -2,9 +2,9 @@ require "rake/testtask"
desc "Run all tests"
Rake::TestTask.new do |t|
- t.libs << "spec"
- t.test_files = FileList['spec/*_spec.rb']
- t.verbose = true
+ t.libs << "spec"
+ t.test_files = FileList['spec/*_spec.rb']
+ t.verbose = true
end
task :default => :test
View
1  geoloqi.gemspec
@@ -16,7 +16,6 @@ Gem::Specification.new do |s|
s.add_dependency 'json'
s.add_dependency 'faraday', '>= 0.6.1'
- s.add_dependency 'addressable', '>= 0'
s.add_development_dependency 'rake', '>= 0'
s.add_development_dependency 'wrong', '= 0.5.0'
View
1  lib/geoloqi.rb
@@ -3,7 +3,6 @@
require 'json'
require 'faraday'
require 'logger'
-require 'addressable/uri'
require 'geoloqi/config'
require 'geoloqi/error'
require 'geoloqi/response'
View
2  lib/geoloqi/session.rb
@@ -107,4 +107,4 @@ def headers
headers
end
end
-end
+end
View
2  lib/geoloqi/version.rb
@@ -1,5 +1,5 @@
module Geoloqi
def self.version
- '0.9.17'
+ '0.9.18'
end
end
View
6 spec/geoloqi_spec.rb
@@ -40,7 +40,7 @@ def api_url(path); "#{Geoloqi::API_URL}/#{Geoloqi::API_VERSION}/#{path}" end
"client_id=#{Rack::Utils.escape 'test'}&"+
"redirect_uri=#{Rack::Utils.escape 'http://blah.blah/test'}" }
end
-
+
it 'is valid with scope' do
authorize_url = Geoloqi.authorize_url 'test', 'http://blah.blah/test', :scope => 'can_party_hard'
expect { authorize_url == "#{Geoloqi::OAUTH_URL}?"+
@@ -179,7 +179,7 @@ def api_url(path); "#{Geoloqi::API_URL}/#{Geoloqi::API_VERSION}/#{path}" end
to_return(:status => 200, :body => {:name => 'Test Layer'}.to_json)
stub_request(:post, api_url('layer/delete/layer_id1234')).
- with(:headers => {'Accept'=>'application/json', 'Authorization'=>'OAuth access_token1234', 'Content-Length'=>'0', 'Content-Type'=>'application/json', 'User-Agent'=>'geoloqi-ruby 0.9.16'}).
+ with(:headers => auth_headers).
to_return(:status => 200, :body => {'result' => 'ok'}.to_json)
layer_id = @session.post('/layer/create', :name => 'Test Layer')['layer_id']
@@ -375,4 +375,4 @@ def api_url(path); "#{Geoloqi::API_URL}/#{Geoloqi::API_VERSION}/#{path}" end
expect { @session.auth[:access_token] == 'access_token4567' }
end
end
-end
+end
Please sign in to comment.
Something went wrong with that request. Please try again.