omniauth-uber 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +4 -0
- data/lib/omniauth/strategies/uber.rb +5 -3
- data/lib/omniauth/uber/version.rb +1 -1
- data/spec/app.rb +1 -1
- data/spec/omniauth/strategies/uber_spec.rb +3 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5b7b765857dcbd5da7cd1d928a8813f114ca9c7e
|
4
|
+
data.tar.gz: 3f66c6558523ebd777e2008cf484d9dba81dfa37
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8de2b3989e02a36119232256131c4f23ab002bd50f75aff397114a2243f4854241f272553eac59818ce3177ff568203e29d2fbf32453d197b93ea76806b1446f
|
7
|
+
data.tar.gz: 715c1e057771a09ea2cb4a944189549d669c43fe548ac90818bb7d7aeb8d8a339d90f234ea30f8428a097ab3c7a8a9a8232504ab5b55562e17e3892f9161e88f
|
data/.rubocop.yml
CHANGED
@@ -13,7 +13,7 @@ module OmniAuth
|
|
13
13
|
|
14
14
|
info do
|
15
15
|
{
|
16
|
-
:first_name => raw_info['first_name'],
|
16
|
+
:first_name => raw_info['first_name'],
|
17
17
|
:last_name => raw_info['last_name'],
|
18
18
|
:email => raw_info['email'],
|
19
19
|
:picture => raw_info['picture'],
|
@@ -22,11 +22,13 @@ module OmniAuth
|
|
22
22
|
end
|
23
23
|
|
24
24
|
extra do
|
25
|
-
{
|
25
|
+
{
|
26
|
+
:raw_info => raw_info
|
27
|
+
}
|
26
28
|
end
|
27
29
|
|
28
30
|
def raw_info
|
29
|
-
@raw_info ||= access_token.get(
|
31
|
+
@raw_info ||= access_token.get('/v1/me').parsed || {}
|
30
32
|
end
|
31
33
|
|
32
34
|
def request_phase
|
data/spec/app.rb
CHANGED
@@ -14,15 +14,15 @@ describe OmniAuth::Strategies::Uber do
|
|
14
14
|
end
|
15
15
|
|
16
16
|
it 'should have correct site' do
|
17
|
-
expect(subject.options.client_options.site).to eq('https://
|
17
|
+
expect(subject.options.client_options.site).to eq('https://api.uber.com')
|
18
18
|
end
|
19
19
|
|
20
20
|
it 'should have correct authorize url' do
|
21
|
-
expect(subject.options.client_options.authorize_url).to eq('/oauth/authorize')
|
21
|
+
expect(subject.options.client_options.authorize_url).to eq('https://login.uber.com/oauth/authorize')
|
22
22
|
end
|
23
23
|
|
24
24
|
it 'should have correct access token url' do
|
25
|
-
expect(subject.options.client_options.token_url).to eq('/oauth/token')
|
25
|
+
expect(subject.options.client_options.token_url).to eq('https://login.uber.com/oauth/token')
|
26
26
|
end
|
27
27
|
|
28
28
|
it 'should indicate that the provider ignores the state parameted' do
|