contentful-scheduler-custom 1.6.7.5333 → 1.6.7.5334

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: 9fab1df60450768cfa0a91180c0226cf1849bdb524d1a403c249ebece211b984
4
- data.tar.gz: a59f009a36552e4a86c52fa3b9d762dfb56b28f98f1b1ecf844cfa5809b084af
3
+ metadata.gz: e633c5a5327b45a7a531841f1c11b101b91d1bca127ce9f15d9ffea592aa972b
4
+ data.tar.gz: ee700c698c8668199722351f6ad779168dce29ee4962533247729e003bc4f236
5
5
  SHA512:
6
- metadata.gz: 99c7ff9f2c6de23a3c6e110b91070bd17191aa1e206f929e5ac5ff5b738fe11c3efaf2d12257bdec7fe5f21a68efcd8992e58374bc4f8c71bfca6beffae5ad45
7
- data.tar.gz: 44d87802b2411781cfb0cd8c81824ad88103ba9b550e416b499ad01537fa29ea4faf47340081cc035dc7aa7c22fc6690772e7c761e8935cdd295b262aa7b6f92
6
+ metadata.gz: a11ba91a6af0876cb43171722ac2c3b7d52563053763b474cf42818c3d78227524e24dcd4dfef60f67570565eedcb9878442c776f3d133e23b807df0ec40e863
7
+ data.tar.gz: 24baac9c3639e66baadb0f24aa6eef5fa789d28197609c73585948e6513c3fff6dcfc6d7ca917596d63c99a926daf18c8f6b29e1a486df8e4ebedfb1b0a13179
@@ -36,33 +36,34 @@ module Contentful
36
36
  end
37
37
  end
38
38
  client.entries.find(space_id, entry_id).publish
39
+ end
39
40
 
40
- def self.extract_element_ids input_array
41
- ids = []
42
- input_array.each {|item| (ids << (get_each_field item )).flatten!}
43
- return ids.uniq
44
- end
45
41
 
46
- def self.get_each_field item
47
- logger = Logger.new(STDOUT)
48
- ids = []
49
- keys = item["fields"].keys
50
- keys.each {|key| (ids << (get_each_element key, item["fields"])).flatten!}
51
- logger.info "get_each_field ==> #{ids}"
52
- return ids1
53
- end
42
+ def self.extract_element_ids input_array
43
+ ids = []
44
+ input_array.each {|item| (ids << (get_each_field item )).flatten!}
45
+ return ids.uniq
46
+ end
54
47
 
55
- def self.get_each_element key, item
56
- logger = Logger.new(STDOUT)
57
- ids = []
58
- if item[key].is_a?(Array)
59
- item[key].each {|i| (!(i["sys"]["linkType"].nil?) && i["sys"]["linkType"] == "Entry") ? ids.push(i["sys"]["id"]) : nil}
60
- elsif item[key].is_a?(Hash)
61
- (!( item[key]["sys"]["linkType"].nil? ) && item[key]["sys"]["linkType"] == "Entry") ? ids.push(item[key]["sys"]["id"]) : nil
62
- end
63
- logger.info "get_each_element ids are ==> #{ids}"
64
- return ids
48
+ def self.get_each_field item
49
+ logger = Logger.new(STDOUT)
50
+ ids = []
51
+ keys = item["fields"].keys
52
+ keys.each {|key| (ids << (get_each_element key, item["fields"])).flatten!}
53
+ logger.info "get_each_field ==> #{ids}"
54
+ return ids1
55
+ end
56
+
57
+ def self.get_each_element key, item
58
+ logger = Logger.new(STDOUT)
59
+ ids = []
60
+ if item[key].is_a?(Array)
61
+ item[key].each {|i| (!(i["sys"]["linkType"].nil?) && i["sys"]["linkType"] == "Entry") ? ids.push(i["sys"]["id"]) : nil}
62
+ elsif item[key].is_a?(Hash)
63
+ (!( item[key]["sys"]["linkType"].nil? ) && item[key]["sys"]["linkType"] == "Entry") ? ids.push(item[key]["sys"]["id"]) : nil
65
64
  end
65
+ logger.info "get_each_element ids are ==> #{ids}"
66
+ return ids
66
67
  end
67
68
 
68
69
 
@@ -1,5 +1,5 @@
1
1
  module Contentful
2
2
  module Scheduler
3
- VERSION = "1.6.7.5333"
3
+ VERSION = "1.6.7.5334"
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.5333
4
+ version: 1.6.7.5334
5
5
  platform: ruby
6
6
  authors:
7
7
  - Contentful GmbH (David Litvak Bruno0