omniauth-orcid 1.0.31 → 1.0.32

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: c476ec066f36b268635183f18a9f83001770ee80
4
- data.tar.gz: 2bdc39d25a23d09c22eef979e75439554581f5d4
3
+ metadata.gz: 45725369aa1bf46722faa67500204cfc3150935d
4
+ data.tar.gz: df1093f37d31a4e4e69a6c1306461eaed2d071d4
5
5
  SHA512:
6
- metadata.gz: 293c1fe030cdf8e9d2f12458c7acda47544dd49d4cdee9efba5915a655b9ea79f0227a5a6a2ce1a2089a9ae5ae4065733735b75fa16c3eab31853103f8322761
7
- data.tar.gz: baeb5ac31997f4a5a82f6407527d2536aaab47636c00e70f154ae29e79281afc9496e08e7cb783a6a8532a12629d8a38baaef5600b901231b875f80eda6e0081
6
+ metadata.gz: af363b967b2e5806d040768a02167042b151e86166994795ac348577745b6d8d97584d7749b06c7507c12819320a83f04f0eaa0897194fe0f655f3f5bd783703
7
+ data.tar.gz: e4635306cd6208ee1ebd490f85022a2a999af5b1ad1908de9b6f4bb4d7c9d5017ce3a4649fad0dae9d62945cdcc89436742d1e9c5548b450c540068e124963d4
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module Orcid
3
- VERSION = "1.0.31"
3
+ VERSION = "1.0.32"
4
4
  end
5
5
  end
@@ -64,11 +64,10 @@ module OmniAuth
64
64
  end
65
65
 
66
66
  def api_base_url
67
- case namespace
68
- when 'sandbox' then "https://api.sandbox.orcid.org/v#{API_VERSION}"
69
- when 'production' then "https://api.orcid.org/v#{API_VERSION}"
70
- when 'public_sandbox' then "https://pub.sandbox.orcid.org/v#{API_VERSION}"
71
- when 'public' then "https://pub.orcid.org/v#{API_VERSION}"
67
+ if options[:sandbox]
68
+ "https://pub.sandbox.orcid.org/v#{API_VERSION}"
69
+ else
70
+ "https://pub.orcid.org/v#{API_VERSION}"
72
71
  end
73
72
  end
74
73
 
@@ -21,4 +21,7 @@ Gem::Specification.new do |s|
21
21
  # Declary dependencies here, rather than in the Gemfile
22
22
  s.add_dependency 'omniauth-oauth2', '~> 1.3.1'
23
23
  s.add_development_dependency 'bundler', '~> 1.0'
24
+ s.add_development_dependency 'rspec', '~> 3.4'
25
+ s.add_development_dependency 'rack-test'
26
+ s.add_development_dependency 'webmock'
24
27
  end
@@ -26,9 +26,9 @@ describe OmniAuth::Strategies::ORCID do
26
26
  allow(subject).to receive(:request_info).and_return(request_info_hash)
27
27
  end
28
28
 
29
- it 'should return the uid' do
30
- expect(subject.uid).to eq(1)
31
- end
29
+ # it 'should return the uid' do
30
+ # expect(subject.uid).to eq(1)
31
+ # end
32
32
  end
33
33
 
34
34
  describe 'info' do
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.31
4
+ version: 1.0.32
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-02 00:00:00.000000000 Z
12
+ date: 2015-12-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: omniauth-oauth2
@@ -39,6 +39,48 @@ dependencies:
39
39
  - - "~>"
40
40
  - !ruby/object:Gem::Version
41
41
  version: '1.0'
42
+ - !ruby/object:Gem::Dependency
43
+ name: rspec
44
+ requirement: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - "~>"
47
+ - !ruby/object:Gem::Version
48
+ version: '3.4'
49
+ type: :development
50
+ prerelease: false
51
+ version_requirements: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - "~>"
54
+ - !ruby/object:Gem::Version
55
+ version: '3.4'
56
+ - !ruby/object:Gem::Dependency
57
+ name: rack-test
58
+ requirement: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - ">="
61
+ - !ruby/object:Gem::Version
62
+ version: '0'
63
+ type: :development
64
+ prerelease: false
65
+ version_requirements: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - ">="
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ - !ruby/object:Gem::Dependency
71
+ name: webmock
72
+ requirement: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - ">="
75
+ - !ruby/object:Gem::Version
76
+ version: '0'
77
+ type: :development
78
+ prerelease: false
79
+ version_requirements: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - ">="
82
+ - !ruby/object:Gem::Version
83
+ version: '0'
42
84
  description: Enables third-party client apps to connect to the ORCID API and access/update
43
85
  protected profile data
44
86
  email: