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

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: 7ce5019ade4da7395de138e780d1e5321d23b059
4
- data.tar.gz: 958b3635d58401dca9974486cf731a887e2e9638
3
+ metadata.gz: 7ab4d49e2a8f92854c79409f04fcc1d40497c8dd
4
+ data.tar.gz: 7b3f4032d07d6cfeb3b490e2d317aebf1aa3e9e6
5
5
  SHA512:
6
- metadata.gz: b4d74e33942f5be64305ca0289395d0106065d4ce367fd9544f668cd09b877ba535d19aa1811810ef28611c6276082f107745e9b13fb123193c3b653bd3619c0
7
- data.tar.gz: 14058ec73b045fce04fbf2ea657277858851004a3e55ee8ae6206170a488df3dc1b8aa4105786c53ea36a796c5073fa5ad66b3c8b71c5a71e908fae8ee37d007
6
+ metadata.gz: ae518007f0dfa045134c8585e6180201e8acfdbbe3aa94df13221d6c49243e8f83955d3c6b4e46e4fc1a03352cf815fb77a957d4a9cda3112cff37fbc01d17c9
7
+ data.tar.gz: 7a565dc60a6430d1dd3d9167b67523c81239617fbe1bc11bf704f229157beaa9a722eb5b539e9590f3e961262a700b0ae8ad7017c43640c67d31ffd397a21625
@@ -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['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.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['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['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['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['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['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.25"
3
+ VERSION = "1.26"
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.25'
4
+ version: '1.26'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Contentful GmbH (David Litvak Bruno0