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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cab68553f46a24e50cfe0e70ea0408c82dc8e3cf05510b4cdf46c6e1fe08bc90
4
- data.tar.gz: 8f1a4b53abb6eeb8655dd0ee8e32592399810108d34fff20412df491c29306ab
3
+ metadata.gz: 7e5cb2ffdff24260bcc6c5b578dc75a7f0f2c0162d842a6f00190bbfce621899
4
+ data.tar.gz: 1288ddd4dcc8b506591ac94a1ccf7daa8042227fababdf3ce9e9be010a67a097
5
5
  SHA512:
6
- metadata.gz: ceb5f12c7f4ce1047a938f8104a9408be2d4b8b31396d429fc1dc1b49cdbb13611c4c53c7fe0a8622e7f7a08d1b364ec2a4c672fe78e9db7c4a00eb7dda74c92
7
- data.tar.gz: 182ff3b147f47cf471a1e1bf95a1e47af75fe201d25f2f5f9e335e9d95821d824f630246db50ff51d09b1d2171c0303afaeccdd8313e21c36b0777077df1a097
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.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DearInventory
4
- VERSION = "1.5.2"
4
+ VERSION = "1.5.3"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dear_inventory
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.2
4
+ version: 1.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Rice