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 +8 -8
- data/lib/AboutYou/Model/products_result.rb +2 -2
- data/lib/aboutyou-sdk.rb +1 -1
- data/tests/Sinatra-test/Main.rb +3 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZTk0NmMzZTNkYmYyYjVmM2U1MmIyNTUwNjQ0OGY5N2ZmZjc2MjhlYQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YmIzNGJiZGQ2OTNiM2M2MzI1OTk2OGM1ODkwMDkxNWRhZDQwMDc4Ng==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZGVjNzEwZDZhNGFkMDI3ODJjNWNmZWMyNWJhYzc4MWZjZjc0ZjU1ZGNlNTI3
|
10
|
+
ZGNjNzYxZmMxY2Y1NWI1M2Y2MDhjNzg5NjA5NTE4ZTEyMzA4NDBlODZhNWE3
|
11
|
+
MzZkYmFmMjY4OWM1ZjI3NjYxMmZiYmY1Y2IxOWIwOTcxMWZjYWY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
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 :
|
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.
|
40
|
+
products_result.ids_not_found.push(key)
|
41
41
|
products_result.errors.push(json_product)
|
42
42
|
next
|
43
43
|
end
|
data/lib/aboutyou-sdk.rb
CHANGED
@@ -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.
|
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 +
|
data/tests/Sinatra-test/Main.rb
CHANGED