contentful-scheduler-custom 1.5.695 → 1.5.696
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/contentful/scheduler/queue.rb +6 -6
- data/lib/contentful/scheduler/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 49e4a24897ea3639518ddfcd921812bdc5176b1e
|
4
|
+
data.tar.gz: ae2d1f923b8ab2e84a1fb76e5bf2eedcb25dc6d3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c9cc36ee9b6fffafbb6be2e3f5919d292f33a731d052b9cec489cee2423e092216f6e3b92bad240ad570195a257c1ea82dbf0501314af982ac376519d2f157a
|
7
|
+
data.tar.gz: a9f7e056b36aa87de9b647f7b04438f3c6d0481f26ab1747c3de0f4bacbd0d1a411c11fe4cb02602b90134d016135b22c7c1184184f87a4dd9bff99da90131c1
|
@@ -15,15 +15,15 @@ module Contentful
|
|
15
15
|
|
16
16
|
def update_or_create(webhook)
|
17
17
|
if publishable?(webhook)
|
18
|
-
|
18
|
+
successPublish = update_or_create_for_publish(webhook)
|
19
19
|
updateContentBlocks(webhook, 'publish')
|
20
|
-
log_event_success(webhook,
|
20
|
+
log_event_success(webhook, successPublish, 'publish', 'added to')
|
21
21
|
end
|
22
22
|
|
23
23
|
if unpublishable?(webhook)
|
24
|
-
|
24
|
+
successUnpublish = update_or_create_for_unpublish(webhook)
|
25
25
|
updateContentBlocks(webhook, 'unpublish')
|
26
|
-
log_event_success(webhook,
|
26
|
+
log_event_success(webhook, successUnpublish, 'unpublish', 'added to')
|
27
27
|
end
|
28
28
|
end
|
29
29
|
|
@@ -85,9 +85,9 @@ module Contentful
|
|
85
85
|
::Contentful::Scheduler.config[:management_token]
|
86
86
|
)
|
87
87
|
|
88
|
-
removeContentBlocksUnpublish(webhook)
|
89
|
-
|
90
88
|
log_event_success(webhook, success, 'unpublish', 'removed from')
|
89
|
+
|
90
|
+
removeContentBlocksUnpublish(webhook)
|
91
91
|
end
|
92
92
|
|
93
93
|
def log_event_success(webhook, success, event_kind, action)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: contentful-scheduler-custom
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.696
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Contentful GmbH (David Litvak Bruno0
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-07-
|
11
|
+
date: 2018-07-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: contentful-webhook-listener
|