omniauth-orcid 1.0.29 → 1.0.30

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: 956643d239efb3fc5e40f632e39eb451e5a08fd0
4
- data.tar.gz: d6da0b45567b34bcb244990abf7597753604a1ad
3
+ metadata.gz: fda37b7b6749323749c05caf0e790d162baa5997
4
+ data.tar.gz: bf92b03f245608ceeb97f8b245e2ac2648d85846
5
5
  SHA512:
6
- metadata.gz: 430fef1efd5c81445f332c5ddbcec7a11ee2e43f767faccfe70ea37bc549f5cff1817c1043598341e73de932c15211cf08efe41ee980119ed564cdde743783dc
7
- data.tar.gz: 4bcfb9bceed154bbc71cdb9d3fb2e14d605e7b261357e395f18baf0fa697c26e21607145b2bba42491369622ff6996b776408acd71f37fbc881498f8f307f284
6
+ metadata.gz: b59bd6ca6d78dce871a15fe1ba1125490c98eefd403b30ad0ac3f15978e65809723acfe2ab52212df0f9decbaef60683bfe8df46f9ecbc76870e9eabd3a07c5d
7
+ data.tar.gz: 276aca84399811823d5d8406ac92173024cf8d60e1bf81ea1e3245a5bb7e1760880394fdd6f1b3efdefa73e311dadab91ecadd49925d59abf8fc6eb78b7f8b15
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module Orcid
3
- VERSION = "1.0.29"
3
+ VERSION = "1.0.30"
4
4
  end
5
5
  end
@@ -109,12 +109,12 @@ module OmniAuth
109
109
  end
110
110
 
111
111
  def raw_info
112
- orcid_bio = request_info.fetch('orcid-profile', {}).fetch('orcid-bio', {})
112
+ orcid_bio = request_info.fetch('orcid-profile', nil).to_h.fetch('orcid-bio', {})
113
113
 
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) },
114
+ { name: orcid_bio.fetch('personal-details', nil).to_h.fetch('credit-name', nil).to_h.fetch('value', nil),
115
+ first_name: orcid_bio.fetch('personal-details', nil).to_h.fetch('given-names', nil).to_h.fetch('value', nil),
116
+ last_name: orcid_bio.fetch('personal-details', nil).to_h.fetch('family-name', nil).to_h.fetch('value', nil),
117
+ other_names: orcid_bio.fetch('personal-details', nil).to_h.fetch('other-names', nil).to_h.fetch('other-name', [{}]).map { |other_name| other_name.fetch('value', nil) },
118
118
  description: orcid_bio.fetch('biography', nil).to_h.fetch('value', nil),
119
119
  urls: {}
120
120
  }
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.29
4
+ version: 1.0.30
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gudmundur A. Thorisson