tophatter-merchant 1.1.7 → 1.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tophatter_merchant/product.rb +12 -2
- data/tophatter-merchant.gemspec +2 -2
- 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: 1f037361e0da6de341c41089afdb3c73c7acb44d
|
4
|
+
data.tar.gz: d7ff387252ff81b841f810623815a9ebba21d4ee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ae9136fb7662591a6f9e368b5f6dc73a1ba121a43d8ebb63117c9bcfc1f3e446a61740ba025e0ec26b8a7dab7dca4f6b297919af00140ba38388e6ea66b96414
|
7
|
+
data.tar.gz: 152fac1792f2a975da50945daa7de743690a2f501d725d94482aff19839d01e489465a44e648ea4819e80edc4e0cb4b9aa7c3582ba52988e1c0ac81bccb93baa
|
@@ -53,8 +53,18 @@ module TophatterMerchant
|
|
53
53
|
end
|
54
54
|
|
55
55
|
# ap TophatterMerchant::Product.all.map(&:to_h)
|
56
|
-
def all(status: nil, category: nil, page: 1, per_page: 50, pagination: nil, sort: nil)
|
57
|
-
|
56
|
+
def all(status: nil, category: nil, health_status: nil, page: 1, per_page: 50, pagination: nil, sort: nil)
|
57
|
+
params = {
|
58
|
+
status: status,
|
59
|
+
category: category,
|
60
|
+
health_status: health_status,
|
61
|
+
page: page,
|
62
|
+
per_page: per_page,
|
63
|
+
pagination: pagination,
|
64
|
+
sort: sort
|
65
|
+
}
|
66
|
+
|
67
|
+
result = get(url: "#{path}.json", params: params)
|
58
68
|
|
59
69
|
if pagination.present?
|
60
70
|
result['results'] = result['results'].map { |hash| Product.new(hash) }
|
data/tophatter-merchant.gemspec
CHANGED
@@ -2,10 +2,10 @@
|
|
2
2
|
|
3
3
|
# To publish the next version:
|
4
4
|
# gem build tophatter-merchant.gemspec
|
5
|
-
# gem push tophatter-merchant-1.1.
|
5
|
+
# gem push tophatter-merchant-1.1.8.gem
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = 'tophatter-merchant'
|
8
|
-
s.version = '1.1.
|
8
|
+
s.version = '1.1.8'
|
9
9
|
s.platform = Gem::Platform::RUBY
|
10
10
|
s.licenses = ['MIT']
|
11
11
|
s.authors = ['Chris Estreich']
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tophatter-merchant
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Estreich
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-05-
|
11
|
+
date: 2017-05-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|