contentful-scheduler-custom 1.6.7.5331 → 1.6.7.5332
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 +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8c7582d20846a5cd6635c9e4ca2499e2b6af71c15151c7185a67daabf2055076
|
4
|
+
data.tar.gz: 5819384ce4283cd0a5838fdba7efc14437f2df1803661f8b95f0df5fecae0e60
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1f15707227e2d1be415e378c2d4044ea058caa26e12174e4fbe1a61e736fd868cf3a26a843ef3bac1bdcf082ef8db3f06586458cad80f153846717429ce58c21
|
7
|
+
data.tar.gz: 201e8b6ad231bb8220a0024c5cdc0dead7bea1777705e7aad96ea923f0726377588868c46962afb03e611a845d108f3623c3e477cfe9e1362c0e4b5813e33149
|
@@ -27,7 +27,7 @@ module Contentful
|
|
27
27
|
linked_enteries = client1.entries(links_to_entry: entry_id)
|
28
28
|
|
29
29
|
if !linked_enteries.raw["includes"].nil? && !linked_enteries.raw["includes"]["Entry"].nil?
|
30
|
-
linkedEnteriesId =
|
30
|
+
linkedEnteriesId = extract_element_ids linked_enteries.raw["includes"]["Entry"]
|
31
31
|
logger.info("Linked enteries are #{linkedEnteriesId}")
|
32
32
|
linkedEnteriesId.each do |id|
|
33
33
|
logger.info"Publishing linked entry with id #{id}"
|
@@ -39,7 +39,7 @@ module Contentful
|
|
39
39
|
|
40
40
|
def self.extract_element_ids input_array
|
41
41
|
ids = []
|
42
|
-
input_array.each {|item| (ids << (
|
42
|
+
input_array.each {|item| (ids << (get_each_field item )).flatten!}
|
43
43
|
return ids.uniq
|
44
44
|
end
|
45
45
|
|
@@ -47,7 +47,7 @@ module Contentful
|
|
47
47
|
logger = Logger.new(STDOUT)
|
48
48
|
ids = []
|
49
49
|
keys = item["fields"].keys
|
50
|
-
keys.each {|key| (ids << (
|
50
|
+
keys.each {|key| (ids << (get_each_element key, item["fields"])).flatten!}
|
51
51
|
logger.info "get_each_field ==> #{ids}"
|
52
52
|
return ids1
|
53
53
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: contentful-scheduler-custom
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.7.
|
4
|
+
version: 1.6.7.5332
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Contentful GmbH (David Litvak Bruno0
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-03-
|
11
|
+
date: 2019-03-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: contentful
|