mercadolibre 0.1.3 → 0.1.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/LICENSE.md +0 -0
- data/README.md +0 -0
- data/lib/mercadolibre.rb +0 -0
- data/lib/mercadolibre/api.rb +0 -0
- data/lib/mercadolibre/core/auth.rb +0 -0
- data/lib/mercadolibre/core/categories_and_listings.rb +0 -0
- data/lib/mercadolibre/core/items_and_searches.rb +8 -2
- data/lib/mercadolibre/core/locations_and_currencies.rb +0 -0
- data/lib/mercadolibre/core/order_management.rb +0 -0
- data/lib/mercadolibre/core/questions.rb +0 -0
- data/lib/mercadolibre/core/users.rb +0 -0
- data/lib/mercadolibre/entity/answer.rb +0 -0
- data/lib/mercadolibre/entity/auth.rb +0 -0
- data/lib/mercadolibre/entity/category.rb +0 -0
- data/lib/mercadolibre/entity/category_settings.rb +0 -0
- data/lib/mercadolibre/entity/city.rb +0 -0
- data/lib/mercadolibre/entity/country.rb +0 -0
- data/lib/mercadolibre/entity/currency.rb +0 -0
- data/lib/mercadolibre/entity/currency_conversion_ratio.rb +0 -0
- data/lib/mercadolibre/entity/featured_item.rb +0 -0
- data/lib/mercadolibre/entity/feedback.rb +0 -0
- data/lib/mercadolibre/entity/item.rb +0 -0
- data/lib/mercadolibre/entity/item_description.rb +0 -0
- data/lib/mercadolibre/entity/item_picture.rb +0 -0
- data/lib/mercadolibre/entity/listing_exposure.rb +0 -0
- data/lib/mercadolibre/entity/listing_price.rb +0 -0
- data/lib/mercadolibre/entity/listing_type.rb +0 -0
- data/lib/mercadolibre/entity/order.rb +0 -0
- data/lib/mercadolibre/entity/order_item.rb +0 -0
- data/lib/mercadolibre/entity/payment.rb +0 -0
- data/lib/mercadolibre/entity/payment_method.rb +0 -0
- data/lib/mercadolibre/entity/phone.rb +0 -0
- data/lib/mercadolibre/entity/question.rb +0 -0
- data/lib/mercadolibre/entity/site.rb +0 -0
- data/lib/mercadolibre/entity/site_domain.rb +0 -0
- data/lib/mercadolibre/entity/site_trend.rb +0 -0
- data/lib/mercadolibre/entity/state.rb +0 -0
- data/lib/mercadolibre/entity/user.rb +0 -0
- data/lib/mercadolibre/entity/zip_code.rb +0 -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: 1cc3bd551155e1b28cf1242d45e6e10c4471ad7f
|
4
|
+
data.tar.gz: 226d07beb5beefc8c9eaaf668e865537848103ca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 77dd5b72e4a95374aaac1b83b8828a86bc53af41594b42665654ad2bd621f3b11b555ed99561cfe5fef252a4cc46b0045411e5ff467d34694ada453f888bf856
|
7
|
+
data.tar.gz: 313093e85910b129c49a5de34cf044773c039c811a7731511586eb5276e11d2ff948405b237d4b7c988d8eafe86a942d6adde24b6ca01ec02ae11da92869be5f
|
data/CHANGELOG.md
CHANGED
data/LICENSE.md
CHANGED
File without changes
|
data/README.md
CHANGED
File without changes
|
data/lib/mercadolibre.rb
CHANGED
File without changes
|
data/lib/mercadolibre/api.rb
CHANGED
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
|
-
|
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
|
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.1.
|
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-
|
11
|
+
date: 2014-08-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|