gecko-ruby 0.6.0 → 0.7.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/.travis.yml +1 -2
- data/CHANGELOG.md +4 -0
- data/gecko-ruby.gemspec +1 -1
- data/lib/gecko/record/address.rb +1 -2
- data/lib/gecko/version.rb +1 -1
- data/test/fixtures/vcr_cassettes/addresses.yml +5 -5
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 314ff24f6899ef63c42ad92f0c8154b1100080968181a1c70ee02f88ff923667
|
4
|
+
data.tar.gz: 9cafbeba37cb836c9ea080c09f3d1cd43149c224ad924be0740300853c69da98
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 526e8e4bcde3a4d02bed4accd04ff698c8fa1f377bf164150ed191c056c1868d6452d7418eaf7284b5c55f7e2563e5495a0a73750daae20e486a0b70a038e54c
|
7
|
+
data.tar.gz: d585c2fbb84807b3ec66c5cd06d9fbd5304b32cbdcc77cb76a6d04060a22e8a8f08823354dfbeeffc0b83eca13de2bfc088bc59275b9f2a29899affcb23a0494
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
## 0.7.0 (2019-02-19)
|
2
|
+
- Add new `country_code` attribute to Address model.
|
3
|
+
- Stop testing on Ruby 2.1 and 2.2
|
4
|
+
|
1
5
|
## 0.6.0 (2018-11-13)
|
2
6
|
- Add `Gecko::Record::Webhook` model.
|
3
7
|
- Expose new `available` attribute on a Variant#VariantLocation model, this should remove the need to calculate available stock on the client.
|
data/gecko-ruby.gemspec
CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
|
-
spec.add_development_dependency "bundler"
|
21
|
+
spec.add_development_dependency "bundler"
|
22
22
|
spec.add_development_dependency "rake"
|
23
23
|
spec.add_development_dependency "minitest"
|
24
24
|
spec.add_development_dependency "vcr"
|
data/lib/gecko/record/address.rb
CHANGED
@@ -16,14 +16,13 @@ module Gecko
|
|
16
16
|
attribute :city, String
|
17
17
|
attribute :state, String
|
18
18
|
attribute :country, String
|
19
|
+
attribute :country_code, String
|
19
20
|
attribute :zip_code, String
|
20
21
|
|
21
22
|
attribute :phone_number, String
|
22
23
|
attribute :email, String
|
23
24
|
|
24
25
|
attribute :status, String, readonly: true
|
25
|
-
|
26
|
-
alias_method :country_code, :country
|
27
26
|
end
|
28
27
|
|
29
28
|
class AddressAdapter < BaseAdapter
|
data/lib/gecko/version.rb
CHANGED
@@ -53,15 +53,15 @@ http_interactions:
|
|
53
53
|
- chunked
|
54
54
|
body:
|
55
55
|
encoding: UTF-8
|
56
|
-
string: '{"addresses":[{"id":3,"company_id":3,"city":"Auckland","company_name":"TradeGecko","country":"NZ","label":"Shipping","state":"","address1":"14a
|
56
|
+
string: '{"addresses":[{"id":3,"company_id":3,"city":"Auckland","company_name":"TradeGecko","country":"NZ","country_code":"NZ","label":"Shipping","state":"","address1":"14a
|
57
57
|
York St","address2":null,"suburb":"Parnell","zip_code":"123456","phone_number":null,"email":null,"status":"active"},{"id":42,"company_id":2,"city":"Auckland","company_name":"Saks
|
58
|
-
Fifth Avenue","country":"
|
58
|
+
Fifth Avenue","country":"New Zealand","country_code":"NZ","label":"Billing","state":"","address1":"7 jhsjhsd
|
59
59
|
jsd","address2":null,"suburb":"hernebay","zip_code":"1022","phone_number":null,"email":null,"status":"active"},{"id":43,"company_id":2,"city":"auckland","company_name":"Saks
|
60
|
-
Fifth Avenue","country":"NZL","label":"Shipping","state":"","address1":"65
|
60
|
+
Fifth Avenue","country":"NZL","country_code":"NZ","label":"Shipping","state":"","address1":"65
|
61
61
|
hgsdhsgd","address2":null,"suburb":"ytdy hnb","zip_code":"7637","phone_number":null,"email":null,"status":"active"},{"id":101,"company_id":103,"city":null,"company_name":"Mike''s
|
62
|
-
Bikes","country":null,"label":"Billing Address","state":null,"address1":"234
|
62
|
+
Bikes","country":null,"country_code":null,"label":"Billing Address","state":null,"address1":"234
|
63
63
|
test st","address2":null,"suburb":null,"zip_code":null,"phone_number":null,"email":null,"status":"active"},{"id":102,"company_id":104,"city":null,"company_name":"Stove
|
64
|
-
Top Cafe","country":null,"label":"Billing Address","state":null,"address1":"54
|
64
|
+
Top Cafe","country":null,"country_code":null,"label":"Billing Address","state":null,"address1":"54
|
65
65
|
test st","address2":null,"suburb":null,"zip_code":null,"phone_number":null,"email":null,"status":"active"}]}'
|
66
66
|
http_version:
|
67
67
|
recorded_at: Mon, 03 Mar 2014 03:54:00 GMT
|
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gecko-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.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:
|
11
|
+
date: 2019-02-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '0'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|