superslice 1.1.0 → 1.1.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/README.md +1 -0
- data/lib/superslice/errors.rb +3 -0
- data/lib/superslice/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 42d4be0fd00ddbd93472cd87597358c2573530013adc2eed469012310392d72f
|
|
4
|
+
data.tar.gz: 51e255d78c2baa1602aa6ff1f630a6dddffde0441766cda4b1f0e7981f6c3c6a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7559ba9e5f3e2dc43989461aa7c8e53fa4e6f97d8dc64ae79313b2c5197578cdde0542c93980d2fc3413d12e5618995f1aac0e31859be1a7b731dba65b855e45
|
|
7
|
+
data.tar.gz: b82b35e39bb647b4b1617d081b0764d63e54f1d087927c350d35c03ace649f5efa4e0f82e657ac8655e87089478b0a0030e62f6b49ac40674702d4588cf916fb
|
data/README.md
CHANGED
|
@@ -123,6 +123,7 @@ Every error is a `Superslice::SupersliceError` with `status`, `code`, `title`, `
|
|
|
123
123
|
| `PermissionError` | 403 |
|
|
124
124
|
| `NotFoundError` | 404 |
|
|
125
125
|
| `ConflictError` | 409 |
|
|
126
|
+
| `RetiredError` | 410: the slicer version named, or every version the organisation picked, has retired |
|
|
126
127
|
| `InvalidRequestError` | 400, 413 |
|
|
127
128
|
| `RateLimitError` | 429 |
|
|
128
129
|
| `ServerError` | 5xx |
|
data/lib/superslice/errors.rb
CHANGED
|
@@ -20,6 +20,8 @@ module Superslice
|
|
|
20
20
|
class PermissionError < SupersliceError; end # 403
|
|
21
21
|
class NotFoundError < SupersliceError; end # 404
|
|
22
22
|
class ConflictError < SupersliceError; end # 409
|
|
23
|
+
# 410: the slicer version named, or every version the organisation picked, has retired. Pick a newer version.
|
|
24
|
+
class RetiredError < SupersliceError; end # 410
|
|
23
25
|
class InvalidRequestError < SupersliceError; end # 400, 413
|
|
24
26
|
class RateLimitError < SupersliceError; end # 429
|
|
25
27
|
class ServerError < SupersliceError; end # 5xx
|
|
@@ -38,6 +40,7 @@ module Superslice
|
|
|
38
40
|
when 403 then PermissionError
|
|
39
41
|
when 404 then NotFoundError
|
|
40
42
|
when 409 then ConflictError
|
|
43
|
+
when 410 then RetiredError
|
|
41
44
|
when 429 then RateLimitError
|
|
42
45
|
when 500..599 then ServerError
|
|
43
46
|
else SupersliceError
|
data/lib/superslice/version.rb
CHANGED