shopify_api_bruv 0.2.2 → 0.2.4

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: 38efd46bd4364767f9f3ab83f500fc9a7dd4361e80023eaf2587fd66d5dff380
4
- data.tar.gz: a2f7d1f2e9a218dff3b96e123040ba8e06333f828b74a25b46decf27d791c025
3
+ metadata.gz: e1b6f7e063b556eb6732016cdd66426705db2f53fd9bc9844018f6b7ff93010d
4
+ data.tar.gz: a20c065d815f4beb997b0420cdee16b905ffcb919f22f97fa21ede0a39bc26f0
5
5
  SHA512:
6
- metadata.gz: 56d43835d001e36aea5beec0d02f5d3c9f0ecb47808167a0b48a2050905e1bd187cb0532b9e84d239d769e035f7254a599cdf18b802be3abca930abb90c40666
7
- data.tar.gz: 06076ae61c40e87ec4802f89ebe8c9196c347e5c5d4f3ce3a6dface969badf10aa489ebf579f69da1bfb6db987d666f1d50019d0efc361bfff9a534b1c2d16be
6
+ metadata.gz: 9a1093b27403f929bbf6a2026c77fd3cd374f21582d4fc2d36f6c53e9789560dcfeaa3c9c6811e911949802b5a029a3bd036176ac7e55e1aaca6a22709a9259d
7
+ data.tar.gz: f016c5a2ef65da06fbb524a096839194c1812b1d234564bc2142f9f7e399a2604b8c2a96eb3483e49361885b1dadaa83e4596c3ecea74e194bfb6332bbe68fce
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.2.4] - 2023-12-09
4
+
5
+ - Updates rest resource response to include page info
6
+
7
+ ## [0.2.3] - 2023-12-09
8
+
9
+ - Updates http response error message
10
+
3
11
  ## [0.2.2] - 2023-12-09
4
12
 
5
13
  - Adds page info to http response
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- shopify_api_bruv (0.2.2)
4
+ shopify_api_bruv (0.2.4)
5
5
  httparty
6
6
  logger
7
7
 
@@ -48,7 +48,9 @@ module ShopifyApiBruv
48
48
  def validate!
49
49
  return if ok?
50
50
 
51
- raise Errors::HttpResponseError, self
51
+ errors = body['errors'] || ''
52
+
53
+ raise Errors::HttpResponseError, errors
52
54
  end
53
55
  end
54
56
  end
@@ -36,7 +36,9 @@ module ShopifyApiBruv
36
36
  def handle_response(response:)
37
37
  handle_response_api_limits(headers: response.headers)
38
38
 
39
- response.body
39
+ body = response.body
40
+ body['page_info'] = response.page_info if body.is_a?(Hash)
41
+ body
40
42
  end
41
43
 
42
44
  def handle_response_api_limits(headers:)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ShopifyApiBruv
4
- VERSION = '0.2.2'
4
+ VERSION = '0.2.4'
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.2.2
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Idjent