aboutyou-sdk 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MzNjMzMyNDQzNWNiMWVkNDgxZTYxNTI4NTc3YWY2ZGY3Njk0YjVhNA==
4
+ NGMxY2Q0Y2NjM2Y2OGE0NjljZmU1NmJiNmE2NzhlNjRhNGVkNzA0Mg==
5
5
  data.tar.gz: !binary |-
6
- ZTEyOTg3OGIwN2NjZWNkYTI0MTMwMDFkOTZiNjI0OGU3ZDE2Y2M0Mg==
6
+ N2IwNDVjMjkyMTc3NTQwZGRhNDA2N2Y4YTVmNGM0ZTc3OWY0ZTE5Ng==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NzFkNDBlMDViMWY3NjFmMWE3ZWFhNjY0ZWFlODBlMTcxMzVjM2E2YWVhMTFh
10
- NGMyN2Y3NmMxM2I1NjhlMjY2OWU5MDE5ZGE3MTFkN2I0NjYyNjEwMjRkYTUw
11
- MTIyMzVjNjc1ZjFjMDI2YWQ2Y2EzYTZlN2VhYzgwYjEwNDI0YWU=
9
+ NzI2YjBjY2NkZjBiNzQ4YzczNDViZGQ2YTFjOTc3NjllOTIxNTkwMGUzNTQz
10
+ NjkxNDU4NjZhNWM0YTBjYTFmZWRlMjVmNGZiMmU2MmY0NDJkOTQ0MDNhMTg5
11
+ NGVhMWI5YjZmMmY2NDQ1NmZlNGYyMTY1ZDMyM2RjNTdiOWFhNTA=
12
12
  data.tar.gz: !binary |-
13
- NDEzMDE2NDgxMWRlZDczZmE3MzBmNzU1ZjU0Njk0ZTI2Njc3ZWNlY2FiMzBm
14
- ZWIxZTJiZmU3YTc4NzlmZjljODIyNjdhNGNlZGI3MzRjZDc0NDljNzI2ZDA2
15
- MTM5OWE1MjhhYmMxNWExNjUwOTgwMDE1ZmY1MGE3OGNjY2VlZGY=
13
+ MThlMWVkNmZmYWQzMTBiNDM5OTk0NWIzZjRkMzI0YTI1Mjg5ZWI0ZWU4MGM4
14
+ MWQzZDFmZGFjZmFhODk0ZjNhOTY5NDdjNjg5ZDliZmM1ZmU0ZGE4MDMzYjI3
15
+ ZDhmOGNkOTA5Yjg0ODI5OTdkNjM3M2ZmMmRkYTczYTE2YWJkMDA=
@@ -124,7 +124,6 @@ module AboutYou
124
124
  def fetchProductSearch(criteria)
125
125
 
126
126
  super(criteria);
127
-
128
127
  if (criteria.requiresCategories())
129
128
  self.requireCategoryTree();
130
129
  end
@@ -342,8 +342,7 @@ module AboutYou
342
342
  def fetchProductSearch(criteria)
343
343
 
344
344
  checkSessionId(criteria.sessionId());
345
- self.query.push(Hash['product_search' =>Array(criteria)])
346
-
345
+ self.query.push(Hash['product_search' =>criteria.toArray])
347
346
  return self;
348
347
  end
349
348
 
@@ -361,7 +360,6 @@ module AboutYou
361
360
  end
362
361
 
363
362
  self.query.push(Hash['facets' => Hash['group_ids' => groupids]])
364
- binding.pry
365
363
  return self;
366
364
  end
367
365
 
@@ -26,7 +26,6 @@ shop.result = ""
26
26
  criteria = shop.productSearchCriteria.selectPriceRanges
27
27
 
28
28
  productSearchResult = shop.fetchProductSearch(criteria)
29
- binding.pry
30
29
  productsResult.products.each do |prod|
31
30
  shop.result = shop.result + prod.inspect + '</br>'
32
31
  end
@@ -26,7 +26,6 @@ shop.result = ""
26
26
 
27
27
  variantResult = shop.fetchVariantsByIds([7832543])
28
28
  variantResult.variants.each do |key, variant|
29
- binding.pry
30
29
  shop.result = shop.result + String(variant.id) + '<img src="' + variant.image.url + '">' + '</br>'
31
30
  end
32
31
  get "/" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aboutyou-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ferenc Beutel