contentful-scheduler 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.travis.yml +2 -2
- data/CHANGELOG.md +4 -0
- data/lib/contentful/scheduler/queue.rb +3 -3
- data/lib/contentful/scheduler/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 6826ece4acd5a571852a4506f3764a002f0de6be02a5e60f505d81bbc9cd04a0
|
4
|
+
data.tar.gz: 5c4091e04a96a19913deb0bd176e90987392a53f4c59fe84ed8ba158c32e94d3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 38743be3eb28c083995ae1b3fe0d48b7adefa7a2e3b561dc9ef23346142c2898b45d93269b8eb7a74ea8c390e511de88b0fdb184538c1f1510c95c07aa988f73
|
7
|
+
data.tar.gz: f75d0517a6eeeeda46f4cbd47b3659db68ee205def13cb7c1b622d165164ea6553fd7d88366c87d452ef719a4b1b70fc4dc8cabf40406c9760996f73e3452545
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,10 @@
|
|
2
2
|
|
3
3
|
## Unreleased
|
4
4
|
|
5
|
+
## 0.5.1
|
6
|
+
### Changed
|
7
|
+
* If publish actions fail to enqueue, subsequent attempts to enqueue an unpublish action won't be logged as a failure. [#15](https://github.com/contentful/contentful-scheduler.rb/issues/15)
|
8
|
+
|
5
9
|
## 0.5.0
|
6
10
|
### Added
|
7
11
|
* Added support for scheduled unpublishing. [#10](https://github.com/contentful/contentful-scheduler.rb/issues/10)
|
@@ -20,7 +20,7 @@ module Contentful
|
|
20
20
|
end
|
21
21
|
|
22
22
|
if unpublishable?(webhook)
|
23
|
-
success = update_or_create_for_unpublish(webhook)
|
23
|
+
success = update_or_create_for_unpublish(webhook)
|
24
24
|
log_event_success(webhook, success, 'unpublish', 'added to')
|
25
25
|
end
|
26
26
|
end
|
@@ -149,11 +149,11 @@ module Contentful
|
|
149
149
|
end
|
150
150
|
|
151
151
|
def webhook_publish_field?(webhook)
|
152
|
-
webhook.fields.key?(spaces.fetch(webhook.space_id, {})[:publish_field])
|
152
|
+
webhook.fields.key?(spaces.fetch(webhook.space_id, {})[:publish_field]) if webhook.respond_to?(:fields)
|
153
153
|
end
|
154
154
|
|
155
155
|
def webhook_unpublish_field?(webhook)
|
156
|
-
webhook.fields.key?(spaces.fetch(webhook.space_id, {})[:unpublish_field])
|
156
|
+
webhook.fields.key?(spaces.fetch(webhook.space_id, {})[:unpublish_field]) if webhook.respond_to?(:fields)
|
157
157
|
end
|
158
158
|
|
159
159
|
def webhook_publish_field(webhook)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: contentful-scheduler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
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-
|
11
|
+
date: 2018-08-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: contentful-webhook-listener
|
@@ -235,7 +235,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
235
235
|
version: '0'
|
236
236
|
requirements: []
|
237
237
|
rubyforge_project:
|
238
|
-
rubygems_version: 2.6
|
238
|
+
rubygems_version: 2.7.6
|
239
239
|
signing_key:
|
240
240
|
specification_version: 4
|
241
241
|
summary: Customizable Scheduler for Contentful Entries.
|