aboutyou-sdk 0.0.30 → 0.0.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NGQwY2IxMmM2YzExZDQzYzBjZmJkNzI4ZjIwM2ZmMWZlZjMwODQyOQ==
4
+ ZTk0NmMzZTNkYmYyYjVmM2U1MmIyNTUwNjQ0OGY5N2ZmZjc2MjhlYQ==
5
5
  data.tar.gz: !binary |-
6
- MDIxYjY3ODZkMGRiYjE2OGZkZjgyMmVlMGIxNTFiMTRjMDk3MDQyYw==
6
+ YmIzNGJiZGQ2OTNiM2M2MzI1OTk2OGM1ODkwMDkxNWRhZDQwMDc4Ng==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MWRiZmU3NjhlMzljODkzODYxMTc2ZWQ5ZDJlOTE4YjM0OTQxYjFhMzg2MTVk
10
- ODM0NzI2MTA4ZGRiMmQzYTliZGZjYzNkMDcyNDhmY2ViYWU4ZjkyNDQ3NTRh
11
- ODZiZDM3MmEwZDVkOThmMjg5NDZhYzhmMWI5YmFjYzFlM2FmMWU=
9
+ ZGVjNzEwZDZhNGFkMDI3ODJjNWNmZWMyNWJhYzc4MWZjZjc0ZjU1ZGNlNTI3
10
+ ZGNjNzYxZmMxY2Y1NWI1M2Y2MDhjNzg5NjA5NTE4ZTEyMzA4NDBlODZhNWE3
11
+ MzZkYmFmMjY4OWM1ZjI3NjYxMmZiYmY1Y2IxOWIwOTcxMWZjYWY=
12
12
  data.tar.gz: !binary |-
13
- ZWFiM2ZlNjVjNjA5OTYzOGU2MjUzZTE4MDA5YzA3YjQ3OGU5MTJhYTI1ZDIw
14
- YzUxYTMwMzZmNDM0NmQ2ODg0Njk3NmQyY2UwNmYxNTRkODc5Nzk0MDEwOTY5
15
- NGVhYWY5MTQyNGMxOGE3Mzc0YWE5NzIxNzljNDhhM2ZmODYyY2Q=
13
+ MzlhOWQ4YzNjOWFkZTk1ZTBlOGE0NTQ0OTZhNzBiNTMwMzQ3ODg0YzNhZDA2
14
+ MjE5NWQ4ZDk1NTdlYmYxNmEzOGU3MTcxYzA0NjE5ZmNiY2UwNGNiNDk3MDQ2
15
+ YWJmNmYzOTc3NGJiOWNmOTk4ZjIxMWRiMGM4ZWQyMDJlYjExZTM=
@@ -8,7 +8,7 @@ module AboutYou
8
8
  include AbstractModel
9
9
 
10
10
  # Array of not found product ids
11
- attr_accessor :productsNotFound
11
+ attr_accessor :ids_not_found
12
12
  # String page hash
13
13
  attr_accessor :page_hash
14
14
  # Array of errors
@@ -37,7 +37,7 @@ module AboutYou
37
37
  if json_object['ids']
38
38
  json_object['ids'].each do |key, json_product|
39
39
  if json_product['error_code']
40
- products_result.productsNotFound.push(key)
40
+ products_result.ids_not_found.push(key)
41
41
  products_result.errors.push(json_product)
42
42
  next
43
43
  end
@@ -332,7 +332,7 @@ class AY
332
332
  # we allow to pass a single ID instead of an array
333
333
  ids = Array(ids)
334
334
  result = query.fetch_products_by_ids(ids, fields).execute_single
335
- products_not_found = result.products_not_found
335
+ products_not_found = result.ids_not_found
336
336
 
337
337
  if !products_not_found.empty? && logger
338
338
  logger.warning('products not found: appid=' + app_id +
@@ -53,4 +53,7 @@ get "/filterByFacetIds" do
53
53
  end
54
54
  get "/docExampleSpellCorrection" do
55
55
  erb :testDocExampleSpellCorrection
56
+ end
57
+ get "/docExampleGettingStarted" do
58
+ erb :docExampleGettingStarted
56
59
  end
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.30
4
+ version: 0.0.31
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ferenc Beutel