contentful-scheduler-custom 1.6.7.5328 → 1.6.7.5329

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: f816b285d19ce602623aacbdc2d65758a1d9b1d446514b0dfa1aa6cda2a08995
4
- data.tar.gz: 1616064e6fe212021e4d7ae20aa858feac50f67e2b7ff435cc7942e2e5b0913f
3
+ metadata.gz: ad791d0a1cc2d68afd294a8b7740fe3bc7b52d9a673ab393ec2a8cfbfde02729
4
+ data.tar.gz: 4ddd86dc6e8dea2b59de07246b72d4d9fdb2d3c3242a67c2267efdb7b14d9814
5
5
  SHA512:
6
- metadata.gz: 02275b1e119e110ff4f2e567535747304c3100e4da28e96a2bcbe716e620768ed4542f1d713881f3fd4a4621b3add87d43068f6353505249d76f620159194de7
7
- data.tar.gz: 8a0431422e06c968c5d6693da5405fd18c13447df21fcbfb35e6878e40912d1b0f468389368e278a98ff010c3ff4823aab1ad397068b4059570e22b4c79b0e09
6
+ metadata.gz: f9da008235f9e2c93c7d72b2f407a005bd5010952dafd895e550c9e690c8bd30097874e12007f4467ab5d2cbad5d2523e61e01aa9a1a2ca6c9bb9eb96ad3a6a8
7
+ data.tar.gz: 095445e0521ae5d83275b95d95a36b0fa53d00ee4e3c32c7191e4e6e131ac06e1fcd7737dafdfd7e5be32be95c6ee58e5b1bde8394005ab22e933847dc860759
@@ -46,23 +46,23 @@ module Contentful
46
46
 
47
47
  def self.get_each_field item
48
48
  logger = Logger.new(STDOUT)
49
- ids = []
49
+ ids1 = []
50
50
  keys = item["fields"].keys
51
- keys.each {|key| (ids << (self.get_each_element key, item["fields"])).flatten!}
52
- logger.info "get_each_field ==> #{ids}"
53
- return ids
51
+ keys.each {|key| (ids1 << (self.get_each_element key, item["fields"])).flatten!}
52
+ logger.info "get_each_field ==> #{ids1}"
53
+ return ids1
54
54
  end
55
55
 
56
56
  def self.get_each_element key, item
57
57
  logger = Logger.new(STDOUT)
58
- ids = []
58
+ ids2 = []
59
59
  if item[key].is_a?(Array)
60
- item[key].each {|i| (!(i["sys"]["linkType"].nil?) && i["sys"]["linkType"] == "Entry") ? ids.push(i["sys"]["id"]) : nil}
60
+ item[key].each {|i| (!(i["sys"]["linkType"].nil?) && i["sys"]["linkType"] == "Entry") ? ids2.push(i["sys"]["id"]) : nil}
61
61
  elsif item[key].is_a?(Hash)
62
- (!( item[key]["sys"]["linkType"].nil? ) && item[key]["sys"]["linkType"] == "Entry") ? ids.push(item[key]["sys"]["id"]) : nil
62
+ (!( item[key]["sys"]["linkType"].nil? ) && item[key]["sys"]["linkType"] == "Entry") ? ids2.push(item[key]["sys"]["id"]) : nil
63
63
  end
64
- logger.info "get_each_element ids are ==> #{ids}"
65
- return ids
64
+ logger.info "get_each_element ids are ==> #{ids2}"
65
+ return ids2
66
66
  end
67
67
 
68
68
  end
@@ -1,5 +1,5 @@
1
1
  module Contentful
2
2
  module Scheduler
3
- VERSION = "1.6.7.5328"
3
+ VERSION = "1.6.7.5329"
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.5328
4
+ version: 1.6.7.5329
5
5
  platform: ruby
6
6
  authors:
7
7
  - Contentful GmbH (David Litvak Bruno0