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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3cc943459cb2991339635865737e7534c992ada6
4
- data.tar.gz: df12b17f558e20b5bda04decacaf571e799d88c0
3
+ metadata.gz: 9fe7d2b60e3c1e32988c5739f9a6dd9dd4a4280d
4
+ data.tar.gz: 5e97201c9129ff2b9e8e4db73719ceabcfe61868
5
5
  SHA512:
6
- metadata.gz: c23640ed4c179ed52d5b0074ab264c4f9d53410ff27f072fecebe6658eb2f11980b3391fd19ca133e5154a4250a96515c437c5b5877d811abe282a0b49945172
7
- data.tar.gz: 8161831a0b1849cd496678d434d25eedd41d4a0af8ed08fdf6ed01af23ff5ec7203ad31fa293367d4ad4efb954eb6d07dad4ea8f6ccc2e470bc33b4c5aacc509
6
+ metadata.gz: 593ae8e9bb26561f15ac18457c36886132e9773fa16dc40784db6c3a94cfccfd9c33e82ab1560f38accff46ad24d615e7cc0553b1a61b81369bca77e9d77b8bc
7
+ data.tar.gz: 8faa6c750586a8b621eba82e86f3d86a341e094c3ef0e6c3daf47fafd241853b3b64c4e88c3706bbdb5cb3e6853bdd72996766234a5655696850ae102d71bbcc
data/CHANGELOG.md CHANGED
@@ -149,3 +149,7 @@
149
149
  ## v0.8.3
150
150
 
151
151
  * Added attributes to item entity
152
+
153
+ ## v0.8.4
154
+
155
+ * Added method to get seller by nickname
@@ -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
 
@@ -1,3 +1,3 @@
1
1
  module Mercadolibre
2
- VERSION = "0.8.3"
2
+ VERSION = "0.8.4"
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.8.3
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-03-31 00:00:00.000000000 Z
11
+ date: 2016-04-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler