unforlogistics-api 0.9 → 0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/unforlogistics/core/shipment_trips.rb +6 -0
- data/lib/unforlogistics/core/shipments.rb +13 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d500867f866ae27a9c15c2abb0f32465d301ddfb
|
4
|
+
data.tar.gz: ac74ae69d0213193f5fcb39b2ec1eee80cfcbf84
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e6b4ad3597ca766da67beb62d9a29220b40b917979e4d11f0e2fc38c1a97b51266734ff94fb050c22a70650fc1cfe8076231ce2182f5aafa2ba7e22416c1dc6b
|
7
|
+
data.tar.gz: 5c38750144cc19ee2bec79116ef66725629a929925c9b3d7292d399ea8ee039676bb54a5b25fa1c8046fb8fedaf2e107558911a5041da92abcbf1e1edb4f7537
|
data/CHANGELOG.md
CHANGED
@@ -24,7 +24,19 @@ module Unforlogistics
|
|
24
24
|
end
|
25
25
|
|
26
26
|
def quote_shipment(attrs={})
|
27
|
-
post_requests('/shipments/quote', attrs)
|
27
|
+
response = post_requests('/shipments/quote', attrs)
|
28
|
+
|
29
|
+
if response.headers.warning.nil?
|
30
|
+
errors = []
|
31
|
+
else
|
32
|
+
errors = response.headers.warning
|
33
|
+
end
|
34
|
+
|
35
|
+
OpenStruct.new({
|
36
|
+
result: response.body,
|
37
|
+
valid: errors.empty?,
|
38
|
+
errors: errors
|
39
|
+
})
|
28
40
|
end
|
29
41
|
end
|
30
42
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: unforlogistics-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '0.
|
4
|
+
version: '0.10'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matias Hick
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-10-
|
11
|
+
date: 2017-10-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -80,7 +80,7 @@ files:
|
|
80
80
|
- lib/unforlogistics/core/shipment_vehicle_kinds.rb
|
81
81
|
- lib/unforlogistics/core/shipment_zones.rb
|
82
82
|
- lib/unforlogistics/core/shipments.rb
|
83
|
-
homepage: https://github.com/
|
83
|
+
homepage: https://github.com/lhconfort/unforlogistics_gem
|
84
84
|
licenses:
|
85
85
|
- MIT
|
86
86
|
metadata: {}
|