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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: be8ac6054fc7fffbb4aff8dec4a87de75190f6cd
4
- data.tar.gz: c79f88f018d30d56d6c3011bf0ab583a4577fe40
3
+ metadata.gz: 956643d239efb3fc5e40f632e39eb451e5a08fd0
4
+ data.tar.gz: d6da0b45567b34bcb244990abf7597753604a1ad
5
5
  SHA512:
6
- metadata.gz: af6265b2e9d9ce3d3303bd47b0b2c4b4356bc12906732fbe463fef3f9cf486857b92084c4577340601215bb7deb84639ef0d59e9fb8df6551abe9cd98913a2d6
7
- data.tar.gz: b160d02e565f93ba778bc529c7d46bab2c5ccbf52881a07855ae4d2f997f3aa32dba0749b4ca03a543b71266208ba63648c7f2eb78126e7e3b41fcd59ab9c0b6
6
+ metadata.gz: 430fef1efd5c81445f332c5ddbcec7a11ee2e43f767faccfe70ea37bc549f5cff1817c1043598341e73de932c15211cf08efe41ee980119ed564cdde743783dc
7
+ data.tar.gz: 4bcfb9bceed154bbc71cdb9d3fb2e14d605e7b261357e395f18baf0fa697c26e21607145b2bba42491369622ff6996b776408acd71f37fbc881498f8f307f284
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module Orcid
3
- VERSION = "1.0.28"
3
+ VERSION = "1.0.29"
4
4
  end
5
5
  end
@@ -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', {}).fetch('value', nil),
115
- first_name: orcid_bio.fetch('personal-details', {}).fetch('given-names', {}).fetch('value', nil),
116
- last_name: orcid_bio.fetch('personal-details', {}).fetch('family-name', {}).fetch('value', nil),
117
- other_names: orcid_bio.fetch('personal-details', {}).fetch('other-names', {}).fetch('other-name', [{}]).map { |other_name| other_name.fetch('value', nil) },
118
- description: orcid_bio.fetch('biography', {}).fetch('value', nil),
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.28
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-05 00:00:00.000000000 Z
12
+ date: 2015-11-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: omniauth-oauth2