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 +3 -3
- data/geoloqi.gemspec +0 -1
- data/lib/geoloqi.rb +0 -1
- data/lib/geoloqi/session.rb +1 -1
- data/lib/geoloqi/version.rb +1 -1
- data/spec/geoloqi_spec.rb +3 -3
- metadata +11 -22
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
|
-
|
6
|
-
|
7
|
-
|
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
data/lib/geoloqi.rb
CHANGED
data/lib/geoloqi/session.rb
CHANGED
data/lib/geoloqi/version.rb
CHANGED
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 =>
|
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.
|
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: &
|
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: *
|
49
|
+
version_requirements: *id003
|
61
50
|
- !ruby/object:Gem::Dependency
|
62
51
|
name: wrong
|
63
52
|
prerelease: false
|
64
|
-
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: *
|
60
|
+
version_requirements: *id004
|
72
61
|
- !ruby/object:Gem::Dependency
|
73
62
|
name: minitest
|
74
63
|
prerelease: false
|
75
|
-
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: *
|
71
|
+
version_requirements: *id005
|
83
72
|
- !ruby/object:Gem::Dependency
|
84
73
|
name: webmock
|
85
74
|
prerelease: false
|
86
|
-
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: *
|
82
|
+
version_requirements: *id006
|
94
83
|
- !ruby/object:Gem::Dependency
|
95
84
|
name: hashie
|
96
85
|
prerelease: false
|
97
|
-
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: *
|
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
|