mercadolibre 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +4 -0
  3. data/LICENSE.md +0 -0
  4. data/README.md +0 -0
  5. data/lib/mercadolibre.rb +0 -0
  6. data/lib/mercadolibre/api.rb +0 -0
  7. data/lib/mercadolibre/core/auth.rb +0 -0
  8. data/lib/mercadolibre/core/categories_and_listings.rb +0 -0
  9. data/lib/mercadolibre/core/items_and_searches.rb +8 -2
  10. data/lib/mercadolibre/core/locations_and_currencies.rb +0 -0
  11. data/lib/mercadolibre/core/order_management.rb +0 -0
  12. data/lib/mercadolibre/core/questions.rb +0 -0
  13. data/lib/mercadolibre/core/users.rb +0 -0
  14. data/lib/mercadolibre/entity/answer.rb +0 -0
  15. data/lib/mercadolibre/entity/auth.rb +0 -0
  16. data/lib/mercadolibre/entity/category.rb +0 -0
  17. data/lib/mercadolibre/entity/category_settings.rb +0 -0
  18. data/lib/mercadolibre/entity/city.rb +0 -0
  19. data/lib/mercadolibre/entity/country.rb +0 -0
  20. data/lib/mercadolibre/entity/currency.rb +0 -0
  21. data/lib/mercadolibre/entity/currency_conversion_ratio.rb +0 -0
  22. data/lib/mercadolibre/entity/featured_item.rb +0 -0
  23. data/lib/mercadolibre/entity/feedback.rb +0 -0
  24. data/lib/mercadolibre/entity/item.rb +0 -0
  25. data/lib/mercadolibre/entity/item_description.rb +0 -0
  26. data/lib/mercadolibre/entity/item_picture.rb +0 -0
  27. data/lib/mercadolibre/entity/listing_exposure.rb +0 -0
  28. data/lib/mercadolibre/entity/listing_price.rb +0 -0
  29. data/lib/mercadolibre/entity/listing_type.rb +0 -0
  30. data/lib/mercadolibre/entity/order.rb +0 -0
  31. data/lib/mercadolibre/entity/order_item.rb +0 -0
  32. data/lib/mercadolibre/entity/payment.rb +0 -0
  33. data/lib/mercadolibre/entity/payment_method.rb +0 -0
  34. data/lib/mercadolibre/entity/phone.rb +0 -0
  35. data/lib/mercadolibre/entity/question.rb +0 -0
  36. data/lib/mercadolibre/entity/site.rb +0 -0
  37. data/lib/mercadolibre/entity/site_domain.rb +0 -0
  38. data/lib/mercadolibre/entity/site_trend.rb +0 -0
  39. data/lib/mercadolibre/entity/state.rb +0 -0
  40. data/lib/mercadolibre/entity/user.rb +0 -0
  41. data/lib/mercadolibre/entity/zip_code.rb +0 -0
  42. data/lib/mercadolibre/version.rb +1 -1
  43. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1f55e12ed1805a56ca57003c42ea483552dec9aa
4
- data.tar.gz: 78128005581a0c3b6f37a2a71e20829903b1f246
3
+ metadata.gz: 1cc3bd551155e1b28cf1242d45e6e10c4471ad7f
4
+ data.tar.gz: 226d07beb5beefc8c9eaaf668e865537848103ca
5
5
  SHA512:
6
- metadata.gz: e8cff20ef246369203476e3f04d4b97985f9684728696e47cdf5890d05be4aa9573af94628d73a986676161b4fcf33d9a33d72a1d19c2d7c742943ec2e854ee7
7
- data.tar.gz: 0cfd00431f3e32120acb1b9528a4be1e0394aab9da2b3a24522608b13f1086084fc598704aecde488806b1f16b14d0311511da178bace4d4e47a56ba44062d00
6
+ metadata.gz: 77dd5b72e4a95374aaac1b83b8828a86bc53af41594b42665654ad2bd621f3b11b555ed99561cfe5fef252a4cc46b0045411e5ff467d34694ada453f888bf856
7
+ data.tar.gz: 313093e85910b129c49a5de34cf044773c039c811a7731511586eb5276e11d2ff948405b237d4b7c988d8eafe86a942d6adde24b6ca01ec02ae11da92869be5f
data/CHANGELOG.md CHANGED
@@ -49,3 +49,7 @@
49
49
  ## v0.1.3
50
50
 
51
51
  * Fixed questions count method
52
+
53
+ ## v0.1.4
54
+
55
+ * Fixed site trends param
data/LICENSE.md CHANGED
File without changes
data/README.md CHANGED
File without changes
data/lib/mercadolibre.rb CHANGED
File without changes
File without changes
File without changes
File without changes
@@ -114,8 +114,14 @@ module Mercadolibre
114
114
  results[:body].map { |r| Mercadolibre::Entity::FeaturedItem.new(r) }
115
115
  end
116
116
 
117
- def get_site_trends(site_id, category_id)
118
- results = get_request("/sites/#{site_id}/trends/search", { category: category_id })
117
+ def get_site_trends(site_id, category_id=nil)
118
+ if category_id.present?
119
+ params = { category: category_id }
120
+ else
121
+ params = { }
122
+ end
123
+
124
+ results = get_request("/sites/#{site_id}/trends/search", params)
119
125
 
120
126
  results[:body].map { |r| Mercadolibre::Entity::SiteTrend.new(r) }
121
127
  end
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1,3 +1,3 @@
1
1
  module Mercadolibre
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.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.1.3
4
+ version: 0.1.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: 2014-06-02 00:00:00.000000000 Z
11
+ date: 2014-08-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler