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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1f22a43c0a66249118fcd6214f7c64410a1328a0
4
- data.tar.gz: 3473232f5cac6883741e13fb8d0cc4ba861a3db9
3
+ metadata.gz: 5b7b765857dcbd5da7cd1d928a8813f114ca9c7e
4
+ data.tar.gz: 3f66c6558523ebd777e2008cf484d9dba81dfa37
5
5
  SHA512:
6
- metadata.gz: 9ac969f83998390d008f534840dfd760092abb811386c42245a019debffc3183aa1f6549798224e5a6cb1ccd0df4d6319ba4fee0b071f730ca1d64089f0e0091
7
- data.tar.gz: ce9032112ec1fcb2897a05b230fed88350eda89a10039679766979cfd769db4ab2c923ef2732fa2b1fe7c7c4d89853fe27b62254d8d8c3ed81a8cecd136a8aae
6
+ metadata.gz: 8de2b3989e02a36119232256131c4f23ab002bd50f75aff397114a2243f4854241f272553eac59818ce3177ff568203e29d2fbf32453d197b93ea76806b1446f
7
+ data.tar.gz: 715c1e057771a09ea2cb4a944189549d669c43fe548ac90818bb7d7aeb8d8a339d90f234ea30f8428a097ab3c7a8a9a8232504ab5b55562e17e3892f9161e88f
data/.rubocop.yml CHANGED
@@ -78,3 +78,7 @@ RaiseArgs:
78
78
 
79
79
  TrailingComma:
80
80
  Enabled: false
81
+
82
+ Style/FileName:
83
+ Exclude:
84
+ - 'lib/omniauth-uber.rb'
@@ -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
- { :raw_info => raw_info }
25
+ {
26
+ :raw_info => raw_info
27
+ }
26
28
  end
27
29
 
28
30
  def raw_info
29
- @raw_info ||= access_token.get("/v1/me").parsed || {}
31
+ @raw_info ||= access_token.get('/v1/me').parsed || {}
30
32
  end
31
33
 
32
34
  def request_phase
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module Uber
3
- VERSION = '1.0.0'
3
+ VERSION = '1.0.1'
4
4
  end
5
5
  end
data/spec/app.rb CHANGED
@@ -27,7 +27,7 @@ end
27
27
  get '/auth/:name/callback' do
28
28
  auth = request.env['omniauth.auth']
29
29
 
30
- puts %Q(
30
+ puts %(
31
31
  >> UID
32
32
  #{auth.uid.inspect}
33
33
 
@@ -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://login.uber.com')
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-uber
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Milewski