lucid_shopify 0.25.0 → 0.26.0
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/lucid_shopify/response.rb +5 -3
- 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: e5f7bc0a5a0d0b523e0f3da1711e91adb48a9a73b93b237e827916ef9ad97015
|
4
|
+
data.tar.gz: 7718a0112ed5e024c26d0eccb34a98940a05043d7efa7b5e0038d02271ecf546
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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,
|
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
|
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.
|
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-
|
11
|
+
date: 2019-05-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dotenv
|