roqua-healthy 1.5.7 → 1.5.8

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA256:
3
- metadata.gz: 188f815aa06bc9810fe1218d215bc2d8b0444945a4665c1bb35546bcc8e800b8
4
- data.tar.gz: 8665aacab360207c3bf22037910a4fc58544aebed4f9f5e63b24fb997f7fddbe
2
+ SHA1:
3
+ metadata.gz: a7726826aeb7ed397e96265164cfd6e3dfa1658b
4
+ data.tar.gz: b8cde751338d1edce71741669c1e1dd0c425d480
5
5
  SHA512:
6
- metadata.gz: f2a6638530dec574f3be0fcd81e534f73d2654af4f5be160d5c933474e8f6db45d49911cd043ad27aabecc8d7ecb42ca1a80d78415c0644e51d19a998510dfe1
7
- data.tar.gz: f74860226be11358e36f2d69acfddf1f7cc20efa5ad439f4e5694c934c477c24ab89b9964442f60ec8fd1efa28a8586ae07a584c0080b31e2c0b91af0037db75
6
+ metadata.gz: c016d088616694bb7898579e72669afe500f7f37f55e0c20285682204e4d23f961c0c8c23e3498c5fc7ef39b813e823ab932cefef516ce09a336aa7ed0484fdd
7
+ data.tar.gz: 6dfddbeb4a7bd39cc303a41be2d6017563223d56fc4374a28a0fdb69b575a47445ae680fbc7dbf5a8df60117fa2ba241c437cd8699f999376b1d188cf0829133
@@ -9,6 +9,7 @@ module Roqua
9
9
  class Timeout < ConnectionError; end
10
10
  class HostUnreachable < ConnectionError; end
11
11
  class ConnectionRefused < ConnectionError; end
12
+ class NoRouteToHost < ConnectionError; end
12
13
 
13
14
  class UnknownFailure < Error; end
14
15
  class PatientIdNotInRemote < Error; end
@@ -46,6 +47,8 @@ module Roqua
46
47
  ::Roqua::Healthy::ConnectionRefused,
47
48
  'ERROR: ConnectException: Connection refused' =>
48
49
  ::Roqua::Healthy::ConnectionRefused,
50
+ 'ERROR: NoRouteToHostException: No route to host' =>
51
+ ::Roqua::Healthy::NoRouteToHost,
49
52
  "ERROR: NACK sent from receiver. (Rejected)" =>
50
53
  ::Roqua::Healthy::NACK,
51
54
  "ERROR: NACK sent from receiver. (Error)" => # ie. Patient not found
@@ -2,6 +2,6 @@
2
2
  module Roqua
3
3
  module Healthy
4
4
  # healthy version
5
- VERSION = "1.5.7"
5
+ VERSION = "1.5.8"
6
6
  end
7
7
  end
@@ -31,17 +31,23 @@ describe Roqua::Healthy::A19::ResponseValidator do
31
31
  end
32
32
 
33
33
  context "Unable to connect to destination\tConnectException\tConnection refused" do
34
- it 'raises ::Roqua::Healthy::Timeout' do
34
+ it 'raises ::Roqua::Healthy::ConnectionRefused' do
35
35
  expect { subject.validate }.to raise_error(::Roqua::Healthy::ConnectionRefused)
36
36
  end
37
37
  end
38
38
 
39
39
  context 'ERROR: ConnectException: Connection refused' do
40
- it 'raises ::Roqua::Healthy::Timeout' do
40
+ it 'raises ::Roqua::Healthy::ConnectionRefused' do
41
41
  expect { subject.validate }.to raise_error(::Roqua::Healthy::ConnectionRefused)
42
42
  end
43
43
  end
44
44
 
45
+ context 'ERROR: NoRouteToHostException: No route to host' do
46
+ it 'raises ::Roqua::Healthy::NoRouteToHost' do
47
+ expect { subject.validate }.to raise_error(::Roqua::Healthy::NoRouteToHost)
48
+ end
49
+ end
50
+
45
51
  context "ERROR: NACK sent from receiver. (Rejected)" do
46
52
  it 'raises ::Roqua::Healthy::NACK' do
47
53
  expect { subject.validate }.to raise_error(::Roqua::Healthy::NACK)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: roqua-healthy
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.7
4
+ version: 1.5.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marten Veldthuis
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2018-05-24 00:00:00.000000000 Z
14
+ date: 2018-08-21 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: activesupport
@@ -408,7 +408,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
408
408
  version: '0'
409
409
  requirements: []
410
410
  rubyforge_project:
411
- rubygems_version: 2.7.6
411
+ rubygems_version: 2.5.2
412
412
  signing_key:
413
413
  specification_version: 4
414
414
  summary: Arranges communication between Mirth and RoQua