unforlogistics-api 0.10 → 0.11

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
  SHA1:
3
- metadata.gz: d500867f866ae27a9c15c2abb0f32465d301ddfb
4
- data.tar.gz: ac74ae69d0213193f5fcb39b2ec1eee80cfcbf84
3
+ metadata.gz: 0f7c016ab826994f4acce3bfb8bbf1898a5c8ac1
4
+ data.tar.gz: 8c8394ac4e9318a536a5def99f58df367788f318
5
5
  SHA512:
6
- metadata.gz: e6b4ad3597ca766da67beb62d9a29220b40b917979e4d11f0e2fc38c1a97b51266734ff94fb050c22a70650fc1cfe8076231ce2182f5aafa2ba7e22416c1dc6b
7
- data.tar.gz: 5c38750144cc19ee2bec79116ef66725629a929925c9b3d7292d399ea8ee039676bb54a5b25fa1c8046fb8fedaf2e107558911a5041da92abcbf1e1edb4f7537
6
+ metadata.gz: 578ca391924e64c19afb8013fda76d599347e9bed6c22dee7c846a884757b6ac1a54d6a923803a2cf2da3ec6e2a82bf4ee0f942d80c889a276684aef1012b095
7
+ data.tar.gz: 90bd3175a52a8fd0e7d206fe97b181b96a4b8f89eb7eadefc0fef503abdc785b4614f3237af1c6abb33e2c781c3a7e2c2f9c21ebf73b9723be58d2f4caa3b13c
data/CHANGELOG.md CHANGED
@@ -37,3 +37,7 @@
37
37
  ## v0.10
38
38
 
39
39
  * Added method to get shipment trips availability, fixed method to quote shipments.
40
+
41
+ ## v0.11
42
+
43
+ * Fix syntax errors on shipments
@@ -2,29 +2,29 @@ module Unforlogistics
2
2
  module Core
3
3
  module Shipments
4
4
  def get_shipments(filters={})
5
- response = get_requests('/shipments', filters)
5
+ response = get_request('/shipments', filters)
6
6
 
7
7
  get_paging_response(response)
8
8
  end
9
9
 
10
10
  def get_shipment(code)
11
- get_requests("/shipments/#{code}").body
11
+ get_request("/shipments/#{code}").body
12
12
  end
13
13
 
14
14
  def create_shipment(attrs={})
15
- response = post_requests('/shipments', attrs)
15
+ response = post_request('/shipments', attrs)
16
16
 
17
17
  get_persistance_response(response)
18
18
  end
19
19
 
20
20
  def cancel_shipment(code)
21
- response = put_requests("/shipments/#{code}/cancellation")
21
+ response = put_request("/shipments/#{code}/cancellation")
22
22
 
23
23
  get_persistance_response(response)
24
24
  end
25
25
 
26
26
  def quote_shipment(attrs={})
27
- response = post_requests('/shipments/quote', attrs)
27
+ response = post_request('/shipments/quote', attrs)
28
28
 
29
29
  if response.headers.warning.nil?
30
30
  errors = []
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unforlogistics-api
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.10'
4
+ version: '0.11'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matias Hick