contentful-scheduler-custom 1.6.7.5327 → 1.6.7.5328

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: 0f78ebe3263864033469b2929c5938e8e80a5c73055c7fb475274e9738574f09
4
- data.tar.gz: 07a685d3d2bd8c0242e02ce6a2c61ee26531191e155a60ee0232eed30a18ea76
3
+ metadata.gz: f816b285d19ce602623aacbdc2d65758a1d9b1d446514b0dfa1aa6cda2a08995
4
+ data.tar.gz: 1616064e6fe212021e4d7ae20aa858feac50f67e2b7ff435cc7942e2e5b0913f
5
5
  SHA512:
6
- metadata.gz: ccaec5726188c6caef738c30dff2eaa8e90ff741ad8054bf311b380194077038956137b96f581768b6d9e227fc6b167f62c2cb3a940b622e3e3d439a48b6c677
7
- data.tar.gz: be79ae635cca51651cbc9e02fd2110e54b8c078ab55c77ed77050ecaacf8eb03e082806af67f8c1b2f13adaf8986ae15e6cb5a80a99ecae3796b3e79c22ff70c
6
+ metadata.gz: 02275b1e119e110ff4f2e567535747304c3100e4da28e96a2bcbe716e620768ed4542f1d713881f3fd4a4621b3add87d43068f6353505249d76f620159194de7
7
+ data.tar.gz: 8a0431422e06c968c5d6693da5405fd18c13447df21fcbfb35e6878e40912d1b0f468389368e278a98ff010c3ff4823aab1ad397068b4059570e22b4c79b0e09
@@ -39,8 +39,6 @@ module Contentful
39
39
  end
40
40
 
41
41
  def self.extract_element_ids input_array
42
- logger = Logger.new(STDOUT)
43
- logger.info "CHuby raw element is ==> #{input_array}"
44
42
  ids = []
45
43
  input_array.each {|item| (ids << (self.get_each_field item )).flatten!}
46
44
  return ids.uniq
@@ -57,13 +55,13 @@ module Contentful
57
55
 
58
56
  def self.get_each_element key, item
59
57
  logger = Logger.new(STDOUT)
60
- logger.info "get_each_element ==> #{key} and #{item}"
61
58
  ids = []
62
59
  if item[key].is_a?(Array)
63
60
  item[key].each {|i| (!(i["sys"]["linkType"].nil?) && i["sys"]["linkType"] == "Entry") ? ids.push(i["sys"]["id"]) : nil}
64
61
  elsif item[key].is_a?(Hash)
65
62
  (!( item[key]["sys"]["linkType"].nil? ) && item[key]["sys"]["linkType"] == "Entry") ? ids.push(item[key]["sys"]["id"]) : nil
66
63
  end
64
+ logger.info "get_each_element ids are ==> #{ids}"
67
65
  return ids
68
66
  end
69
67
 
@@ -1,5 +1,5 @@
1
1
  module Contentful
2
2
  module Scheduler
3
- VERSION = "1.6.7.5327"
3
+ VERSION = "1.6.7.5328"
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.5327
4
+ version: 1.6.7.5328
5
5
  platform: ruby
6
6
  authors:
7
7
  - Contentful GmbH (David Litvak Bruno0