geoloqi 0.9.17 → 0.9.18

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -2,9 +2,9 @@ require "rake/testtask"
2
2
 
3
3
  desc "Run all tests"
4
4
  Rake::TestTask.new do |t|
5
- t.libs << "spec"
6
- t.test_files = FileList['spec/*_spec.rb']
7
- t.verbose = true
5
+ t.libs << "spec"
6
+ t.test_files = FileList['spec/*_spec.rb']
7
+ t.verbose = true
8
8
  end
9
9
 
10
10
  task :default => :test
data/geoloqi.gemspec CHANGED
@@ -16,7 +16,6 @@ Gem::Specification.new do |s|
16
16
 
17
17
  s.add_dependency 'json'
18
18
  s.add_dependency 'faraday', '>= 0.6.1'
19
- s.add_dependency 'addressable', '>= 0'
20
19
 
21
20
  s.add_development_dependency 'rake', '>= 0'
22
21
  s.add_development_dependency 'wrong', '= 0.5.0'
data/lib/geoloqi.rb CHANGED
@@ -3,7 +3,6 @@ $LOAD_PATH.unshift(libdir) unless $LOAD_PATH.include?(libdir)
3
3
  require 'json'
4
4
  require 'faraday'
5
5
  require 'logger'
6
- require 'addressable/uri'
7
6
  require 'geoloqi/config'
8
7
  require 'geoloqi/error'
9
8
  require 'geoloqi/response'
@@ -107,4 +107,4 @@ module Geoloqi
107
107
  headers
108
108
  end
109
109
  end
110
- end
110
+ end
@@ -1,5 +1,5 @@
1
1
  module Geoloqi
2
2
  def self.version
3
- '0.9.17'
3
+ '0.9.18'
4
4
  end
5
5
  end
data/spec/geoloqi_spec.rb CHANGED
@@ -40,7 +40,7 @@ describe Geoloqi do
40
40
  "client_id=#{Rack::Utils.escape 'test'}&"+
41
41
  "redirect_uri=#{Rack::Utils.escape 'http://blah.blah/test'}" }
42
42
  end
43
-
43
+
44
44
  it 'is valid with scope' do
45
45
  authorize_url = Geoloqi.authorize_url 'test', 'http://blah.blah/test', :scope => 'can_party_hard'
46
46
  expect { authorize_url == "#{Geoloqi::OAUTH_URL}?"+
@@ -179,7 +179,7 @@ describe Geoloqi::Session do
179
179
  to_return(:status => 200, :body => {:name => 'Test Layer'}.to_json)
180
180
 
181
181
  stub_request(:post, api_url('layer/delete/layer_id1234')).
182
- with(:headers => {'Accept'=>'application/json', 'Authorization'=>'OAuth access_token1234', 'Content-Length'=>'0', 'Content-Type'=>'application/json', 'User-Agent'=>'geoloqi-ruby 0.9.16'}).
182
+ with(:headers => auth_headers).
183
183
  to_return(:status => 200, :body => {'result' => 'ok'}.to_json)
184
184
 
185
185
  layer_id = @session.post('/layer/create', :name => 'Test Layer')['layer_id']
@@ -375,4 +375,4 @@ describe Geoloqi::Session do
375
375
  expect { @session.auth[:access_token] == 'access_token4567' }
376
376
  end
377
377
  end
378
- end
378
+ end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: geoloqi
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.9.17
5
+ version: 0.9.18
6
6
  platform: ruby
7
7
  authors:
8
8
  - Kyle Drake
@@ -36,72 +36,61 @@ dependencies:
36
36
  version: 0.6.1
37
37
  type: :runtime
38
38
  version_requirements: *id002
39
- - !ruby/object:Gem::Dependency
40
- name: addressable
41
- prerelease: false
42
- requirement: &id003 !ruby/object:Gem::Requirement
43
- none: false
44
- requirements:
45
- - - ">="
46
- - !ruby/object:Gem::Version
47
- version: "0"
48
- type: :runtime
49
- version_requirements: *id003
50
39
  - !ruby/object:Gem::Dependency
51
40
  name: rake
52
41
  prerelease: false
53
- requirement: &id004 !ruby/object:Gem::Requirement
42
+ requirement: &id003 !ruby/object:Gem::Requirement
54
43
  none: false
55
44
  requirements:
56
45
  - - ">="
57
46
  - !ruby/object:Gem::Version
58
47
  version: "0"
59
48
  type: :development
60
- version_requirements: *id004
49
+ version_requirements: *id003
61
50
  - !ruby/object:Gem::Dependency
62
51
  name: wrong
63
52
  prerelease: false
64
- requirement: &id005 !ruby/object:Gem::Requirement
53
+ requirement: &id004 !ruby/object:Gem::Requirement
65
54
  none: false
66
55
  requirements:
67
56
  - - "="
68
57
  - !ruby/object:Gem::Version
69
58
  version: 0.5.0
70
59
  type: :development
71
- version_requirements: *id005
60
+ version_requirements: *id004
72
61
  - !ruby/object:Gem::Dependency
73
62
  name: minitest
74
63
  prerelease: false
75
- requirement: &id006 !ruby/object:Gem::Requirement
64
+ requirement: &id005 !ruby/object:Gem::Requirement
76
65
  none: false
77
66
  requirements:
78
67
  - - "="
79
68
  - !ruby/object:Gem::Version
80
69
  version: 2.2.2
81
70
  type: :development
82
- version_requirements: *id006
71
+ version_requirements: *id005
83
72
  - !ruby/object:Gem::Dependency
84
73
  name: webmock
85
74
  prerelease: false
86
- requirement: &id007 !ruby/object:Gem::Requirement
75
+ requirement: &id006 !ruby/object:Gem::Requirement
87
76
  none: false
88
77
  requirements:
89
78
  - - "="
90
79
  - !ruby/object:Gem::Version
91
80
  version: 1.6.4
92
81
  type: :development
93
- version_requirements: *id007
82
+ version_requirements: *id006
94
83
  - !ruby/object:Gem::Dependency
95
84
  name: hashie
96
85
  prerelease: false
97
- requirement: &id008 !ruby/object:Gem::Requirement
86
+ requirement: &id007 !ruby/object:Gem::Requirement
98
87
  none: false
99
88
  requirements:
100
89
  - - "="
101
90
  - !ruby/object:Gem::Version
102
91
  version: 1.0.0
103
92
  type: :development
104
- version_requirements: *id008
93
+ version_requirements: *id007
105
94
  description: Powerful, flexible, lightweight interface to the awesome Geoloqi platform API! Uses Faraday, and can be used with Ruby 1.9 and EM-Synchrony for really fast, highly concurrent development.
106
95
  email:
107
96
  - kyledrake@gmail.com