xsys 0.2.15 → 0.3.0

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: fd6df16744ee978c594cb4664b6227fd37a9d313
4
- data.tar.gz: f5f93666d2fc590cf4d6513ca346a4ca0ba8800e
3
+ metadata.gz: e5ba931f38fe81884b85424bafa308391422a5f5
4
+ data.tar.gz: 4e69b9e655c51fe7145a56f195430ff15cf42485
5
5
  SHA512:
6
- metadata.gz: 0ad3fcc91fd3d8576668ecd2c5903e0fa8bb018ab8737ecf736cc61527f23f9832ab85ec6262347ea7a7c9285b7362b8b88ea88988866095251ebbad949963c1
7
- data.tar.gz: 9f6a6f8fd37317e8b822ae424c5f379e1523609d5d9b8e63e96c04345dc2f01f62ce359b0fc7a3aa2a14824af68574e514cdadb7fad9e99b046ad611da77b5c2
6
+ metadata.gz: 7f2ec92654a17d0bb82d1e5074a8a4291e8219663ba8e36cea24ea7b4c491b54981dc88f1c8916ef80a7d70e1c33a8eef2bf9f4cf19da6ba4eaeb9f3f11d15ad
7
+ data.tar.gz: 52c91ce998b5b661f88e23953890989b47558b38d73b0331637043a815d4f81a951ff9f58438749951487d9a46211d26faa6bd9d4b8ef4b6f85858a6054e2a58
data/CHANGELOG.md CHANGED
@@ -177,3 +177,7 @@
177
177
  ## v0.2.15
178
178
 
179
179
  * Added last price update to products
180
+
181
+ ## v0.3.0
182
+
183
+ * Added search by product ids and renamed product search method
data/lib/xsys/api.rb CHANGED
@@ -22,7 +22,7 @@ module Xsys
22
22
  get_request('/api/price_lists')[:body].map { |r| Model::PriceList.new(r) }
23
23
  end
24
24
 
25
- def self.get_products(filters={})
25
+ def self.search_products(filters={})
26
26
  response = get_request('/api/products', filters)
27
27
 
28
28
  if response[:headers][:link]
@@ -35,6 +35,12 @@ module Xsys
35
35
  end
36
36
  end
37
37
 
38
+ def self.search_product_ids(filters={})
39
+ response = get_request('/api/product_ids', filters)
40
+
41
+ response[:body]['product_ids']
42
+ end
43
+
38
44
  def self.get_product(product_id)
39
45
  Model::Product.new(get_request("/api/products/#{product_id}")[:body])
40
46
  end
data/lib/xsys/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Xsys
2
- VERSION = "0.2.15"
2
+ VERSION = "0.3.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xsys
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.15
4
+ version: 0.3.0
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-10-21 00:00:00.000000000 Z
11
+ date: 2014-10-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler