whiplash-app 0.6.1 → 0.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/errors/whiplash_api_error.rb +5 -0
- data/lib/whiplash/app/version.rb +1 -1
- 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: 3d70f904d63e4b816748c23f7a3287763420f8c222b2e7e4c63519c63614613f
|
4
|
+
data.tar.gz: 3a267c71d211814b6e85bfd8fa8075d1f048a90f936187b4353a0d36bc40b4d2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 27d80f78a200d4d202b1236941ec7b7c5b3b2e185bdcf3c51ba98ce7304010cc258c350f2cf524d684343eae2c8111f837ced586b10fda93439ed2f1e608a556
|
7
|
+
data.tar.gz: 92bcf7a2e0bc197d7b97aba7d4748fe4759b9ede63cf60ec9027645b44ee4155057b2e6b63ed2177b2a6d208fb8563409cf2d7dae0bb68a04cca0e8c0eed8e8c
|
@@ -65,6 +65,10 @@ class WhiplashApiError < StandardError
|
|
65
65
|
class InternalServerError < WhiplashApiError
|
66
66
|
end
|
67
67
|
|
68
|
+
# 502
|
69
|
+
class Timeout < WhiplashApiError
|
70
|
+
end
|
71
|
+
|
68
72
|
# 503
|
69
73
|
class ServiceUnavailable < WhiplashApiError
|
70
74
|
end
|
@@ -88,6 +92,7 @@ class WhiplashApiError < StandardError
|
|
88
92
|
429 => WhiplashApiError::OverRateLimit,
|
89
93
|
495 => WhiplashApiError::SSLError,
|
90
94
|
500 => WhiplashApiError::InternalServerError,
|
95
|
+
502 => WhiplashApiError::Timeout,
|
91
96
|
503 => WhiplashApiError::ServiceUnavailable
|
92
97
|
}
|
93
98
|
end
|
data/lib/whiplash/app/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: whiplash-app
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Don Sullivan, Mark Dickson
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-07-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: oauth2
|