contentful-scheduler-custom 1.6.7.5323 → 1.6.7.5324
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 -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: 8ee47fae68c44de6bdb2fc9d81e86c7354a15b1746b8665e10987ffaf3479d2d
|
4
|
+
data.tar.gz: 97892317e5be4a8bd06d0f192f474c57c5dd99a40653fd5805386e2ce7b3b9a3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1480ff712c6f2a946441dd89b4d16a523e99d087342b80f65a57d45f5c7450106464fcfa140cbfbdbb578ec4f7eafd8674d35009584a57ba4316ef9152b85b19
|
7
|
+
data.tar.gz: 250253f6257e13e725467079da1ead21b911042afcbac558b210cf3776b9f84482e8667379f338d7957ff1b64aec6a4318652812d0e4be0aa122019e0afc6f93
|
@@ -28,7 +28,7 @@ module Contentful
|
|
28
28
|
|
29
29
|
if !linked_enteries.raw["includes"].nil? && !linked_enteries.raw["includes"]["Entry"].nil?
|
30
30
|
logger.info "CHuby raw element is ==> #{linked_enteries.raw["includes"]["Entry"]}"
|
31
|
-
linkedEnteriesId = extract_element_ids(linked_enteries.raw["includes"]["Entry"])
|
31
|
+
linkedEnteriesId = self.extract_element_ids(linked_enteries.raw["includes"]["Entry"])
|
32
32
|
logger.info("Linked enteries are #{linkedEnteriesId}")
|
33
33
|
linkedEnteriesId.each do |id|
|
34
34
|
logger.info"Publishing linked entry with id #{id}"
|
@@ -41,14 +41,14 @@ module Contentful
|
|
41
41
|
|
42
42
|
def self.extract_element_ids input_array
|
43
43
|
ids = []
|
44
|
-
input_array.each {|item| (ids << (get_each_field item )).flatten!}
|
44
|
+
input_array.each {|item| (ids << (self.get_each_field item )).flatten!}
|
45
45
|
return ids.uniq
|
46
46
|
end
|
47
47
|
|
48
48
|
def self.get_each_field item
|
49
49
|
ids = []
|
50
50
|
keys = item["fields"].keys
|
51
|
-
keys.each {|key| (ids << (get_each_element key, item["fields"])).flatten!}
|
51
|
+
keys.each {|key| (ids << (self.get_each_element key, item["fields"])).flatten!}
|
52
52
|
return ids
|
53
53
|
end
|
54
54
|
|