contentful-scheduler-custom 1.5.64 → 1.5.65

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: 22b5e07484821eb95590b2615151da5c7748c7ba
4
- data.tar.gz: 3aea422dc3695c9abd13901b911cce7f9d2c89c4
3
+ metadata.gz: e89bdc7e5781eb3906f57e1a00b15372b5e8d720
4
+ data.tar.gz: 61c3dc8523f6e2702f8760134c4ff41be86f5367
5
5
  SHA512:
6
- metadata.gz: 68d7e0e9f5dce95041f5cb4567bb2dc044a598ecd3dbb2ece07a5b1620b4f43e52f81ceef38c4a1e59827eb8606b29332f102449a5d3b8e3b203cb9fae60074d
7
- data.tar.gz: b94cb8c0e80908e5f36709bad7ccfd89073d5a4f1e0f5359133ff3542638685dce4556a0ccb284d478e8a9911f22d82f2d01c528231020f1183c22c54f1b63dd
6
+ metadata.gz: 505418a06ae85c07cf371b561470a06ba9d799c4ec058bb81073629b877709531ea8372104c15409c884d0e582872d6eee9b63f519a9a993916466c97ee4cc5c
7
+ data.tar.gz: 555536c67a26cf1897c437abfe24ec863108b6be08350daa7d54855b85fe4affc8805d57b02d04880d7c2b03c208a0bba9bbee067a798f940509d387bbd9a143
@@ -64,6 +64,8 @@ module Contentful
64
64
  return unless publishable?(webhook)
65
65
  return unless in_publish_queue?(webhook)
66
66
 
67
+ logger.info "before before publish content block remove block"
68
+
67
69
  success = Resque.remove_delayed(
68
70
  ::Contentful::Scheduler::Tasks::Publish,
69
71
  webhook.space_id,
@@ -71,6 +73,8 @@ module Contentful
71
73
  ::Contentful::Scheduler.config[:management_token]
72
74
  )
73
75
 
76
+ logger.info "before publish content block remove block"
77
+
74
78
  removeContentBlocks(webhook, 'publish')
75
79
 
76
80
  log_event_success(webhook, success, 'publish', 'removed from')
@@ -150,6 +154,7 @@ module Contentful
150
154
  return unless unpublishable?(webhook)
151
155
  return unless in_unpublish_queue?(webhook)
152
156
 
157
+ logger.info "before before unpublish content block remove block"
153
158
 
154
159
  success = Resque.remove_delayed(
155
160
  ::Contentful::Scheduler::Tasks::Unpublish,
@@ -1,5 +1,5 @@
1
1
  module Contentful
2
2
  module Scheduler
3
- VERSION = "1.5.64"
3
+ VERSION = "1.5.65"
4
4
  end
5
5
  end
@@ -1,7 +1,7 @@
1
1
  require 'spec_helper'
2
2
 
3
3
  class MockEntry
4
- def publish
4
+ def unpublish
5
5
  end
6
6
  end
7
7
 
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.64
4
+ version: 1.5.65
5
5
  platform: ruby
6
6
  authors:
7
7
  - Contentful GmbH (David Litvak Bruno0