omniauth-yahoo 0.0.7 → 0.0.8

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
2
  SHA1:
3
- metadata.gz: da71ea76c7b91b177ffbfdf9f298813b56f0a2a2
4
- data.tar.gz: b7d6b8d570f27a3fc0d5293cb508711694276554
3
+ metadata.gz: b1e4a80ae39f67c3e1d2dc956723ab05d88ccf88
4
+ data.tar.gz: 1968b545e2239fd1e35aa767e934dca6736f02cb
5
5
  SHA512:
6
- metadata.gz: b307581e9798ee8f49d75db357c9537728ff87bdb2d399340e353b2e0d294cc4deafd7df54d5127de545431bcd8664022a5378b3c2b6909da22cefaf3bead443
7
- data.tar.gz: 5c6ed083e1957cb887986726632fc303445b8545b11b41c29f207650a9b2e6e855710d0f029a1e6c4048d69bd40b261d4d92f25d0ea166e378773c87a0ece772
6
+ metadata.gz: d8b855fc9a354c37ca09d7673cf980624816ca854ed6468b219146b6fa3d27ea8d897520fb7699ea95982c704f1125f6279f594b251b8f8e11d9022983eebf7f
7
+ data.tar.gz: 5ba79660da1f0bd7bd04500803a5f889e60f63aa020eb5ec8b51dbdfdc662933764a83e89eb4dfd543bb824b1eae6141c6de852e86b46a2406f2f07aad95aadf
data/README.md CHANGED
@@ -6,6 +6,10 @@ For more information see the following:
6
6
 
7
7
  Release notes:
8
8
 
9
+ * Version 0.0.8
10
+
11
+ - Handle empty emails array
12
+
9
13
  * Version 0.0.7
10
14
 
11
15
  - Add licence to gemspec
@@ -1,5 +1,5 @@
1
1
  module Omniauth
2
2
  module Yahoo
3
- VERSION = "0.0.7"
3
+ VERSION = "0.0.8"
4
4
  end
5
5
  end
@@ -22,7 +22,7 @@ module OmniAuth
22
22
 
23
23
  info do
24
24
  primary_email = nil
25
- if user_info['emails']
25
+ if user_info['emails'] && !user_info['emails'].empty?
26
26
  email_info = user_info['emails'].find{|e| e['primary']} || user_info['emails'].first
27
27
  primary_email = email_info['handle']
28
28
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-yahoo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Breitkreutz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-24 00:00:00.000000000 Z
11
+ date: 2016-07-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: omniauth-oauth
@@ -61,7 +61,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
61
61
  version: '0'
62
62
  requirements: []
63
63
  rubyforge_project: omniauth-yahoo
64
- rubygems_version: 2.2.2
64
+ rubygems_version: 2.4.8
65
65
  signing_key:
66
66
  specification_version: 4
67
67
  summary: OmniAuth strategy for yahoo