omniauth-orcid 1.0.28 → 1.0.29
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 +5 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 956643d239efb3fc5e40f632e39eb451e5a08fd0
|
4
|
+
data.tar.gz: d6da0b45567b34bcb244990abf7597753604a1ad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 430fef1efd5c81445f332c5ddbcec7a11ee2e43f767faccfe70ea37bc549f5cff1817c1043598341e73de932c15211cf08efe41ee980119ed564cdde743783dc
|
7
|
+
data.tar.gz: 4bcfb9bceed154bbc71cdb9d3fb2e14d605e7b261357e395f18baf0fa697c26e21607145b2bba42491369622ff6996b776408acd71f37fbc881498f8f307f284
|
@@ -111,11 +111,11 @@ module OmniAuth
|
|
111
111
|
def raw_info
|
112
112
|
orcid_bio = request_info.fetch('orcid-profile', {}).fetch('orcid-bio', {})
|
113
113
|
|
114
|
-
{ name: orcid_bio.fetch('personal-details', {}).fetch('credit-name',
|
115
|
-
first_name: orcid_bio.fetch('personal-details', {}).fetch('given-names',
|
116
|
-
last_name: orcid_bio.fetch('personal-details', {}).fetch('family-name',
|
117
|
-
other_names: orcid_bio.fetch('personal-details', {}).fetch('other-names',
|
118
|
-
description: orcid_bio.fetch('biography',
|
114
|
+
{ name: orcid_bio.fetch('personal-details', {}).fetch('credit-name', nil).to_h.fetch('value', nil),
|
115
|
+
first_name: orcid_bio.fetch('personal-details', {}).fetch('given-names', nil).to_h.fetch('value', nil),
|
116
|
+
last_name: orcid_bio.fetch('personal-details', {}).fetch('family-name', nil).to_h.fetch('value', nil),
|
117
|
+
other_names: orcid_bio.fetch('personal-details', {}).fetch('other-names', nil).to_h.fetch('other-name', [{}]).map { |other_name| other_name.fetch('value', nil) },
|
118
|
+
description: orcid_bio.fetch('biography', nil).to_h.fetch('value', nil),
|
119
119
|
urls: {}
|
120
120
|
}
|
121
121
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-orcid
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.29
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gudmundur A. Thorisson
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-11-
|
12
|
+
date: 2015-11-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: omniauth-oauth2
|