omniauth-orcid 1.0.35 → 1.0.36

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: d62ec3fcb192bfbffbb2e500e200163694b4aa1d
4
- data.tar.gz: 5395c8eff30551f783154b2a37336687b9c071b4
3
+ metadata.gz: fa626b76f19bdfb2fe9490a66816d90e929848c1
4
+ data.tar.gz: e082d4581100d369b3c5faa1c08f6cddc0c89139
5
5
  SHA512:
6
- metadata.gz: 57d2cd1395e60df1ec3283eecfebc38cf482f5ec147224d38af4f5694f1ae031a58f06516d70f3d2370f7fb27d6cb1d8ead4674e72d1daa6cd345147b5f730bd
7
- data.tar.gz: d77c4e4956a2ed968b6eb6c850560cea2ad16a13b9e2a4050faebdf007eea5b529d89dffdce9dbd04d3c7049472905042ce9ed258ce4237d30c8be722e5efa71
6
+ metadata.gz: 583a7bdaad238e8b98a24eaee5de6c17429a63a0c5e6c38e40e5bf5f4fd73ff85a5d7e734c999ef3c62c05e2f81f20669a0bcae43a37c2415c1ce3d7fcf5646e
7
+ data.tar.gz: 6530a56d3bdc4fbf294c6dafa2d0a71da7ca4316fdcaee78590ae8eb40e075c2e619f4e3c2a4db52e3416ba3e2e8c94a1562411dbd936d1a34d3e4202620d78c
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module Orcid
3
- VERSION = "1.0.35"
3
+ VERSION = "1.0.36"
4
4
  end
5
5
  end
@@ -23,6 +23,7 @@ module OmniAuth
23
23
  super
24
24
 
25
25
  @options.client_options.site = site
26
+ @options.client_options.api_base_url = api_base_url
26
27
  @options.client_options.authorize_url = authorize_url
27
28
  @options.client_options.token_url = token_url
28
29
  @options.client_options.scope = scope
@@ -16,6 +16,10 @@ describe OmniAuth::Strategies::ORCID do
16
16
  expect(subject.options.client_options.authorize_url).to eq('https://orcid.org/oauth/authorize')
17
17
  end
18
18
 
19
+ it 'should have correct base url' do
20
+ expect(subject.options.client_options.api_base_url).to eq('https://pub.orcid.org/v1.2')
21
+ end
22
+
19
23
  it 'should have correct scope' do
20
24
  expect(subject.options.client_options.scope).to eq('/authenticate')
21
25
  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.35
4
+ version: 1.0.36
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-12-15 00:00:00.000000000 Z
12
+ date: 2015-12-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: omniauth-oauth2