contentful-scheduler-custom 1.6.7.5344 → 1.6.7.5345
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 +4 -4
- data/lib/contentful/scheduler/tasks/publish.rb +5 -1
- data/lib/contentful/scheduler/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8f216d075f7a9f027f9dba4d325b9bc11a0cd9556e5bc5622522cca50d91e28d
|
4
|
+
data.tar.gz: e4ec9207088a9209adae2c7dcdea58d3cdf0a9da8927705da1c8347b2e3c685d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c0024035b400ed1b4506953ceac8317ca2e94a56c8e0e3f77155d3aab81d4415efec5d06e24d6b43053df76bd5d5612d429130c9d4d92147c3bcf33e73f3d4fa
|
7
|
+
data.tar.gz: dfe85b6cf2bb836a72addd346ebba6948f1fe7a927b81ae38cb8a3c89f4c2f6e015c8f8a7a41860fda2a8214eb56394f3273ac4a153e62e17b82202365d23ab3
|
@@ -63,8 +63,12 @@ module Contentful
|
|
63
63
|
logger.info("get_each_element input key is #{key} and item is #{item}")
|
64
64
|
ids = []
|
65
65
|
if item[key].kind_of?(Array)
|
66
|
-
item[key].each
|
66
|
+
item[key].each do |i|
|
67
|
+
logger.info("Inside get_each_element for type Array #{i}")
|
68
|
+
(!(i["sys"]["linkType"].nil?) && i["sys"]["linkType"] == "Entry") ? ids.push(i["sys"]["id"]) : nil
|
69
|
+
end
|
67
70
|
elsif item[key].kind_of?(Hash)
|
71
|
+
logger.info("Inside get_each_element for type Hash #{item[key]}")
|
68
72
|
(!( item[key]["sys"]["linkType"].nil? ) && item[key]["sys"]["linkType"] == "Entry") ? ids.push(item[key]["sys"]["id"]) : nil
|
69
73
|
end
|
70
74
|
logger.info "get_each_element ids are ==> #{ids}"
|