fhir_client 1.6.9 → 1.6.10
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 +4 -4
- data/.travis.yml +3 -1
- data/lib/fhir_client/client.rb +7 -7
- data/lib/fhir_client/ext/model.rb +1 -3
- data/lib/fhir_client/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 22d4c3a6c74dcc07bbdb94b88c5b6cd3455bb11c
|
|
4
|
+
data.tar.gz: 962d900a70b62a5fbd958296be8912e3a0e269af
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 176e4a8dd99785e341b1b6094b944b941f39ad4202f307ae81ea7453b40b09f25410aa7474f65626825581485150786643d4a1d73eedc6006d06e87e145bec11
|
|
7
|
+
data.tar.gz: 40ade734a01d6b2a6fcfde25f99f8bd895e2a2e088ad1ee594a298d4ecc1cb6f08cf99e41ce607ea6fa14c24eb9dfbf08f95e7a632c37d84baa11d4accc49a34
|
data/.travis.yml
CHANGED
data/lib/fhir_client/client.rb
CHANGED
|
@@ -139,23 +139,23 @@ module FHIR
|
|
|
139
139
|
rest.security.service.each do |service|
|
|
140
140
|
service.coding.each do |coding|
|
|
141
141
|
next unless coding.code == 'SMART-on-FHIR'
|
|
142
|
-
rest.security.extension.
|
|
142
|
+
rest.security.extension.find{|x| x.url == oauth_extension}.extension.each do |ext|
|
|
143
143
|
case ext.url
|
|
144
144
|
when authorize_extension
|
|
145
|
-
options[:authorize_url] = ext.value
|
|
145
|
+
options[:authorize_url] = ext.value
|
|
146
146
|
when "#{oauth_extension}\##{authorize_extension}"
|
|
147
|
-
options[:authorize_url] = ext.value
|
|
147
|
+
options[:authorize_url] = ext.value
|
|
148
148
|
when token_extension
|
|
149
|
-
options[:token_url] = ext.value
|
|
149
|
+
options[:token_url] = ext.value
|
|
150
150
|
when "#{oauth_extension}\##{token_extension}"
|
|
151
|
-
options[:token_url] = ext.value
|
|
151
|
+
options[:token_url] = ext.value
|
|
152
152
|
end
|
|
153
153
|
end
|
|
154
154
|
end
|
|
155
155
|
end
|
|
156
156
|
end
|
|
157
|
-
rescue
|
|
158
|
-
FHIR.logger.error
|
|
157
|
+
rescue => e
|
|
158
|
+
FHIR.logger.error "Failed to locate SMART-on-FHIR OAuth2 Security Extensions: #{e.message}"
|
|
159
159
|
end
|
|
160
160
|
options.delete_if { |_k, v| v.nil? }
|
|
161
161
|
options.clear if options.keys.size != 2
|
data/lib/fhir_client/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fhir_client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.6.
|
|
4
|
+
version: 1.6.10
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Andre Quina
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: exe
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date: 2016-
|
|
13
|
+
date: 2016-11-18 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: activesupport
|