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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d8da0190bbf1290b7ab365851263186e431ea432
4
- data.tar.gz: b3825b738819036ce9742d4e3dd1ede7c772ee28
3
+ metadata.gz: 1f037361e0da6de341c41089afdb3c73c7acb44d
4
+ data.tar.gz: d7ff387252ff81b841f810623815a9ebba21d4ee
5
5
  SHA512:
6
- metadata.gz: c5f876c8a736230cabdab6b629225e7a72a5b17c2a6c104dbde2a4099c154341ae6fd8ad08a8c5b7a6cc26356bef5ccd19fbdd978105effb110cb7e4d65f22d8
7
- data.tar.gz: 03c1e9e6fc8d68ad4b9d4f2a0ef11d781c1fc5b0b903e36baa1c40cfe26bc5c47a6ecc50910fea8e53cd5533a9a64d04f9d9cc1468ac0eff2d65a5e548c232ba
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
- result = get(url: "#{path}.json", params: { status: status, category: category, page: page, per_page: per_page, pagination: pagination, sort: sort })
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) }
@@ -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.7.gem
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.7'
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.7
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-03 00:00:00.000000000 Z
11
+ date: 2017-05-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client