omniauth-github 1.2.1 → 1.2.2

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: 72538f29bb0f32daba3074d330d8e5524ec05d3a
4
- data.tar.gz: 4b2077a891853d05e098024fb0e7cdaab2ce1436
3
+ metadata.gz: 2446e24843ed56f061f1ff020bf29f9d2c4c2ea4
4
+ data.tar.gz: 91cee0c45c6b919fae286f3e3ce062b04401193d
5
5
  SHA512:
6
- metadata.gz: a80670fc15ad32bb5ebd033cdf80ee1da215141180963b8df2560d9763a9f1c2bcad916312dd9f1e75bc5770ada73ca327e39fe48adbc0ffcd9b8b8431dd7171
7
- data.tar.gz: 903d08d81f70fe1ef648a19b8b468e027a8c6b41de7635486a2680f806eadc62b5135cf45a6722ccd6e23eb28b04fac3a104fb28004bc688cf1811d5e3d3f8be
6
+ metadata.gz: c71ba32fe6c9f5b451b22fc81a2087c6f7153804a12bd177d0d740e3738778de5bf2d4146dce22a5ab67e5ce5b7d0dba7a499091215513f1b6fa2c22023deecb
7
+ data.tar.gz: f620c886edc4671f5e4d695c5b80a956112f6bd05121e783a738fdb30db5edcedeb255817399e000b8e75af60e7c2ca6a20b59fcac1d5dfec40846a27c79a59f
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module GitHub
3
- VERSION = "1.2.1"
3
+ VERSION = "1.2.2"
4
4
  end
5
5
  end
@@ -28,7 +28,7 @@ module OmniAuth
28
28
  info do
29
29
  {
30
30
  'nickname' => raw_info['login'],
31
- 'email' => primary_email,
31
+ 'email' => email,
32
32
  'name' => raw_info['name'],
33
33
  'image' => raw_info['avatar_url'],
34
34
  'urls' => {
@@ -135,6 +135,14 @@ describe OmniAuth::Strategies::GitHub do
135
135
  end
136
136
  end
137
137
 
138
+ context '#info.email' do
139
+ it 'should use any available email' do
140
+ allow(subject).to receive(:raw_info).and_return({})
141
+ allow(subject).to receive(:email).and_return('you@example.com')
142
+ expect(subject.info['email']).to eq('you@example.com')
143
+ end
144
+ end
145
+
138
146
  context '#info.urls' do
139
147
  it 'should use html_url from raw_info' do
140
148
  allow(subject).to receive(:raw_info).and_return({ 'login' => 'me', 'html_url' => 'http://enterprise/me' })
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-github
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Bleigh
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-06 00:00:00.000000000 Z
11
+ date: 2017-02-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: omniauth