omniauth-google-oauth2 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module GoogleOauth2
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
4
4
  end
5
5
  end
@@ -33,7 +33,7 @@ module OmniAuth
33
33
  OmniAuth::Utils.deep_merge(super, {
34
34
  'uid' => info['uid'],
35
35
  'info' => info,
36
- 'credentials' => {'expires_at' => @access_token.expires_at},
36
+ 'credentials' => {'expires_at' => access_token.expires_at},
37
37
  'extra' => {'user_hash' => user_data}
38
38
  })
39
39
  end
@@ -53,8 +53,7 @@ module OmniAuth
53
53
  end
54
54
 
55
55
  def user_data
56
- @data ||=
57
- @access_token.get("https://www.googleapis.com/userinfo/email?alt=json").parsed
56
+ @data ||= access_token.get("https://www.googleapis.com/userinfo/email?alt=json").parsed
58
57
  end
59
58
  end
60
59
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-google-oauth2
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 31
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 1
10
- version: 0.1.1
9
+ - 2
10
+ version: 0.1.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Josh Ellithorpe