lucid_shopify 0.25.0 → 0.26.0

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: 0bf829bae7c8435a0181bd954f5a11210fea30f705d3adcc484704e40e6118e6
4
- data.tar.gz: a53c213e7779beb6a50630c0bc9ce99f7943055323db7630921b61f3520555cc
3
+ metadata.gz: e5f7bc0a5a0d0b523e0f3da1711e91adb48a9a73b93b237e827916ef9ad97015
4
+ data.tar.gz: 7718a0112ed5e024c26d0eccb34a98940a05043d7efa7b5e0038d02271ecf546
5
5
  SHA512:
6
- metadata.gz: be2041d1b295ba5d7b2ea6993346531da36feb23e980213e63c00b867b9ba0638dc5c78b559c0eec94556a14b3b9e929752e3975cb4fe847e6a382fc5abfbd36
7
- data.tar.gz: 92b92f13afe6880a69cd665d2f77a05a702e0d63ccdc5193932e9fa8028832f853d43ee5052942e37f779d4ea89b055a6558a903da1c3b1b2e5f61db7e0fdea9
6
+ metadata.gz: 499b7442f162e6fa9abc2c66709a9e1211e0b29c2ebc5ceca51017416c34b25f79a50ad8f8a2a7b8ff59de11055ea558168a1091c7480fffa19fcbb83be8ee15
7
+ data.tar.gz: 006f11e9ca1d26a0f06cf7d44992de4fa1fe0294ca3c0e6db9a78f8cead0227d2d7219a4968e451c4543e22234e913f00addcd25d262f800c38b0432bd6b1316
@@ -97,12 +97,14 @@ module LucidShopify
97
97
 
98
98
  #
99
99
  # A string rather than an object is returned by Shopify in the case of,
100
- # e.g., 'Not found'.
100
+ # e.g., 'Not found'. In this case, we return it under the 'resource' key.
101
101
  #
102
- # @return [Hash, String]
102
+ # @return [Hash, nil]
103
103
  #
104
104
  def errors
105
- data_hash['errors']
105
+ errors = data_hash['errors']
106
+ return {'resource' => errors} if errors.is_a?(String)
107
+ errors
106
108
  end
107
109
  end
108
110
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module LucidShopify
4
- VERSION = '0.25.0'
4
+ VERSION = '0.26.0'
5
5
  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.25.0
4
+ version: 0.26.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kelsey Judson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-05-08 00:00:00.000000000 Z
11
+ date: 2019-05-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dotenv