shopify_graphql 0.3.0 → 0.3.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: f83ddde3e8efc1ff6c4a0f3659bd9472dfe913263b7abc0abc1a54d19d53f52b
4
- data.tar.gz: d11009b737947b6ae12f6a937fc20f31f95c3b1ab24789ddb029c5cf67c88bd3
3
+ metadata.gz: 6213e77b899e112f4e032f5dc5ac35dd488822180c1ec88602aa2628fa7cbaeb
4
+ data.tar.gz: b1cc79d4ed621d2ebe4d116329bb56d395c770e9d41555db3c15bccec16e2cdc
5
5
  SHA512:
6
- metadata.gz: 63267a73113766a3a219f3d2594ee2a9111487cf46189d9a68185d012fb10d468b9d4e0a268cf49501ed9f0e9af7b1ef7e01d6f0080d4e5487fee7012eb99ca8
7
- data.tar.gz: e3e83f19fa77eb179f15f6331f1850adb6f4841848c0622420afc22808387c48dce1c3de593cdb1330230091d6f79a50e321031b7d4b046b332b4ff01ffebdb7
6
+ metadata.gz: 9f35db71a863859b55142cbb5cf11508e0848668eb06af7f54adba93f476190dd63b22af72822c1b4604b642b221b40e317e779fa7499ac48842daad916d292f
7
+ data.tar.gz: 560cb1f70fd4f201fa9767db74ff2e79c2becb864f7cc5297ef0ecda866ba29d5a202c8bf9ea6df4f9c8a0970b854cb84001d13e795360a5445766d015bf699b
@@ -21,6 +21,10 @@ module ShopifyGraphql
21
21
  private
22
22
 
23
23
  def parse_data(data)
24
+ unless data.node
25
+ raise ResourceNotFound.new(200, "Subscription not found")
26
+ end
27
+
24
28
  OpenStruct.new(
25
29
  subscription: AppSubscriptionFields.parse(data.node),
26
30
  )
@@ -1,3 +1,3 @@
1
1
  module ShopifyGraphql
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shopify_graphql
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kirill Platonov