dear_inventory 1.5.2 → 1.5.3
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/lib/dear_inventory/response.rb +3 -0
- data/lib/dear_inventory/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: 7e5cb2ffdff24260bcc6c5b578dc75a7f0f2c0162d842a6f00190bbfce621899
|
|
4
|
+
data.tar.gz: 1288ddd4dcc8b506591ac94a1ccf7daa8042227fababdf3ce9e9be010a67a097
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 13369a2e2e7a1fbedcfc29b3b801ab0fa400f61ba0f35bac2417c0a5b52019f8569c0f33847639adb942151e3d678d7091a5ff1f26ce549ffaee17747d112952
|
|
7
|
+
data.tar.gz: eae8c28613ccc920daa9a44497ae8417506883dea7c6c79ac979d0066c0b2cb3d18be614753d280ea294e359d0ca6ede59ac278d8f22426e1c7d9c1d5991f4ae
|
|
@@ -134,6 +134,9 @@ module DearInventory
|
|
|
134
134
|
def raise_error
|
|
135
135
|
raise DearInventory::BadRequestError.new(error, self) if http_status == 400
|
|
136
136
|
|
|
137
|
+
# Cin7 reported the rate limit as a 503 until 2026. The message is still
|
|
138
|
+
# checked for that status because a 503 is also a genuine outage
|
|
139
|
+
raise DearInventory::APILimitError if http_status == 429
|
|
137
140
|
raise DearInventory::APILimitError if http_status == 503 && error == API_LIMIT_ERROR
|
|
138
141
|
|
|
139
142
|
raise DearInventory::Error.
|