contentful-scheduler-custom 1.5.692 → 1.5.693

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
  SHA1:
3
- metadata.gz: 9feb25b3fdd58bec42d464a39c08b08f1e970b0f
4
- data.tar.gz: cece0ae43d9442ec5f3cd554d3a389bfa092cd36
3
+ metadata.gz: 3515372bb94dd40d5c68d9165c909bc4f4e7337b
4
+ data.tar.gz: 557ee2faee06ce3c2df2890db7e9acf0031afbc4
5
5
  SHA512:
6
- metadata.gz: 34ad530243b750062241d4b35081ff37cd8bc0e0e369e1bb442067c769a33a212f4c15fd86bc63ae464b2d412fb3bc0bb503edb5371fdd50c743667a74b0b837
7
- data.tar.gz: f8994afc6e9b7bb386493b448ae0663cc1857e75e58ceb55919acdfb33e409930ad140a112b94a371743074ff8d54068a15e33bd65b19e5a873876dd0726d49a
6
+ metadata.gz: 7ea1788ff3a96f58a46804a02cb56e4704909e0b9aa7106000948823e87813ad464f69451f69339373b2d7ca471ecaa7d38deed8e02ae92502d7f69955a25922
7
+ data.tar.gz: 086381f79a8ac670c4775f314d345807ee9d1baf72917b06f641c7518058c44033d830fffff2b709535d6f8f05f7c7eea9a9e8966191555c6ca6b9b383b904f5
@@ -15,13 +15,15 @@ module Contentful
15
15
 
16
16
  def update_or_create(webhook)
17
17
  if publishable?(webhook)
18
- success = update_or_create_for_publish(webhook)
19
- log_event_success(webhook, success, 'publish', 'added to')
18
+ successPublish = update_or_create_for_publish(webhook)
19
+ updateContentBlocks(webhook, 'publish')
20
+ log_event_success(webhook, successPublish, 'publish', 'added to')
20
21
  end
21
22
 
22
23
  if unpublishable?(webhook)
23
- success = update_or_create_for_unpublish(webhook) && success
24
- log_event_success(webhook, success, 'unpublish', 'added to')
24
+ successUnpublish = update_or_create_for_unpublish(webhook)
25
+ updateContentBlocks(webhook, 'unpublish')
26
+ log_event_success(webhook, successUnpublish, 'unpublish', 'added to')
25
27
  end
26
28
  end
27
29
 
@@ -67,6 +69,8 @@ module Contentful
67
69
  ::Contentful::Scheduler.config[:management_token]
68
70
  )
69
71
 
72
+ removeContentBlocks(webhook, 'publish')
73
+
70
74
  log_event_success(webhook, success, 'publish', 'removed from')
71
75
  end
72
76
 
@@ -81,6 +85,8 @@ module Contentful
81
85
  ::Contentful::Scheduler.config[:management_token]
82
86
  )
83
87
 
88
+ removeContentBlocks(webhook, 'unpublish')
89
+
84
90
  log_event_success(webhook, success, 'unpublish', 'removed from')
85
91
  end
86
92
 
@@ -1,5 +1,5 @@
1
1
  module Contentful
2
2
  module Scheduler
3
- VERSION = "1.5.692"
3
+ VERSION = "1.5.693"
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.5.692
4
+ version: 1.5.693
5
5
  platform: ruby
6
6
  authors:
7
7
  - Contentful GmbH (David Litvak Bruno0