contentful-scheduler-custom-build-john 1.24 → 1.25

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
2
  SHA1:
3
- metadata.gz: 8381591838c2b2de64547f57323766b30787b014
4
- data.tar.gz: a8fa63abf518864773a961326955e12848a60579
3
+ metadata.gz: 7ce5019ade4da7395de138e780d1e5321d23b059
4
+ data.tar.gz: 958b3635d58401dca9974486cf731a887e2e9638
5
5
  SHA512:
6
- metadata.gz: b86ffd2f75de6f31b3a72f8b254155c93dc86fbb780cd6d07ef0e09aa4556a099167e0e42c9e408d1ba9c74bcd149097beb3a4c63d9a9782b00c5f04edbee53e
7
- data.tar.gz: 7c0cdaf2ca3d28980691a90a27379c8c8eff6908f2afd81b1ebb299f9fcf5bf4bbfde3faf0b9d477004e642657aecb2d401d5ba0fd8b284f1729b5597986aa33
6
+ metadata.gz: b4d74e33942f5be64305ca0289395d0106065d4ce367fd9544f668cd09b877ba535d19aa1811810ef28611c6276082f107745e9b13fb123193c3b653bd3619c0
7
+ data.tar.gz: 14058ec73b045fce04fbf2ea657277858851004a3e55ee8ae6206170a488df3dc1b8aa4105786c53ea36a796c5073fa5ad66b3c8b71c5a71e908fae8ee37d007
@@ -60,18 +60,18 @@ module Contentful
60
60
  if isContentBlockAvailable(webhook)
61
61
  logger.info "COntent blocks #{webhook.fields['contentBlocks']['fi-FI']} successfully removed from queue"
62
62
  webhook.fields['contentBlocks']['fi-FI'].each do |sys|
63
- logger.info "Sys id is #{sys.id}"
63
+ logger.info "Sys id is #{sys['id']}"
64
64
  success = Resque.enqueue_at(
65
65
  publish_date(webhook),
66
66
  ::Contentful::Scheduler::Tasks::Publish,
67
67
  webhook.space_id,
68
- sys.id,
68
+ sys.sys['id'],
69
69
  ::Contentful::Scheduler.config[:spaces][webhook.space_id][:management_token]
70
70
  )
71
71
  if success
72
- logger.info "Webhook Content block {id: #{sys.id}, space_id: #{webhook.space_id}} successfully added to queue"
72
+ logger.info "Webhook Content block {id: #{sys['id']}, space_id: #{webhook.space_id}} successfully added to queue"
73
73
  else
74
- logger.warn "Webhook Content block {id: #{sys.id}, space_id: #{webhook.space_id}} couldn't be added to queue"
74
+ logger.warn "Webhook Content block {id: #{sys['id']}, space_id: #{webhook.space_id}} couldn't be added to queue"
75
75
  end
76
76
  end
77
77
  end
@@ -83,13 +83,13 @@ module Contentful
83
83
  success = Resque.remove_delayed(
84
84
  ::Contentful::Scheduler::Tasks::Publish,
85
85
  webhook.space_id,
86
- sys.id,
86
+ sys['id'],
87
87
  ::Contentful::Scheduler.config[:management_token]
88
88
  )
89
89
  if success
90
- logger.info "Webhook Content Block {id: #{sys.id}, space_id: #{webhook.space_id}} successfully removed from queue"
90
+ logger.info "Webhook Content Block {id: #{sys['id']}, space_id: #{webhook.space_id}} successfully removed from queue"
91
91
  else
92
- logger.warn "Webhook Content Block {id: #{sys.id}, space_id: #{webhook.space_id}} couldn't be removed from queue"
92
+ logger.warn "Webhook Content Block {id: #{sys['id']}, space_id: #{webhook.space_id}} couldn't be removed from queue"
93
93
  end
94
94
  end
95
95
  end
@@ -1,5 +1,5 @@
1
1
  module Contentful
2
2
  module Scheduler
3
- VERSION = "1.24"
3
+ VERSION = "1.25"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: contentful-scheduler-custom-build-john
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.24'
4
+ version: '1.25'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Contentful GmbH (David Litvak Bruno0