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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9599db36109a6e8192bfba10f2e04c01096a0500708f456089789b765e839762
4
- data.tar.gz: f5032844c973a3111c3cd6856b3de34f5131143d5bfab098d41d6e506759038c
3
+ metadata.gz: 1e1edda96f45b99e46c6235a0ad381e1ee664e37bb6ba5b05270c78eec75675d
4
+ data.tar.gz: 42725cdd9e9e54831a4505048281e75c1e52b002b9520d3b1644d622b49ef0ce
5
5
  SHA512:
6
- metadata.gz: 02d0545fedae2da5a0f4bcc1c7974636b9412df289ee7a3710c30baa020154de779086366b1b951400184fc3368808345138b05c4441433ae2970ad9644444c6
7
- data.tar.gz: f8fa2c2d97847951d999e32dc87f6f94c652518ac36e663190ebc7fcac25ab9619bbce847116b59402532190fa1c42bee9bfbf844f8c349255bec96907c2cf8f
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}
@@ -1,5 +1,5 @@
1
1
  module Contentful
2
2
  module Scheduler
3
- VERSION = "1.6.7.5339"
3
+ VERSION = "1.6.7.5340"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: contentful-scheduler-custom
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.7.5339
4
+ version: 1.6.7.5340
5
5
  platform: ruby
6
6
  authors:
7
7
  - Contentful GmbH (David Litvak Bruno0