omniauth-orcid 2.0.2 → 2.1.1

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
- SHA1:
3
- metadata.gz: 2de75de45baf1b335765369cd1b064583b61402b
4
- data.tar.gz: 4c8da80aa0fa68d5313ca41c281e50df641f2483
2
+ SHA256:
3
+ metadata.gz: 1543cc42918fdd2ed47978345d12bd43f447bb2d3de61f70ecfe980109b408d5
4
+ data.tar.gz: fde162706ce759a7d5c4c64973d80f1edf8332199b52dc56f4c5137be3b216be
5
5
  SHA512:
6
- metadata.gz: 7ba2ff0b986734c45b28a79cb2b7ba531c119c392937ba13749e381551116a98c0b8da2687b26b8c229fcf4e43e2d737bc2911c80259617a38e0ec77e342d9ec
7
- data.tar.gz: f81b4bbc001f5be28b61e88a24d27b46a62fa460ce90b863d19cd87e007b4e73c8ff9ef2f6735234ba727646f268a0d1c945bc3cff90620f06b575177fef657c
6
+ metadata.gz: 422557d481cdccfb79a22bbe5664df58c3875a1584eba873cb4bcd9c071cfa69196aa59e0884146a248b89ff4b46b7edce5c6252f4918553f83489d9d86e6b36
7
+ data.tar.gz: b9e3428b14a34348c45c47121c8a44aeb3f94d78e47dfea8807b99fa66387988dfeb5dc8491ed222bb9c197368488ca4767f07e1dbe22a3fc4954444bc1f585e
@@ -1,6 +1,7 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.3.1
3
+ - 2.2
4
+ - 2.4.1
4
5
  install:
5
6
  - travis_retry bundle install
6
7
  script: bundle exec rspec
@@ -1,3 +1,11 @@
1
+ ## v.2.0.2 (July 16, 2017)
2
+
3
+ [onmiauth-orcid 2.0.2](https://github.com/datacite/omniauth-orcid/releases/tag/v.2.0.2) was released on November, 2016 with the following changes:
4
+
5
+ * support for ORCID v.2.0 API
6
+ * tries to fetch primary email address (visibility must be set to `LIMITED`)
7
+ * better support for additional attributes such as description and location
8
+
1
9
  ## v.1.2.2 (November 6, 2016)
2
10
 
3
11
  [onmiauth-orcid 1.2.2](https://github.com/datacite/omniauth-orcid/releases/tag/v.1.2.2) was released on November, 2016 with the following changes:
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module Orcid
3
- VERSION = "2.0.2"
3
+ VERSION = "2.1.1"
4
4
  end
5
5
  end
@@ -1,4 +1,5 @@
1
1
  require 'omniauth-oauth2'
2
+ require 'ruby_dig'
2
3
 
3
4
  # OmniAuth strategy for connecting to the ORCID contributor ID service via the OAuth 2.0 protocol
4
5
 
@@ -12,7 +13,7 @@ module OmniAuth
12
13
 
13
14
  option :member, false
14
15
  option :sandbox, false
15
- option :provider_ignores_state, true
16
+ option :provider_ignores_state, false
16
17
 
17
18
  option :authorize_options, [:redirect_uri,
18
19
  :show_login,
@@ -20,6 +20,7 @@ Gem::Specification.new do |s|
20
20
 
21
21
  # Declary dependencies here, rather than in the Gemfile
22
22
  s.add_dependency 'omniauth-oauth2', '~> 1.3'
23
+ s.add_dependency 'ruby_dig','~> 0.0.2'
23
24
  s.add_development_dependency 'bundler', '~> 1.0'
24
25
  s.add_development_dependency 'rspec', '~> 3.4'
25
26
  s.add_development_dependency 'rack-test', '~> 0.6.3'
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.2
4
+ version: 2.1.1
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: 2017-07-16 00:00:00.000000000 Z
12
+ date: 2018-04-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: omniauth-oauth2
@@ -25,6 +25,20 @@ dependencies:
25
25
  - - "~>"
26
26
  - !ruby/object:Gem::Version
27
27
  version: '1.3'
28
+ - !ruby/object:Gem::Dependency
29
+ name: ruby_dig
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - "~>"
33
+ - !ruby/object:Gem::Version
34
+ version: 0.0.2
35
+ type: :runtime
36
+ prerelease: false
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - "~>"
40
+ - !ruby/object:Gem::Version
41
+ version: 0.0.2
28
42
  - !ruby/object:Gem::Dependency
29
43
  name: bundler
30
44
  requirement: !ruby/object:Gem::Requirement
@@ -162,7 +176,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
162
176
  version: '0'
163
177
  requirements: []
164
178
  rubyforge_project:
165
- rubygems_version: 2.4.5
179
+ rubygems_version: 2.7.6
166
180
  signing_key:
167
181
  specification_version: 4
168
182
  summary: ORCID OAuth 2.0 Strategy for OmniAuth 1.0