contentful-scheduler-custom 1.6.7.5327 → 1.6.7.5328
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 +1 -3
- 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: f816b285d19ce602623aacbdc2d65758a1d9b1d446514b0dfa1aa6cda2a08995
|
4
|
+
data.tar.gz: 1616064e6fe212021e4d7ae20aa858feac50f67e2b7ff435cc7942e2e5b0913f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 02275b1e119e110ff4f2e567535747304c3100e4da28e96a2bcbe716e620768ed4542f1d713881f3fd4a4621b3add87d43068f6353505249d76f620159194de7
|
7
|
+
data.tar.gz: 8a0431422e06c968c5d6693da5405fd18c13447df21fcbfb35e6878e40912d1b0f468389368e278a98ff010c3ff4823aab1ad397068b4059570e22b4c79b0e09
|
@@ -39,8 +39,6 @@ module Contentful
|
|
39
39
|
end
|
40
40
|
|
41
41
|
def self.extract_element_ids input_array
|
42
|
-
logger = Logger.new(STDOUT)
|
43
|
-
logger.info "CHuby raw element is ==> #{input_array}"
|
44
42
|
ids = []
|
45
43
|
input_array.each {|item| (ids << (self.get_each_field item )).flatten!}
|
46
44
|
return ids.uniq
|
@@ -57,13 +55,13 @@ module Contentful
|
|
57
55
|
|
58
56
|
def self.get_each_element key, item
|
59
57
|
logger = Logger.new(STDOUT)
|
60
|
-
logger.info "get_each_element ==> #{key} and #{item}"
|
61
58
|
ids = []
|
62
59
|
if item[key].is_a?(Array)
|
63
60
|
item[key].each {|i| (!(i["sys"]["linkType"].nil?) && i["sys"]["linkType"] == "Entry") ? ids.push(i["sys"]["id"]) : nil}
|
64
61
|
elsif item[key].is_a?(Hash)
|
65
62
|
(!( item[key]["sys"]["linkType"].nil? ) && item[key]["sys"]["linkType"] == "Entry") ? ids.push(item[key]["sys"]["id"]) : nil
|
66
63
|
end
|
64
|
+
logger.info "get_each_element ids are ==> #{ids}"
|
67
65
|
return ids
|
68
66
|
end
|
69
67
|
|