omniauth-orcid 1.0.12 → 1.0.13

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: 6cc33d7da8926def2d446c4ea6236c0d3cdfc328
4
- data.tar.gz: 5331386ba0d88eed4cc87f889e3057bebedbf723
3
+ metadata.gz: e6f69d6f049b73e1dc1eee59c4919d00700c14d5
4
+ data.tar.gz: acc281c20bcce6b9d1d702def2e4ebfa6c0c1a9e
5
5
  SHA512:
6
- metadata.gz: ce5b0529adfe4077c6ff40a5bdaff9e491107f8160fcc2f429563a018d214511a96e6305cde4485e15e57bf10317eb5bc1b0ad7294a41564e975da7ce86cc20b
7
- data.tar.gz: faf75d8ac8e52c313dffa763da90910b0905eebf5f8eda6421b4063131c16389ecad2965b3c1d0e5689182d984e8fe47d69f66e9a1fc176c5039e700c3bab23b
6
+ metadata.gz: 681950433ba79c8a7cddfe12319be39cb703ad033c529f701728e905738dedbcd9c9773fa2d31ffcf0d09bce961e8234d227850d9a63179a27ea03074190b110
7
+ data.tar.gz: a87cb677d9bd17ab7a70bff30a219ae2eb04987122c38b0f5747aa8fd7b90e7f2cf9a40aa4e224c944205a2a3cc26a66e27b6d70eea8982d94db862fab3d92b1
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module Orcid
3
- VERSION = "1.0.12"
3
+ VERSION = "1.0.13"
4
4
  end
5
5
  end
@@ -43,11 +43,11 @@ module OmniAuth
43
43
 
44
44
  # URLs for ORCID OAuth: http://members.orcid.org/api/tokens-through-3-legged-oauth-authorization
45
45
  def namespace
46
- if option[:member] && option[:sandbox]
46
+ if options[:member] && options[:sandbox]
47
47
  'sandbox'
48
- elsif option[:member]
48
+ elsif options[:member]
49
49
  'production'
50
- elsif option[:sandbox]
50
+ elsif options[:sandbox]
51
51
  'public_sandbox'
52
52
  else
53
53
  'public'
@@ -64,7 +64,7 @@ module OmniAuth
64
64
  end
65
65
 
66
66
  def authorize_url
67
- if option[:sandbox]
67
+ if options[:sandbox]
68
68
  'https://sandbox.orcid.org/oauth/authorize'
69
69
  else
70
70
  'https://orcid.org/oauth/authorize'
@@ -81,7 +81,7 @@ module OmniAuth
81
81
  end
82
82
 
83
83
  def scope
84
- if option[:member]
84
+ if options[:member]
85
85
  '/orcid-profile/read-limited /orcid-works/create'
86
86
  else
87
87
  '/authenticate'
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.12
4
+ version: 1.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gudmundur A. Thorisson