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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: ff923429648f1e2a809b1f379f99fa592eafc40d
4
- data.tar.gz: 4e6c728e653123254f245d3f6e780a3c986e61c1
2
+ SHA256:
3
+ metadata.gz: 6826ece4acd5a571852a4506f3764a002f0de6be02a5e60f505d81bbc9cd04a0
4
+ data.tar.gz: 5c4091e04a96a19913deb0bd176e90987392a53f4c59fe84ed8ba158c32e94d3
5
5
  SHA512:
6
- metadata.gz: eb9ecbbd1524f8da38140c54447d7014aca017a5fa73d6403f5256c82f1e8d7bafe94a43d81d3ca86a002fa5de78006446fe2a16667b6601a4c55a559f052e2b
7
- data.tar.gz: 9f62df4f008c1f0c27bca2e1f52a532b132687038e0156e29a5a0a807c8ed70affb1ee85130e4c0b001a82597cf500717f432af74f02853fd2c9c6ae7a535d5b
6
+ metadata.gz: 38743be3eb28c083995ae1b3fe0d48b7adefa7a2e3b561dc9ef23346142c2898b45d93269b8eb7a74ea8c390e511de88b0fdb184538c1f1510c95c07aa988f73
7
+ data.tar.gz: f75d0517a6eeeeda46f4cbd47b3659db68ee205def13cb7c1b622d165164ea6553fd7d88366c87d452ef719a4b1b70fc4dc8cabf40406c9760996f73e3452545
data/.travis.yml CHANGED
@@ -1,6 +1,6 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.2.3
4
3
  - 2.3.1
5
- - 2.4.0
4
+ - 2.4.1
5
+ - 2.5.1
6
6
  before_install: gem install bundler -v 1.10.6
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) && success
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)
@@ -1,5 +1,5 @@
1
1
  module Contentful
2
2
  module Scheduler
3
- VERSION = "0.5.0"
3
+ VERSION = "0.5.1"
4
4
  end
5
5
  end
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.0
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-03-07 00:00:00.000000000 Z
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.14
238
+ rubygems_version: 2.7.6
239
239
  signing_key:
240
240
  specification_version: 4
241
241
  summary: Customizable Scheduler for Contentful Entries.