contentful-scheduler-custom 1.5.691 → 1.5.692

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 22663b72715c1990c874023fcc60fcf3f13e8cb2
4
- data.tar.gz: 6bca290fbc76ed587fa249f5ed0ec22029d7c755
3
+ metadata.gz: 9feb25b3fdd58bec42d464a39c08b08f1e970b0f
4
+ data.tar.gz: cece0ae43d9442ec5f3cd554d3a389bfa092cd36
5
5
  SHA512:
6
- metadata.gz: bdfd26cd35391ebac360368011ab56cfe50ff2920729ccd629424f25e82cac23f739b99630c6c31ae6b94d3bd8a53a2cb6715e3e6894596ddd3d3b7598d75b40
7
- data.tar.gz: d64447ea838dfa60025c9fa6bfdd5ac7d2d08f4ab5006502c3819599153391b05d372c7cc23f4860fb8e72b9675bb58d26a7e1a71230de4f75f9104ab7f34ce3
6
+ metadata.gz: 34ad530243b750062241d4b35081ff37cd8bc0e0e369e1bb442067c769a33a212f4c15fd86bc63ae464b2d412fb3bc0bb503edb5371fdd50c743667a74b0b837
7
+ data.tar.gz: f8994afc6e9b7bb386493b448ae0663cc1857e75e58ceb55919acdfb33e409930ad140a112b94a371743074ff8d54068a15e33bd65b19e5a873876dd0726d49a
@@ -15,15 +15,13 @@ module Contentful
15
15
 
16
16
  def update_or_create(webhook)
17
17
  if publishable?(webhook)
18
- successPublish = update_or_create_for_publish(webhook)
19
- updateContentBlocks(webhook, 'publish')
18
+ success = update_or_create_for_publish(webhook)
20
19
  log_event_success(webhook, success, 'publish', 'added to')
21
20
  end
22
21
 
23
22
  if unpublishable?(webhook)
24
- successUnpublish = update_or_create_for_unpublish(webhook)
25
- updateContentBlocks(webhook, 'unpublish')
26
- log_event_success(webhook, successUnpublish, 'unpublish', 'added to')
23
+ success = update_or_create_for_unpublish(webhook) && success
24
+ log_event_success(webhook, success, 'unpublish', 'added to')
27
25
  end
28
26
  end
29
27
 
@@ -69,8 +67,6 @@ module Contentful
69
67
  ::Contentful::Scheduler.config[:management_token]
70
68
  )
71
69
 
72
- removeContentBlocks(webhook, 'publish')
73
-
74
70
  log_event_success(webhook, success, 'publish', 'removed from')
75
71
  end
76
72
 
@@ -85,8 +81,6 @@ module Contentful
85
81
  ::Contentful::Scheduler.config[:management_token]
86
82
  )
87
83
 
88
- removeContentBlocks(webhook, 'unpublish')
89
-
90
84
  log_event_success(webhook, success, 'unpublish', 'removed from')
91
85
  end
92
86
 
@@ -1,5 +1,5 @@
1
1
  module Contentful
2
2
  module Scheduler
3
- VERSION = "1.5.691"
3
+ VERSION = "1.5.692"
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.691
4
+ version: 1.5.692
5
5
  platform: ruby
6
6
  authors:
7
7
  - Contentful GmbH (David Litvak Bruno0