mercadolibre 0.8.3 → 0.8.4
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/users.rb +9 -0
- 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: 9fe7d2b60e3c1e32988c5739f9a6dd9dd4a4280d
|
4
|
+
data.tar.gz: 5e97201c9129ff2b9e8e4db73719ceabcfe61868
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 593ae8e9bb26561f15ac18457c36886132e9773fa16dc40784db6c3a94cfccfd9c33e82ab1560f38accff46ad24d615e7cc0553b1a61b81369bca77e9d77b8bc
|
7
|
+
data.tar.gz: 8faa6c750586a8b621eba82e86f3d86a341e094c3ef0e6c3daf47fafd241853b3b64c4e88c3706bbdb5cb3e6853bdd72996766234a5655696850ae102d71bbcc
|
data/CHANGELOG.md
CHANGED
@@ -19,6 +19,15 @@ module Mercadolibre
|
|
19
19
|
results[:body].map { |r| Mercadolibre::Entity::User.new(r) }
|
20
20
|
end
|
21
21
|
|
22
|
+
def get_seller(nickname)
|
23
|
+
filters = { nickname: nickname, limit: 0 }
|
24
|
+
response = get_request("/sites/#{@site}/search", filters)[:body]
|
25
|
+
|
26
|
+
Mercadolibre::Entity::User.new(response['seller'].merge({
|
27
|
+
nickname: nickname
|
28
|
+
}))
|
29
|
+
end
|
30
|
+
|
22
31
|
def get_user_accepted_payment_methods(user_id)
|
23
32
|
results = get_request("/users/#{user_id}/accepted_payment_methods")
|
24
33
|
|
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.8.
|
4
|
+
version: 0.8.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matias Hick
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-04-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|