contentful-scheduler-custom 1.6.115 → 1.6.116

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
  SHA256:
3
- metadata.gz: 48b1be7726fd4ae1b5cb166f1e6a05fcf56b1a1ae092cd80130da76d4ac51128
4
- data.tar.gz: f33871f171989394f8822038278c0bd6323053e44ac0f102dc04666a369c1bfe
3
+ metadata.gz: 7f8a7d88bc6392835f76f171fabfde5aed9d64f59c5606a89aaefb07e43d7230
4
+ data.tar.gz: 3a9d7ccbfe3d5ad7e3a80bccf7a8f69cd776e89b4323dc55f3a26129103144cc
5
5
  SHA512:
6
- metadata.gz: d005ed4eb1141cb630d08d0f11860a3c24eaa0807a1f1d580d38884f6b8fa0e82eb203f2b708c8186a3639fbc51fed3bfaba7a56ae89bb7609b6f73e3de9c924
7
- data.tar.gz: c10c5f94c34d4b4c54c3fda6a5d8ce129661e8438a114b047f72e8afba5b6dce5bc07c2d67cac1e08fb6154c4f900ca106ad41a2b153139ded7fd70a6f3d348b
6
+ metadata.gz: d0cbdcf5cffb8fd674b7cfba28fccaea2166625cb1e250a511e649d39862e477644085f6a5e5a660e3baef6683cd08d4fd357fb2cccf1c807bbbb0479c7273d4
7
+ data.tar.gz: 227a4780d34a1c5becc8029bd538e810a8a49a1ee183b6a3b5e1d8e86bd936e1ea59bec7aefa4f5d44c7031d466be73a245a7c10521595d1f695f1747eb1a795
@@ -20,7 +20,6 @@ Gem::Specification.new do |spec|
20
20
  spec.require_paths = ["lib"]
21
21
 
22
22
  spec.add_runtime_dependency "contentful-webhook-listener", "~> 0.2"
23
- spec.add_runtime_dependency "contentful", "~> 2.9.4"
24
23
  spec.add_runtime_dependency "contentful-management", "~> 1.8"
25
24
  spec.add_runtime_dependency "resque", "~> 1.27.4"
26
25
  spec.add_runtime_dependency "resque-scheduler", "~> 4.3.1"
@@ -1,5 +1,4 @@
1
1
  require 'contentful/management'
2
- require 'contentful'
3
2
 
4
3
  module Contentful
5
4
  module Scheduler
@@ -8,25 +7,13 @@ module Contentful
8
7
  @queue = :publish
9
8
 
10
9
  def self.perform(space_id, entry_id, token)
11
- contentfulClient = ::Contentful::Client.new(
12
- space: space_id,
13
- access_token: token
14
- )
15
-
16
- logger = ::Contentful::Webhook::Listener::Support::NullLogger.new
17
-
18
- linkedEntries = contentfulClient.entries(links_to_entry: entry_id)
19
-
20
- logger.info "#{linkedEntries}"
21
-
22
10
  client = ::Contentful::Management::Client.new(
23
11
  token,
24
12
  raise_errors: true,
25
13
  application_name: 'contentful.scheduler',
26
14
  application_version: Contentful::Scheduler::VERSION
27
15
  )
28
- client.entries.find(space_id, entry_id).publish
29
- linkedEntries.find(space_id, entry_id).publish
16
+ client.entries(include: 3).find(space_id, entry_id).publish
30
17
  end
31
18
  end
32
19
  end
@@ -13,7 +13,7 @@ module Contentful
13
13
  application_name: 'contentful.scheduler',
14
14
  application_version: Contentful::Scheduler::VERSION
15
15
  )
16
- client.entries.find(space_id, entry_id).unpublish
16
+ client.entries(include: 3).find(space_id, entry_id).unpublish
17
17
  end
18
18
  end
19
19
  end
@@ -1,5 +1,5 @@
1
1
  module Contentful
2
2
  module Scheduler
3
- VERSION = "1.6.115"
3
+ VERSION = "1.6.116"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: contentful-scheduler-custom
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.115
4
+ version: 1.6.116
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-10-12 00:00:00.000000000 Z
11
+ date: 2019-03-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: contentful-webhook-listener
@@ -24,20 +24,6 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0.2'
27
- - !ruby/object:Gem::Dependency
28
- name: contentful
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: 2.9.4
34
- type: :runtime
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - "~>"
39
- - !ruby/object:Gem::Version
40
- version: 2.9.4
41
27
  - !ruby/object:Gem::Dependency
42
28
  name: contentful-management
43
29
  requirement: !ruby/object:Gem::Requirement