omniauth-orcid 2.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/omniauth/orcid/version.rb +1 -1
- data/lib/omniauth/strategies/orcid.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c433403ee6a5a8336bfd361259dfefa176138e54
|
4
|
+
data.tar.gz: 2e27a8831978bb6e4e404c20ee4067d75b13a35d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f42e6ed8d7ae1fa6cee3b35706c98e6271f30556729f8868132d3a534ab9370177e2f0d5c987d0ad7fdcc549b6cd1718732ac2ddf5ddc64965993b6452ba27f4
|
7
|
+
data.tar.gz: fd90e3f753f1fe382d92b5d7788615faf4645714a8d4cc8d1a9f9f423e8faae875c4de55d37aa7080d7e5a5e97e2d0857a4b321e68134b99cca5310471c6f9e0
|
@@ -139,7 +139,7 @@ module OmniAuth
|
|
139
139
|
other_names: request_info.dig('other-names', 'other-name').map { |o| o.fetch('content') },
|
140
140
|
description: request_info.dig('biography', 'content'),
|
141
141
|
location: request_info.dig('addresses', 'address').map { |a| a.dig('country', 'value') }.first,
|
142
|
-
email: emails.find { |e| e.fetch('primary') }.to_h.fetch('email'),
|
142
|
+
email: emails.find { |e| e.fetch('primary') }.to_h.fetch('email', nil),
|
143
143
|
urls: request_info.dig('researcher-urls', 'researcher-url').map do |r|
|
144
144
|
{ r.fetch("url-name", nil) => r.dig('url', 'value') }
|
145
145
|
end,
|