mercadolibre 0.5.0 → 0.5.1

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: cbdaa5ab3d6fcadb9ea5222b6bc04fe90575dc0c
4
- data.tar.gz: b911148ea150bb3d1ba9bc5b93ac536e2fe81bfa
3
+ metadata.gz: 0f066879670fd330780bfa9323262bb0055dadc0
4
+ data.tar.gz: a1d5de52be0bbb8701868f619f5854e03facfc8d
5
5
  SHA512:
6
- metadata.gz: e9a62b4f42b58556244ca7f16b424a4ec248798a49ca6b5fcc6087a60fab66e543e8911bb1aefb5de650b8ea738dca95349b05671ab6586c4c33ffce28892566
7
- data.tar.gz: 79931b60f3426e6f18863d7bb41c1637e51c1e63bdbef1edce494cb88b3bd593b7c984bee1f1c3ceb3c731280ac15fe0f8a4f1a7ca19dda9e1044c8b7599e726
6
+ metadata.gz: ca497e6c73b4fdca929a854851c1fdd1ff91dd6bb13d5dedf8ebcba804978c0872a520d4be29b39727fa06abdf1be82af99a225e0b646f9a579b40befa94d0ce
7
+ data.tar.gz: b81350918a9cb1cb4c7fdf1e8fc5febe0ae9bfd6e1780eb560134438d634c40af10488411d3ec70862c9f24118f11bcb0f84009eb3500b931a1247b05a463a54
data/CHANGELOG.md CHANGED
@@ -109,3 +109,7 @@
109
109
  ## v0.5.0
110
110
 
111
111
  * Added get shipment method
112
+
113
+ ## v0.5.1
114
+
115
+ * Fixes on getting orders method
@@ -13,11 +13,13 @@ module Mercadolibre
13
13
  kind = filters.delete(:kind)
14
14
 
15
15
  if kind.to_s == 'recent'
16
- orders_urls = ['/orders/search/recent']
16
+ orders_urls = ['/orders/search']
17
17
  elsif kind.to_s == 'archived'
18
18
  orders_urls = ['/orders/search/archived']
19
+ elsif kind.to_s == 'pending'
20
+ orders_urls = ['/orders/search/pending']
19
21
  else
20
- orders_urls = ['/orders/search/recent', '/orders/search/archived']
22
+ orders_urls = ['/orders/search', '/orders/search/archived', '/orders/search/pending']
21
23
  end
22
24
 
23
25
  orders_urls.each do |orders_url|
@@ -47,8 +49,10 @@ module Mercadolibre
47
49
 
48
50
  if kind.to_s == 'archived'
49
51
  url = '/orders/search/archived'
52
+ elsif kind.to_s == 'pending'
53
+ url = '/orders/search/pending'
50
54
  else
51
- url = '/orders/search/recent'
55
+ url = '/orders/search'
52
56
  end
53
57
 
54
58
  response = get_request(url, filters)[:body]
@@ -1,3 +1,3 @@
1
1
  module Mercadolibre
2
- VERSION = "0.5.0"
2
+ VERSION = "0.5.1"
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.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matias Hick
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-30 00:00:00.000000000 Z
11
+ date: 2015-01-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler