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 +4 -4
- data/CHANGELOG.md +4 -1
- data/lib/gecko/record/base_adapter.rb +2 -2
- data/lib/gecko/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: 57ccb059212f755e0b5199cb01f8b32bc190e3b614ce0fcc8c0f1313363a91bb
|
4
|
+
data.tar.gz: 59271e89c7f7ac7217d53f6a44cbb1b6b453ce7d03602b2540490edc67f0abf5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0ecc3d0449defcebc48edc48780eeeb9419ca8cc02b7f0b28223725f3722940d1c68fe7280d8c70b4b5ef4ac14f6d0d387ef56c465824f2cc6e03ffc8c7a75f8
|
7
|
+
data.tar.gz: 7e8a8f9e96f966c23bc66f7577ae735f0144553bf3011e40784cafd7ce9b4def6b64bb61cfb87b64f8a6cadd1789344268ff66d224c559ee5c9bb55950f0da7f
|
data/CHANGELOG.md
CHANGED
@@ -1,4 +1,7 @@
|
|
1
|
-
## 0.
|
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)))
|
data/lib/gecko/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2020-04-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|