mercadolibre 0.5.1 → 0.5.2

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: 0f066879670fd330780bfa9323262bb0055dadc0
4
- data.tar.gz: a1d5de52be0bbb8701868f619f5854e03facfc8d
3
+ metadata.gz: 3e8bf2e14ad7010294be1ce17b3fffc76a66e5eb
4
+ data.tar.gz: bcf0e017bf293c2764aa7f61b1e1e9afc705fa13
5
5
  SHA512:
6
- metadata.gz: ca497e6c73b4fdca929a854851c1fdd1ff91dd6bb13d5dedf8ebcba804978c0872a520d4be29b39727fa06abdf1be82af99a225e0b646f9a579b40befa94d0ce
7
- data.tar.gz: b81350918a9cb1cb4c7fdf1e8fc5febe0ae9bfd6e1780eb560134438d634c40af10488411d3ec70862c9f24118f11bcb0f84009eb3500b931a1247b05a463a54
6
+ metadata.gz: 3f99dfbdd63a70c4a5e6bbaa5f822b19cebadfd2e5cab1c36f6c3d24154c65d82fa556be593d56a0343c312dca55d806113ca2abab06000d34fd4d71d9d159a1
7
+ data.tar.gz: a4e09907f763c32e53abdd2f1a3ab75605a3dbbd50e20d1d60511439911cb678d4c9c0e1f29172583aacb5b0213a85eab37809c03c7a61931ef53aa9130337ee
data/CHANGELOG.md CHANGED
@@ -113,3 +113,7 @@
113
113
  ## v0.5.1
114
114
 
115
115
  * Fixes on getting orders method
116
+
117
+ ## v0.5.2
118
+
119
+ * Added update shipment method
@@ -7,6 +7,14 @@ module Mercadolibre
7
7
 
8
8
  Mercadolibre::Entity::Shipment.new(r[:body])
9
9
  end
10
+
11
+ def update_shipment(shipment_id, attribs)
12
+ payload = attribs.to_json
13
+
14
+ headers = { content_type: :json, accept: :json }
15
+
16
+ put_request("/shipments/#{shipment_id}?access_token=#{@access_token}", payload, headers)[:body]
17
+ end
10
18
  end
11
19
  end
12
20
  end
@@ -1,3 +1,3 @@
1
1
  module Mercadolibre
2
- VERSION = "0.5.1"
2
+ VERSION = "0.5.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mercadolibre
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matias Hick
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-07 00:00:00.000000000 Z
11
+ date: 2015-01-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler