lucid_shopify 0.24.0 → 0.25.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 +17 -5
- data/lib/lucid_shopify/verify_webhook.rb +1 -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: 0bf829bae7c8435a0181bd954f5a11210fea30f705d3adcc484704e40e6118e6
|
4
|
+
data.tar.gz: a53c213e7779beb6a50630c0bc9ce99f7943055323db7630921b61f3520555cc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: be2041d1b295ba5d7b2ea6993346531da36feb23e980213e63c00b867b9ba0638dc5c78b559c0eec94556a14b3b9e929752e3975cb4fe847e6a382fc5abfbd36
|
7
|
+
data.tar.gz: 92b92f13afe6880a69cd665d2f77a05a702e0d63ccdc5193932e9fa8028832f853d43ee5052942e37f779d4ea89b055a6558a903da1c3b1b2e5f61db7e0fdea9
|
@@ -49,11 +49,6 @@ module LucidShopify
|
|
49
49
|
|
50
50
|
JSON.parse(data)
|
51
51
|
end
|
52
|
-
# private def parse_data(data)
|
53
|
-
# JSON.parse(data)
|
54
|
-
# rescue JSON::ParserError
|
55
|
-
# {}
|
56
|
-
# end
|
57
52
|
|
58
53
|
#
|
59
54
|
# @return [Boolean]
|
@@ -92,5 +87,22 @@ module LucidShopify
|
|
92
87
|
def failure?
|
93
88
|
!success?
|
94
89
|
end
|
90
|
+
|
91
|
+
#
|
92
|
+
# @return [Boolean]
|
93
|
+
#
|
94
|
+
def errors?
|
95
|
+
data_hash.has_key?('errors')
|
96
|
+
end
|
97
|
+
|
98
|
+
#
|
99
|
+
# A string rather than an object is returned by Shopify in the case of,
|
100
|
+
# e.g., 'Not found'.
|
101
|
+
#
|
102
|
+
# @return [Hash, String]
|
103
|
+
#
|
104
|
+
def errors
|
105
|
+
data_hash['errors']
|
106
|
+
end
|
95
107
|
end
|
96
108
|
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.25.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-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dotenv
|