gecko-ruby 0.10.0 → 0.11.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0eb1c65172dc30ba079cc816764f1329d5a2bf1f8835b425b9aebcaee117230f
4
- data.tar.gz: c2003acbfe9bc3c7c80497610ae7e4193937d52e7a2e9671f5d9bd38309e8208
3
+ metadata.gz: 57ccb059212f755e0b5199cb01f8b32bc190e3b614ce0fcc8c0f1313363a91bb
4
+ data.tar.gz: 59271e89c7f7ac7217d53f6a44cbb1b6b453ce7d03602b2540490edc67f0abf5
5
5
  SHA512:
6
- metadata.gz: 5e43314e5da9020c7b7440585205aabd7e37342bd0a25a8c56025c6abf2416e347ed591a3293123c5d1934c929c90e64a14cfe6eaa0f902c188943276db1c9c2
7
- data.tar.gz: 1c831c98c2b1cc0cdec7a9fe2ba6c1f70e942eef2b70c201892f124cceee21b2c0ff6d08ea4714119b40d2d0cc1b993258991f92998aac8f066c78924e8e7e9b
6
+ metadata.gz: 0ecc3d0449defcebc48edc48780eeeb9419ca8cc02b7f0b28223725f3722940d1c68fe7280d8c70b4b5ef4ac14f6d0d387ef56c465824f2cc6e03ffc8c7a75f8
7
+ data.tar.gz: 7e8a8f9e96f966c23bc66f7577ae735f0144553bf3011e40784cafd7ce9b4def6b64bb61cfb87b64f8a6cadd1789344268ff66d224c559ee5c9bb55950f0da7f
@@ -1,4 +1,7 @@
1
- ## 0.10.0 (2020-0406)
1
+ ## 0.11.0 (2020-04-29)
2
+ - Store create/update responses under `adapter.last_response` as well.
3
+
4
+ ## 0.10.0 (2020-04-06)
2
5
  - Add extra delegated attributes to invoice record
3
6
  - [BREAKING] Update Image record to latest API with product and multiple variant support
4
7
 
@@ -343,7 +343,7 @@ module Gecko
343
343
  #
344
344
  # @api private
345
345
  def create_record(record, opts = {})
346
- response = request(:post, plural_path, {
346
+ response = @last_response = request(:post, plural_path, {
347
347
  body: record.as_json,
348
348
  raise_errors: false
349
349
  }.merge(headers: headers_from_opts(opts)))
@@ -356,7 +356,7 @@ module Gecko
356
356
  #
357
357
  # @api private
358
358
  def update_record(record, opts = {})
359
- response = request(:put, plural_path + "/" + record.id.to_s, {
359
+ response = @last_response = request(:put, plural_path + "/" + record.id.to_s, {
360
360
  body: record.as_json,
361
361
  raise_errors: false
362
362
  }.merge(headers: headers_from_opts(opts)))
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Gecko
4
- VERSION = '0.10.0'
4
+ VERSION = '0.11.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gecko-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bradley Priest
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-04-06 00:00:00.000000000 Z
11
+ date: 2020-04-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler