contentful-scheduler-custom 1.6.7.5324 → 1.6.7.5325

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: 8ee47fae68c44de6bdb2fc9d81e86c7354a15b1746b8665e10987ffaf3479d2d
4
- data.tar.gz: 97892317e5be4a8bd06d0f192f474c57c5dd99a40653fd5805386e2ce7b3b9a3
3
+ metadata.gz: 242c1acdac7c8a31c8e1fe8c1be31dd16ca851179e495934ec05fa8565912ff8
4
+ data.tar.gz: 216c0f21ea67bd0a11809f37d868ad86219b6424ab2a638167990b885a602d9a
5
5
  SHA512:
6
- metadata.gz: 1480ff712c6f2a946441dd89b4d16a523e99d087342b80f65a57d45f5c7450106464fcfa140cbfbdbb578ec4f7eafd8674d35009584a57ba4316ef9152b85b19
7
- data.tar.gz: 250253f6257e13e725467079da1ead21b911042afcbac558b210cf3776b9f84482e8667379f338d7957ff1b64aec6a4318652812d0e4be0aa122019e0afc6f93
6
+ metadata.gz: eeacb91dba07e471c9d98c41cee79e7dfe505c7fa6a61f0aa721b5fd15b619909a596e80ae75cd930a99d39acb3a257404e99a8a27f4d72145f0eff5f3d3a385
7
+ data.tar.gz: ed024c6eba21f424838247eaf4b63bee690f0afcde776b63fc24f3ee826cc4f68d20c541d3849d5a3f16d3830df66ec6e989b7527f773fbcb995f9861e76c037
@@ -27,7 +27,6 @@ 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
- logger.info "CHuby raw element is ==> #{linked_enteries.raw["includes"]["Entry"]}"
31
30
  linkedEnteriesId = self.extract_element_ids(linked_enteries.raw["includes"]["Entry"])
32
31
  logger.info("Linked enteries are #{linkedEnteriesId}")
33
32
  linkedEnteriesId.each do |id|
@@ -40,6 +39,7 @@ module Contentful
40
39
  end
41
40
 
42
41
  def self.extract_element_ids input_array
42
+ logger.info "CHuby raw element is ==> #{input_array}"
43
43
  ids = []
44
44
  input_array.each {|item| (ids << (self.get_each_field item )).flatten!}
45
45
  return ids.uniq
@@ -54,9 +54,9 @@ module Contentful
54
54
 
55
55
  def self.get_each_element key, item
56
56
  ids = []
57
- if item[key].kind_of?(Array)
57
+ if item[key].is_a?(Array)
58
58
  item[key].each {|i| (!(i["sys"]["linkType"].nil?) && i["sys"]["linkType"] == "Entry") ? ids.push(i["sys"]["id"]) : nil}
59
- elsif item[key].kind_of?(Hash)
59
+ elsif item[key].is_a?(Hash)
60
60
  (!( item[key]["sys"]["linkType"].nil? ) && item[key]["sys"]["linkType"] == "Entry") ? ids.push(item[key]["sys"]["id"]) : nil
61
61
  end
62
62
  return ids
@@ -1,5 +1,5 @@
1
1
  module Contentful
2
2
  module Scheduler
3
- VERSION = "1.6.7.5324"
3
+ VERSION = "1.6.7.5325"
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.5324
4
+ version: 1.6.7.5325
5
5
  platform: ruby
6
6
  authors:
7
7
  - Contentful GmbH (David Litvak Bruno0