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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ffa0adb3d84baa78fe2fdbde5edfa2b7197a0a0edc9787eae34c3421b593a89f
4
- data.tar.gz: e06b3011191e2a29568ea4472a585142e4efea6907b9a61c40767bcba08f2cda
3
+ metadata.gz: d59c069d078e6fa47fe962a4d5ad0f14a3c78f7b6a727c66d6dfae0097fad9ec
4
+ data.tar.gz: 851bace61bdcaedaeb9b48270336caa77ebd13754118080b67d7c6bcad84ef05
5
5
  SHA512:
6
- metadata.gz: ff81335689e3fd841c1971eda673028ecfb3d050cd37239459618e9ff3e1f69899496a638ccc371596d2fecaced6df24468727b3a36f005487219522a2acc0ed
7
- data.tar.gz: 877b4689633a3c0535fbee9d412eace6c0d888f85117e998e68b4288ae19c59d59168bef43588ba94e3359abdf7316c01ab4c3669aa63194dc8c69470a6b7ebd
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://help.shopify.com/en/api/getting-started/response-status-codes
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Lucid
4
4
  module Shopify
5
- VERSION = '0.61.0'
5
+ VERSION = '0.61.1'
6
6
  end
7
7
  end
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.0
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-16 00:00:00.000000000 Z
11
+ date: 2020-03-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dotenv