shopify_graphql 1.2.1 → 1.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/shopify_graphql/client.rb +2 -2
- data/lib/shopify_graphql/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: 156829c756078d3acf1611b6a913337924259387e7c72968e601020286a49c92
|
4
|
+
data.tar.gz: 1fd62af50279f6ebcb667007265773760a1daa110ad15557a0c95e0fa6ec9fcd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b9741270fd1e3f46d946ab38fa05996717bbaac2057227499260ca737c439c3bbda2b1829d0da299b59f75aa9c2a5cf8df0e716dc564dd256cb88f9d71591003
|
7
|
+
data.tar.gz: d83bb4edb850b5d9aedc11ff519684e242e49623a3f815a018524e45e2b1b0dfa8ebbef9241f66a78f3ae24917702d8e694c774e74f25b015cc7d0f2ef3590ab
|
@@ -11,7 +11,7 @@ module ShopifyGraphql
|
|
11
11
|
Response.new(handle_response(e.response))
|
12
12
|
rescue JSON::ParserError => e
|
13
13
|
raise ServerError.new(e, "Invalid JSON response")
|
14
|
-
rescue Errno::ECONNRESET, Errno::EPIPE, Net::ReadTimeout, Net::OpenTimeout, OpenSSL::SSL::SSLError => e
|
14
|
+
rescue Errno::ECONNRESET, Errno::EPIPE, Errno::ECONNREFUSED, Net::ReadTimeout, Net::OpenTimeout, OpenSSL::SSL::SSLError, EOFError => e
|
15
15
|
raise ServerError.new(e, "Network error")
|
16
16
|
end
|
17
17
|
|
@@ -47,7 +47,7 @@ module ShopifyGraphql
|
|
47
47
|
raise PreconditionFailed.new(parsed_body(response), code: response.code)
|
48
48
|
when 422
|
49
49
|
raise ResourceInvalid.new(parsed_body(response), code: response.code)
|
50
|
-
when 429
|
50
|
+
when 429, 430
|
51
51
|
raise TooManyRequests.new(parsed_body(response), code: response.code)
|
52
52
|
when 401...500
|
53
53
|
raise ClientError.new(parsed_body(response), code: response.code)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shopify_graphql
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kirill Platonov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-03-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|