lucid-shopify 0.61.0 → 0.61.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lucid/shopify/response.rb +8 -1
- data/lib/lucid/shopify/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: d59c069d078e6fa47fe962a4d5ad0f14a3c78f7b6a727c66d6dfae0097fad9ec
|
4
|
+
data.tar.gz: 851bace61bdcaedaeb9b48270336caa77ebd13754118080b67d7c6bcad84ef05
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4d3a9ea60b994ca6e5ae84122955ddfcc47b189d8bad46378bea6133595d1ce24ae54f7add5240a183e24f0f8d3269623718f8b7b83f6b624bd4f0591f3b8d7d
|
7
|
+
data.tar.gz: e5e04c7dd54caf988cfdeec9257f97ec0a9aa28e647d85c7882440233e182a837590b31d209c7fd59e58beb132bf9d3ce62de4862efb09d5aa8f1fd813d551c7
|
@@ -111,11 +111,18 @@ module Lucid
|
|
111
111
|
# @raise [ClientError] for status 4xx
|
112
112
|
# @raise [ServerError] for status 5xx
|
113
113
|
#
|
114
|
-
# @note https://
|
114
|
+
# @note https://shopify.dev/concepts/about-apis/response-codes
|
115
115
|
def assert!
|
116
116
|
case status_code
|
117
117
|
when 402
|
118
118
|
raise ShopError.new(request, self), 'Shop is frozen, awaiting payment'
|
119
|
+
when 403
|
120
|
+
# NOTE: Not sure what this one means (undocumented).
|
121
|
+
if data_hash['errors'] =~ /unavailable shop/i
|
122
|
+
raise ShopError.new(request, self), 'Shop is unavailable'
|
123
|
+
else
|
124
|
+
raise ClientError.new(request, self)
|
125
|
+
end
|
119
126
|
when 423
|
120
127
|
raise ShopError.new(request, self), 'Shop is locked'
|
121
128
|
when 400..499
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lucid-shopify
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.61.
|
4
|
+
version: 0.61.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kelsey Judson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-03-
|
11
|
+
date: 2020-03-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dotenv
|