mercadolibre 2.1.1 → 2.1.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 58a0c01fbb223dd737bb91b1b6cc0c8ab022b1dd
4
- data.tar.gz: dd080f3b6b6078dcee43ca30bcf89cbcfc666f45
3
+ metadata.gz: 57fe3763b3c33e714d5c38ab4bc591c3234de438
4
+ data.tar.gz: 04c0976c9a65c2b5263f388e1804458b6464d6f1
5
5
  SHA512:
6
- metadata.gz: 5a64be042aae91f2e892ba13beba8bc7882303241597274f14e4a15d8f6f8fa2f8d38b811bef2cde01a6a61039cea6abcccdbda5a8ef9f86266ac4067ed2c9f4
7
- data.tar.gz: dab1626c6e6c033fbe0d9bdc1fccd2a3d0ae56859d162f5d2955ce08a4599c1e539ed329501f2af3b049edb3ab7c33ea6c7c90ef9a4fa4331ca408782f2e07b0
6
+ metadata.gz: 3bcf5026dc05a0128892a31df8c288614a7b6c881ba1ad972cfe9895c4394ff53ed5e9b0b0b6460b64af960c15360090b2665e179d48c6dbac43f9c7798bd368
7
+ data.tar.gz: beea42572a11ed8680fd1d1dd58e945005e184c9e7625e75a2ed70c345fa638eaf8c2daa2b09e6c390f6be91ca3a72e4ed9d7fc68a9309617571ef9a1ee55a67
data/CHANGELOG.md CHANGED
@@ -293,3 +293,7 @@
293
293
  ## v2.1.1
294
294
 
295
295
  * Bugfix syntax error
296
+
297
+ ## v2.1.2
298
+
299
+ * Bugfix error with pictures
@@ -15,8 +15,12 @@ module Mercadolibre
15
15
  end
16
16
 
17
17
  def add_item_picture(picture_id, item_id)
18
- curl -X POST -H "Content-Type: application/json" -H "Accept: application/json" -d
19
- '{"id":"MLA430387888_032012"}'
18
+ payload = { id: picture_id }.to_json
19
+
20
+ headers = { content_type: :json }
21
+
22
+ post_request("/items/#{item_id}/pictures?access_token=#{@access_token}",
23
+ payload, headers).body
20
24
  end
21
25
 
22
26
  def replace_item_pictures(item_id, images)
@@ -1,3 +1,3 @@
1
1
  module Mercadolibre
2
- VERSION = '2.1.1'
2
+ VERSION = '2.1.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mercadolibre
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matias Hick