shopify_api_bruv 0.3.2 → 0.3.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 19a848bdcf14ee4042a43849b80b920783836c6db174bd32354e139201fe159b
4
- data.tar.gz: c19e896c3e1aae699c8dd27b04b3c7dd21b08480aa70b3841e5c9c2c1f6d5f2a
3
+ metadata.gz: 0f6e0d6869a9334e21fa6c70cb741b1834050483e056b7a7de33b4c855696ade
4
+ data.tar.gz: 7bb74655a3b31e03951b2a6e78c1fec74cb02dd8463377b3f8af615e3a05cb7e
5
5
  SHA512:
6
- metadata.gz: 9dbdcedfe8ab7682ee69d54ee0454bd81077ddbae6186b5f436620f4093ed8b7f00e2496e2371f57ee5e730f760563a240f9b4a3b76654a4009d50117f4725d5
7
- data.tar.gz: 01174bf39bed2c243f24b38e217d5b32693e6b37883ee783a68ca0cd7fb841630cdd3dda2f021fa12a6036e4b0bfd22a64c58d3c767f991f912d871de66aec65
6
+ metadata.gz: 6f1fb09bfeee763af03464676cf8d34f011e3351f58d10a0cc180422725ea05edb7721c0a70eae89080cfc7e06a18a61892d4b48ad8be4d95596bfe5ec5263cb
7
+ data.tar.gz: c1f7eabce4c49f817bf5885f469d9bd51e7f5322df51f923d075b469cb72e6e06d395227391347fdfb30828032b26dd1025abb244c921a204ef3afd873269bf6
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.3.3] - 2023-12-10
4
+
5
+ - Updates regex to select mutation object name
6
+
3
7
  ## [0.3.2] - 2023-12-10
4
8
 
5
9
  - Adds better resource class responses
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- shopify_api_bruv (0.3.2)
4
+ shopify_api_bruv (0.3.3)
5
5
  httparty
6
6
  logger
7
7
 
@@ -19,7 +19,7 @@ module ShopifyApiBruv
19
19
  private
20
20
 
21
21
  def parse_body(body:, query:)
22
- mutation_object_name = query.match(/mutation\s+(\w+)\s*\(.*/)&.captures&.first
22
+ mutation_object_name = query.match(/mutation.*{\s+(\w+)\s*\(/)&.captures&.first
23
23
 
24
24
  @data = mutation_object_name.nil? ? body['data'] : body.dig('data', mutation_object_name)
25
25
  @throttle_status = body.dig('extensions', 'cost', 'throttleStatus')
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ShopifyApiBruv
4
- VERSION = '0.3.2'
4
+ VERSION = '0.3.3'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shopify_api_bruv
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Idjent