carrierbot_api 0.4.0 → 0.5.0

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: 7102e4cf0afd6571dd4729cb73e74aad463ed44eb3739015cdd2c0c30d12fa04
4
- data.tar.gz: 1c9818bfaa3ce9a3b85e892fa4389a8f61b0186b5782c0fc473ce229bf4bd60f
3
+ metadata.gz: e2087178560af2ab6a83751881ff1197ba4e7850490d6fec4ea798acd935c34d
4
+ data.tar.gz: 0c3c3025b78766227204782bde7bbc848e03f3e42b23d39f6be81604d9a4117e
5
5
  SHA512:
6
- metadata.gz: 889627e2ab2f28ac41d11515cb93479b13fd838cfe7adf9115ad5a504ea9402386024652bb81637bdb7ee67943cc757669a5567df7d4f84558c4e1458b718880
7
- data.tar.gz: 306d403433f11642e2d08f1bc5b912e4e92d1e6a5f0e5426a8e5691622d54ff5707c776c248a701a6c3659bc36e00374e5125d3fb9116f76ca4a9eb761e54ac2
6
+ metadata.gz: fc7e2118e64191a03daa5472a3965a6cc3ad5a5d6f3c2070a45320ef52df22735322ee33ba87f97a591487628fc0d829e4c4de3b239dc2b16e335338c1cb4bb9
7
+ data.tar.gz: e2ce96b33a8b7bc43d88ffd482bdfc3748dd893625caf57a0f8624ad7580e4a860d532d49d9805e3de8c71521ee4b594e05779d36a39bdf5eb5ca80e45506d79
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- carrierbot_api (0.3.0)
4
+ carrierbot_api (0.5.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -19,4 +19,4 @@ DEPENDENCIES
19
19
  rake (~> 10.0)
20
20
 
21
21
  BUNDLED WITH
22
- 1.16.6
22
+ 1.17.2
@@ -40,7 +40,6 @@ module CarrierBotAPI
40
40
 
41
41
  request = {
42
42
  'rate': {
43
- 'is_batch': is_batch,
44
43
  'origin': @origin.to_json,
45
44
  'destination': destination&.to_json,
46
45
  'items': items.map(&:to_json),
@@ -61,15 +60,12 @@ module CarrierBotAPI
61
60
  conn = Faraday.new(url: @url)
62
61
 
63
62
  request = {
64
- 'rate': {
65
- 'is_batch': true,
66
63
  'origin': @origin.to_json,
67
64
  'fulfillments': fulfillments.map(&:to_json),
68
65
  'currency': 'JPY', 'locale': 'en'
69
- }
70
66
  }
71
67
 
72
- response = conn.post '/api/v1/requests', request
68
+ response = conn.post '/api/v1/batch_requests', request
73
69
  raise "could not retrieve shipping rates - #{response.reason_phrase}\nrequest: #{request}" \
74
70
  unless response.success?
75
71
 
@@ -1,3 +1,3 @@
1
1
  module CarrierBotAPI
2
- VERSION = "0.4.0"
2
+ VERSION = "0.5.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: carrierbot_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shaun
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-06-16 00:00:00.000000000 Z
11
+ date: 2020-06-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -99,8 +99,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
99
99
  - !ruby/object:Gem::Version
100
100
  version: '0'
101
101
  requirements: []
102
- rubyforge_project:
103
- rubygems_version: 2.7.8
102
+ rubygems_version: 3.0.3
104
103
  signing_key:
105
104
  specification_version: 4
106
105
  summary: Connect to CarrierBot API