contentful-scheduler-custom 1.6.7.5351 → 1.6.7.5352

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: eede45bff3cf77586d46a490f5bc204edbaa0d6242752da55f173eef3669bb12
4
- data.tar.gz: 1d8d1e598f94dcb07b8286ec4a3e8103bb45513ba164e5a2c87191c987d68f82
3
+ metadata.gz: 08e6ca84d7c9c8c3b8c92ee897e51fbe2810b27ec47ce6ab8a41d6eb7bcce8eb
4
+ data.tar.gz: 324f35ebf12cd01d761e65d6fdf06b8056763103409a52ffb3f4483870881cb2
5
5
  SHA512:
6
- metadata.gz: 5bebdf33600869916eb5e2055920a797a9c0e3a9a692d2974ae15f55cfb42d7edee46dcec9c48d77e9f2bce4e469e6d0a78df7b15f84b01d9f9fdd9edae7b2b0
7
- data.tar.gz: 1b988fff75902752d37940db3fcd86cae502dc22f792cbda03c5404f3e71db537556ebcd93a372616058a9cc13864925639dff394f9f0878511e0b71ca66fd0d
6
+ metadata.gz: 65befc3370e7dd21ff9084ba2a943c6d78daef8877311a12b6069812f61600dfeb003b60897b900604ed49bb1dce1e816907b72a6a4761d326a186109eede88f
7
+ data.tar.gz: ff2c90211350ce43e34bf3e8f5aa2d72a355ac3a416cf853775e53c54da9767d5cc48ee9f7fbaf33550d002390cd42bb0192509fdb861802ccb2985f626faf12
@@ -1,7 +1,7 @@
1
1
  require 'contentful/management'
2
2
  require 'contentful'
3
3
  require 'logger'
4
- require_relative '../taskshelper'
4
+ require_relative 'taskshelper'
5
5
 
6
6
  module Contentful
7
7
  module Scheduler
@@ -9,7 +9,7 @@ module Contentful
9
9
  class Publish
10
10
  @queue = :publish
11
11
 
12
- include Contentful::Scheduler::Taskshelper
12
+ include Contentful::Scheduler::Tasks::Taskshelper
13
13
 
14
14
  def self.perform(space_id, entry_id, token)
15
15
 
@@ -26,12 +26,12 @@ module Contentful
26
26
  application_version: Contentful::Scheduler::VERSION
27
27
  )
28
28
 
29
- linked_enteries = client.entries(links_to_entry: entry_id)
29
+ linked_entries = client.entries(links_to_entry: entry_id)
30
30
 
31
- if !linked_enteries.raw["includes"].nil? && !linked_enteries.raw["includes"]["Entry"].nil?
32
- linked_enteries_ids = extract_element_ids(linked_enteries.raw["includes"]["Entry"])
33
- logger.info("Linked enteries for entry_id ==>> #{entry_id} are ==>> #{linked_enteries_ids}")
34
- linked_enteries_ids.each do |id|
31
+ if !linked_entries.raw["includes"].nil? && !linked_entries.raw["includes"]["Entry"].nil?
32
+ linked_entries_ids = extract_element_ids(linked_entries.raw["includes"]["Entry"])
33
+ logger.info("Linked enteries for entry_id ==>> #{entry_id} are ==>> #{linked_entries_ids}")
34
+ linked_entries_ids.each do |id|
35
35
  logger.info"Publishing linked entry with id #{id}"
36
36
  clientManagement.entries.find(space_id, id).publish
37
37
  end
@@ -1,5 +1,5 @@
1
1
  module Contentful
2
2
  module Scheduler
3
- VERSION = "1.6.7.5351"
3
+ VERSION = "1.6.7.5352"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: contentful-scheduler-custom
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.7.5351
4
+ version: 1.6.7.5352
5
5
  platform: ruby
6
6
  authors:
7
7
  - Contentful GmbH (David Litvak Bruno0