contentful-scheduler-custom 1.6.7.5339 → 1.6.7.5340
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/contentful/scheduler/tasks/publish.rb +3 -0
- 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: 1e1edda96f45b99e46c6235a0ad381e1ee664e37bb6ba5b05270c78eec75675d
|
4
|
+
data.tar.gz: 42725cdd9e9e54831a4505048281e75c1e52b002b9520d3b1644d622b49ef0ce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e45ce1fa28f92546e008d60ce0202b6c8d3600d98795232c587fd3890bc11a0eeecc40551d496bc8d4652822fe378ad39638bda32bf7580d82b7d0578cae598c
|
7
|
+
data.tar.gz: 419d0e20d70ad2f66fbaedb7cd589e6d93a6ecfda9c27de759e1cf0cf355b1b9003f85575923d7b50516111d883c97fa9dd0503f999dd4f2bf49b1b23410fd4a
|
@@ -41,6 +41,7 @@ module Contentful
|
|
41
41
|
private
|
42
42
|
|
43
43
|
def self.extract_element_ids input_array
|
44
|
+
logger.info("Input array is #{input_array}")
|
44
45
|
ids = []
|
45
46
|
input_array.each {|item| (ids << (get_each_field item )).flatten!}
|
46
47
|
return ids.uniq
|
@@ -48,6 +49,7 @@ module Contentful
|
|
48
49
|
|
49
50
|
def self.get_each_field item
|
50
51
|
logger = Logger.new(STDOUT)
|
52
|
+
logger.info("get_each_field input is #{item}")
|
51
53
|
ids = []
|
52
54
|
keys = item["fields"].keys
|
53
55
|
keys.each {|key| (ids << (get_each_element key, item["fields"])).flatten!}
|
@@ -57,6 +59,7 @@ module Contentful
|
|
57
59
|
|
58
60
|
def self.get_each_element key, item
|
59
61
|
logger = Logger.new(STDOUT)
|
62
|
+
logger.info("get_each_element input key is #{key} and item is #{item}")
|
60
63
|
ids = []
|
61
64
|
if item[key].is_a?(Array)
|
62
65
|
item[key].each {|i| (!(i["sys"]["linkType"].nil?) && i["sys"]["linkType"] == "Entry") ? ids.push(i["sys"]["id"]) : nil}
|