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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/mercadolibre/core/order_management.rb +7 -3
- data/lib/mercadolibre/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0f066879670fd330780bfa9323262bb0055dadc0
|
4
|
+
data.tar.gz: a1d5de52be0bbb8701868f619f5854e03facfc8d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ca497e6c73b4fdca929a854851c1fdd1ff91dd6bb13d5dedf8ebcba804978c0872a520d4be29b39727fa06abdf1be82af99a225e0b646f9a579b40befa94d0ce
|
7
|
+
data.tar.gz: b81350918a9cb1cb4c7fdf1e8fc5febe0ae9bfd6e1780eb560134438d634c40af10488411d3ec70862c9f24118f11bcb0f84009eb3500b931a1247b05a463a54
|
data/CHANGELOG.md
CHANGED
@@ -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
|
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
|
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
|
55
|
+
url = '/orders/search'
|
52
56
|
end
|
53
57
|
|
54
58
|
response = get_request(url, filters)[:body]
|
data/lib/mercadolibre/version.rb
CHANGED
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.
|
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:
|
11
|
+
date: 2015-01-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|