omniauth-orcid 2.0 → 2.0.1

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: bdc033017ce0638e8e20fbec70003539d806ec89
4
- data.tar.gz: 8dcc4883295d1e26f5d50fcec5a633388f0ca13e
3
+ metadata.gz: c433403ee6a5a8336bfd361259dfefa176138e54
4
+ data.tar.gz: 2e27a8831978bb6e4e404c20ee4067d75b13a35d
5
5
  SHA512:
6
- metadata.gz: c364fee700aaf0781d9f38a886a9f78121f237033aefaad932a212d42e4953c755070d5e27e79cf380a39c9ce68773ef1139498f80e10cb6b6cfb4a0c103d732
7
- data.tar.gz: a74e74f9c6d2522a6cea476b84a73764e05fd06cd08a03aceba3b64b20143eb286d4b26af27d28fb3378b16a1422a76d0df8b67f3a1e61d211cad0d104451867
6
+ metadata.gz: f42e6ed8d7ae1fa6cee3b35706c98e6271f30556729f8868132d3a534ab9370177e2f0d5c987d0ad7fdcc549b6cd1718732ac2ddf5ddc64965993b6452ba27f4
7
+ data.tar.gz: fd90e3f753f1fe382d92b5d7788615faf4645714a8d4cc8d1a9f9f423e8faae875c4de55d37aa7080d7e5a5e97e2d0857a4b321e68134b99cca5310471c6f9e0
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module Orcid
3
- VERSION = "2.0"
3
+ VERSION = "2.0.1"
4
4
  end
5
5
  end
@@ -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,
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: '2.0'
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gudmundur A. Thorisson