shopify-client 0.0.5 → 0.0.6
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/shopify-client/response.rb +11 -0
- data/lib/shopify-client/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: 818841a24a7d51fd3a425b4a0c55f42ee67c00ce4c63266bb9ca3c1b1d5ba9e7
|
|
4
|
+
data.tar.gz: 18b286b836e472ea6842082012f57e3b6c762d32999cb9e4e3f3c03ea01225d0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b71e062da5ded3d0689375261147a516eeb6b6135f9ca9cb94cc1a47fb4440aabc050e81b4cc64838f35f825d98af9cafec896354d4c80a6221a7f68cab75e21
|
|
7
|
+
data.tar.gz: 55adbc9bed92f981a939fb64a3bff3e743d4967164545bc9fe7d7820f7498c51a376594abd96f07274a124020f36ffb1c859df7cb44f5cdf46074f38af242ba6
|
|
@@ -72,6 +72,15 @@ module ShopifyClient
|
|
|
72
72
|
end
|
|
73
73
|
when 423
|
|
74
74
|
raise ShopError.new(request, self), 'Shop is locked'
|
|
75
|
+
when 430
|
|
76
|
+
# NOTE: This is an unofficial code used by Shopify. See:
|
|
77
|
+
#
|
|
78
|
+
# https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#Unofficial_codes
|
|
79
|
+
#
|
|
80
|
+
# It's undocumented unfortunately, but seems to be like a 429 response,
|
|
81
|
+
# except where the app is making too many API calls (rather than hitting
|
|
82
|
+
# the per store rate limit).
|
|
83
|
+
raise TooManyRequestsError.new(request, self), 'Too many requests'
|
|
75
84
|
when 400..499
|
|
76
85
|
raise ClientError.new(request, self)
|
|
77
86
|
when 500..599
|
|
@@ -183,6 +192,8 @@ module ShopifyClient
|
|
|
183
192
|
InvalidAccessTokenError = Class.new(ClientError)
|
|
184
193
|
# The shop is frozen/locked/unavailable.
|
|
185
194
|
ShopError = Class.new(ClientError)
|
|
195
|
+
# The app is making too many requests to the API.
|
|
196
|
+
TooManyRequestsError = Class.new(ClientError)
|
|
186
197
|
|
|
187
198
|
# The GraphQL API always responds with a status code of 200.
|
|
188
199
|
GraphQLClientError = Class.new(ClientError) do
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: shopify-client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Kelsey Judson
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-
|
|
11
|
+
date: 2021-09-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: dotenv
|