contentful-scheduler-custom 1.6.7.5344 → 1.6.7.5345

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: 5755b881442e366cf036a354dec12628739c7e6bcbf65eac3d7febd098c96259
4
- data.tar.gz: 9ab99e2cb09060381ae3bd6c3018ba9f09699df979c4f5ff65b05d3dd69a67fb
3
+ metadata.gz: 8f216d075f7a9f027f9dba4d325b9bc11a0cd9556e5bc5622522cca50d91e28d
4
+ data.tar.gz: e4ec9207088a9209adae2c7dcdea58d3cdf0a9da8927705da1c8347b2e3c685d
5
5
  SHA512:
6
- metadata.gz: e29db5161234ceea0465a608949e2592bd9a5ededf3132c266b15de50fcde4996df4bfbcaae5a77166f79a883aab64660135eb579445f1efb1a02b7dfeb70dec
7
- data.tar.gz: a65fcffad393be59bd035ddea6b39f8961bc0fd1b27127ce6485b025a42eeda21fceb434a5e61cfee8ed13d75475ad1dee186c0868a50775c16db3374424f6f2
6
+ metadata.gz: c0024035b400ed1b4506953ceac8317ca2e94a56c8e0e3f77155d3aab81d4415efec5d06e24d6b43053df76bd5d5612d429130c9d4d92147c3bcf33e73f3d4fa
7
+ data.tar.gz: dfe85b6cf2bb836a72addd346ebba6948f1fe7a927b81ae38cb8a3c89f4c2f6e015c8f8a7a41860fda2a8214eb56394f3273ac4a153e62e17b82202365d23ab3
@@ -63,8 +63,12 @@ module Contentful
63
63
  logger.info("get_each_element input key is #{key} and item is #{item}")
64
64
  ids = []
65
65
  if item[key].kind_of?(Array)
66
- item[key].each {|i| (!(i["sys"]["linkType"].nil?) && i["sys"]["linkType"] == "Entry") ? ids.push(i["sys"]["id"]) : nil}
66
+ item[key].each do |i|
67
+ logger.info("Inside get_each_element for type Array #{i}")
68
+ (!(i["sys"]["linkType"].nil?) && i["sys"]["linkType"] == "Entry") ? ids.push(i["sys"]["id"]) : nil
69
+ end
67
70
  elsif item[key].kind_of?(Hash)
71
+ logger.info("Inside get_each_element for type Hash #{item[key]}")
68
72
  (!( item[key]["sys"]["linkType"].nil? ) && item[key]["sys"]["linkType"] == "Entry") ? ids.push(item[key]["sys"]["id"]) : nil
69
73
  end
70
74
  logger.info "get_each_element ids are ==> #{ids}"
@@ -1,5 +1,5 @@
1
1
  module Contentful
2
2
  module Scheduler
3
- VERSION = "1.6.7.5344"
3
+ VERSION = "1.6.7.5345"
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.5344
4
+ version: 1.6.7.5345
5
5
  platform: ruby
6
6
  authors:
7
7
  - Contentful GmbH (David Litvak Bruno0