omniauth-google-oauth2 0.6.0 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 81997c7fd03317eea408408d6f18159972b8f3dc
4
- data.tar.gz: d16e88cdee0f4fd599d4b8d8c05ac40ebc761c07
2
+ SHA256:
3
+ metadata.gz: e633bd99de4feaaec8203e3b664d43ca00b563a45858897689cb62260c3d07fd
4
+ data.tar.gz: b79241160e8c0c120d66d1ace4c3b526849b391b43c4d1c877b5b2c11914ef0f
5
5
  SHA512:
6
- metadata.gz: eb2b1d82471d000a983728b92676e682d7006b0a3551bcb109cd9216a3114e6d78500bdd3d29ae71b55c95f4b7a2315f4d3930bf017edc7a2506641bb51cfc06
7
- data.tar.gz: 27605544db858360570a109a922689ec100bd70ff4ea63318a67f2ba6bc5a91c1f464e9110088addba9c83fc62a6fcae13ce54f22f53abcaf5933d04cb1538ff
6
+ metadata.gz: efd075314aa4b5b0960d71bd130eaccb78c943391543e2da1b935b4645ab138aacf21010f1e36b9008d1cf026bd3e6aa6707cde9386e835adede30b54ae72535
7
+ data.tar.gz: 18649f5ca21e01243d07625b3802edc18b08a97edb3eb874454f38e511711d96e7d5f28fb1c981206c2f8096a40e9b14363b9ba6288b7f28522626072d1670a6
@@ -1,6 +1,20 @@
1
1
  # Changelog
2
2
  All notable changes to this project will be documented in this file.
3
3
 
4
+ ## 0.6.1 - 2019-03-07
5
+
6
+ ### Added
7
+ - Return `email` and `email_verified` keys in response.
8
+
9
+ ### Deprecated
10
+ - Nothing.
11
+
12
+ ### Removed
13
+ - Nothing.
14
+
15
+ ### Fixed
16
+ - Nothing.
17
+
4
18
  ## 0.6.0 - 2018-12-28
5
19
 
6
20
  ### Added
@@ -12,6 +26,7 @@ All notable changes to this project will be documented in this file.
12
26
  ### Removed
13
27
  - Support for JWT 1.x.
14
28
  - Support for `raw_friend_info` and `raw_image_info`.
29
+ - Stop using Google+ API endpoints.
15
30
 
16
31
  ### Fixed
17
32
  - Nothing.
@@ -2,6 +2,6 @@
2
2
 
3
3
  source 'https://rubygems.org'
4
4
 
5
- gem 'omniauth-google-oauth2', '~> 0.5'
5
+ gem 'omniauth-google-oauth2', '~> 0.6'
6
6
  gem 'rubocop'
7
7
  gem 'sinatra', '~> 1.4'
@@ -2,6 +2,6 @@
2
2
 
3
3
  module OmniAuth
4
4
  module GoogleOauth2
5
- VERSION = '0.6.0'
5
+ VERSION = '0.6.1'
6
6
  end
7
7
  end
@@ -46,7 +46,8 @@ module OmniAuth
46
46
  info do
47
47
  prune!(
48
48
  name: raw_info['name'],
49
- email: verified_email,
49
+ email: raw_info['email'],
50
+ email_verified: raw_info['email_verified'],
50
51
  first_name: raw_info['given_name'],
51
52
  last_name: raw_info['family_name'],
52
53
  image: image_url,
@@ -135,10 +136,6 @@ module OmniAuth
135
136
  end
136
137
  end
137
138
 
138
- def verified_email
139
- raw_info['email_verified'] ? raw_info['email'] : nil
140
- end
141
-
142
139
  def image_url
143
140
  return nil unless raw_info['picture']
144
141
 
@@ -177,8 +177,8 @@ describe OmniAuth::Strategies::GoogleOauth2 do
177
177
 
178
178
  describe 'scope' do
179
179
  it 'should expand scope shortcuts' do
180
- @options = { scope: 'plus.me' }
181
- expect(subject.authorize_params['scope']).to eq('https://www.googleapis.com/auth/plus.me')
180
+ @options = { scope: 'calendar' }
181
+ expect(subject.authorize_params['scope']).to eq('https://www.googleapis.com/auth/calendar')
182
182
  end
183
183
 
184
184
  it 'should leave base scopes as is' do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-google-oauth2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Ellithorpe
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-12-29 00:00:00.000000000 Z
12
+ date: 2019-03-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: jwt
@@ -140,8 +140,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
140
140
  - !ruby/object:Gem::Version
141
141
  version: '0'
142
142
  requirements: []
143
- rubyforge_project:
144
- rubygems_version: 2.6.11
143
+ rubygems_version: 3.0.3
145
144
  signing_key:
146
145
  specification_version: 4
147
146
  summary: A Google OAuth2 strategy for OmniAuth 1.x