rdstation-ruby-client 2.3.0 → 2.3.1
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/CHANGELOG.md +4 -0
- data/lib/rdstation/error.rb +1 -0
- data/lib/rdstation/error_handler.rb +2 -0
- data/lib/rdstation/version.rb +1 -1
- data/spec/lib/rdstation/error_handler_spec.rb +9 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b6526c586f6fb45ddb0851311da56f9525ca352eb2383dd46e746fe98c9642f7
|
4
|
+
data.tar.gz: c539bb37a63551c67b2e5d376bf08855f2a1a7371232b4490f7b3c06b1976c02
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c6c7f1555c420ac06ee04bfe1d2ff5596c4a7d92dd39990b1221ff386247dcf3142b78c065190030856183f2b0878f0bcaae55e0b01889e738a04dc735704767
|
7
|
+
data.tar.gz: e6fd2530aa309a93dac05b913ca7ab527d740ebd20fe640ea3c5fd87fe4449943a6c501d3902d2f9ecd40b79caa4431df143baccda99d642b3fe37ae13e25a20
|
data/CHANGELOG.md
CHANGED
data/lib/rdstation/error.rb
CHANGED
data/lib/rdstation/version.rb
CHANGED
@@ -151,6 +151,7 @@ RSpec.describe RDStation::ErrorHandler do
|
|
151
151
|
expect { error_handler.raise_error }.to raise_error(RDStation::Error::ServiceUnavailable, 'Error Message')
|
152
152
|
end
|
153
153
|
end
|
154
|
+
|
154
155
|
context 'with 5xx error' do
|
155
156
|
let(:http_status) { 505 }
|
156
157
|
|
@@ -172,5 +173,13 @@ RSpec.describe RDStation::ErrorHandler do
|
|
172
173
|
expect { error_handler.raise_error }.to raise_error(RDStation::Error::BadGateway, '<html><body>HTML error response</body></html>')
|
173
174
|
end
|
174
175
|
end
|
176
|
+
|
177
|
+
context 'with an unknown error' do
|
178
|
+
let(:http_status) { 123 }
|
179
|
+
|
180
|
+
it 'raises a unknown error' do
|
181
|
+
expect { error_handler.raise_error }.to raise_error(RDStation::Error::UnknownError, 'Error Message')
|
182
|
+
end
|
183
|
+
end
|
175
184
|
end
|
176
185
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rdstation-ruby-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.3.
|
4
|
+
version: 2.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Paulo L F Casaretto
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-08-
|
11
|
+
date: 2020-08-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|