redox 1.8.2 → 1.8.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +11 -0
- data/lib/redox/models/media.rb +2 -0
- data/lib/redox/redox_exception.rb +6 -5
- data/lib/redox/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3401ee402d3464f63e7a6256316aedc0c755c1d5c681beb20a196845945a95fb
|
4
|
+
data.tar.gz: 43a982f5d6d887a5e07573d8952bc3155d8dec3b3ec6770281c5f481e64b1273
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 370d01b6538e57cf73f44587217a883d9483359b629a3d0cd5571aec990d7a8f105ee6053a6306cc11aff7970207e47b7314f55e651d617632444d2b5d34df89
|
7
|
+
data.tar.gz: eea7189b0f339f7f06c1e57ac45d7e6f11746e7a12cef2a2583ad643783b202a69863359af06831e3bd4d88c6c061103f741330cc57efe333846770627deb33a
|
data/CHANGELOG.md
CHANGED
@@ -4,9 +4,18 @@ All notable changes to this project will be documented in this file.
|
|
4
4
|
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
5
5
|
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
6
6
|
|
7
|
+
## [1.8.4] - 2022-10-26
|
8
|
+
### Added
|
9
|
+
- ServiceDateTime to Media Model
|
10
|
+
|
11
|
+
## [1.8.3] - 2022-8-12
|
12
|
+
### Added
|
13
|
+
- Improved RedoxException error handling
|
14
|
+
|
7
15
|
## [1.8.2] - 2022-2-23
|
8
16
|
### Added
|
9
17
|
- DirectAddressFrom and DirectAddressTo to Media Model
|
18
|
+
|
10
19
|
## [1.8.1] - 2022-1-25
|
11
20
|
### Added
|
12
21
|
- Components, OrderedBy, Indications, and AdministeringProvider to Medication Model
|
@@ -190,6 +199,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|
190
199
|
### Added
|
191
200
|
- Initial Release
|
192
201
|
|
202
|
+
[1.8.4]: https://github.com/WeInfuse/redox/compare/v1.8.3...v1.8.4
|
203
|
+
[1.8.3]: https://github.com/WeInfuse/redox/compare/v1.8.2...v1.8.3
|
193
204
|
[1.8.2]: https://github.com/WeInfuse/redox/compare/v1.8.1...v1.8.2
|
194
205
|
[1.8.1]: https://github.com/WeInfuse/redox/compare/v1.8.0...v1.8.1
|
195
206
|
[1.8.0]: https://github.com/WeInfuse/redox/compare/v1.7.4...v1.8.0
|
data/lib/redox/models/media.rb
CHANGED
@@ -12,6 +12,7 @@ module Redox
|
|
12
12
|
property :Provider, from: :provider, required: false
|
13
13
|
property :DirectAddressFrom, from: :direct_address_from, required: false
|
14
14
|
property :DirectAddressTo, from: :direct_address_to, required: false
|
15
|
+
property :ServiceDateTime, from: :service_date_time, required: false
|
15
16
|
|
16
17
|
alias_method :file_type, :FileType
|
17
18
|
alias_method :file_name, :FileName
|
@@ -22,6 +23,7 @@ module Redox
|
|
22
23
|
alias_method :provider, :Provider
|
23
24
|
alias_method :direct_address_from, :DirectAddressFrom
|
24
25
|
alias_method :direct_address_to, :DirectAddressTo
|
26
|
+
alias_method :service_date_time, :ServiceDateTime
|
25
27
|
|
26
28
|
def availability=(value)
|
27
29
|
case value
|
@@ -2,15 +2,16 @@ module Redox
|
|
2
2
|
class RedoxException < Exception
|
3
3
|
def self.from_response(response, msg: nil)
|
4
4
|
exception_msg = "Failed #{msg}:"
|
5
|
-
exception_msg << " HTTP code: #{response
|
5
|
+
exception_msg << " HTTP code: #{response&.code} MSG: "
|
6
6
|
|
7
7
|
begin
|
8
|
-
error_response =
|
8
|
+
error_response = response.parsed_response
|
9
|
+
error_list = error_response&.[]('Meta')&.[]('Errors')
|
9
10
|
|
10
|
-
if
|
11
|
-
exception_msg <<
|
11
|
+
if error_list
|
12
|
+
exception_msg << error_list.map {|el| el['Text'] || el.to_s }.join('|')
|
12
13
|
else
|
13
|
-
exception_msg << error_response
|
14
|
+
exception_msg << error_response.to_s
|
14
15
|
end
|
15
16
|
rescue JSON::ParserError
|
16
17
|
exception_msg << response.body
|
data/lib/redox/version.rb
CHANGED
metadata
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: redox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.8.
|
4
|
+
version: 1.8.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexander Clark
|
8
8
|
- Mike Crockett
|
9
9
|
- Mike Carr
|
10
|
-
autorequire:
|
10
|
+
autorequire:
|
11
11
|
bindir: exe
|
12
12
|
cert_chain: []
|
13
|
-
date: 2022-
|
13
|
+
date: 2022-10-26 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: httparty
|
@@ -130,7 +130,7 @@ dependencies:
|
|
130
130
|
- - "~>"
|
131
131
|
- !ruby/object:Gem::Version
|
132
132
|
version: '0.9'
|
133
|
-
description:
|
133
|
+
description:
|
134
134
|
email:
|
135
135
|
- alexander.clark@weinfuse.com
|
136
136
|
- mike.crockett@weinfuse.com
|
@@ -187,7 +187,7 @@ licenses:
|
|
187
187
|
- MIT
|
188
188
|
metadata:
|
189
189
|
allowed_push_host: https://rubygems.org
|
190
|
-
post_install_message:
|
190
|
+
post_install_message:
|
191
191
|
rdoc_options: []
|
192
192
|
require_paths:
|
193
193
|
- lib
|
@@ -202,8 +202,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
202
202
|
- !ruby/object:Gem::Version
|
203
203
|
version: '0'
|
204
204
|
requirements: []
|
205
|
-
rubygems_version: 3.1
|
206
|
-
signing_key:
|
205
|
+
rubygems_version: 3.0.3.1
|
206
|
+
signing_key:
|
207
207
|
specification_version: 4
|
208
208
|
summary: Ruby wrapper for the Redox Engine API
|
209
209
|
test_files: []
|