contentful-scheduler 0.1.0 → 0.2.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e6c1e89296a0e023ab7a1965e8d4e61227f50a7e
|
4
|
+
data.tar.gz: 1b88d27deb5cff6083fd1806ab6ee20cf73e3678
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6ff9efe84ab5612b5d4aeabfe8193968cd15cb4745a6f5e55bd4761ce2cd3e27f7ae7473641ca848fffa564c4036ab17689373ba6dec12142feff88390cc27b5
|
7
|
+
data.tar.gz: 5f1e89b67d58bbf5f8772c749846cb98908425e2a5387990670c96f65e69cd1d04745c26eeee3d7fd3c57db00d40d84852760e71eb8beac053f9626aeb9c3e2b
|
data/CHANGELOG.md
ADDED
@@ -20,7 +20,7 @@ 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-management", "~> 1.
|
23
|
+
spec.add_runtime_dependency "contentful-management", "~> 1.8"
|
24
24
|
spec.add_runtime_dependency "resque", "~> 1.0"
|
25
25
|
spec.add_runtime_dependency "resque-scheduler", "~> 4.0"
|
26
26
|
spec.add_runtime_dependency "redis", "~> 3.0"
|
@@ -30,4 +30,5 @@ Gem::Specification.new do |spec|
|
|
30
30
|
spec.add_development_dependency "rspec"
|
31
31
|
spec.add_development_dependency "guard"
|
32
32
|
spec.add_development_dependency "guard-rspec"
|
33
|
+
spec.add_development_dependency "simplecov"
|
33
34
|
end
|
@@ -7,7 +7,12 @@ module Contentful
|
|
7
7
|
@queue = :publish
|
8
8
|
|
9
9
|
def self.perform(space_id, entry_id, token)
|
10
|
-
client = ::Contentful::Management::Client.new(
|
10
|
+
client = ::Contentful::Management::Client.new(
|
11
|
+
token,
|
12
|
+
raise_errors: true,
|
13
|
+
application_name: 'contentful-scheduler',
|
14
|
+
application_version: Contentful::Scheduler::VERSION
|
15
|
+
)
|
11
16
|
client.entries.find(space_id, entry_id).publish
|
12
17
|
end
|
13
18
|
end
|
@@ -26,7 +26,12 @@ describe Contentful::Scheduler::Tasks::Publish do
|
|
26
26
|
|
27
27
|
describe 'class methods' do
|
28
28
|
it '::perform' do
|
29
|
-
expect(::Contentful::Management::Client).to receive(:new)
|
29
|
+
expect(::Contentful::Management::Client).to receive(:new).with(
|
30
|
+
'foobar',
|
31
|
+
raise_errors: true,
|
32
|
+
application_name: 'contentful-scheduler',
|
33
|
+
application_version: Contentful::Scheduler::VERSION
|
34
|
+
) { mock_client }
|
30
35
|
expect(mock_client).to receive(:entries) { mock_entries }
|
31
36
|
expect(mock_entries).to receive(:find).with('foo', 'bar') { mock_entry }
|
32
37
|
expect(mock_entry).to receive(:publish)
|
data/spec/spec_helper.rb
CHANGED
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.
|
4
|
+
version: 0.2.0
|
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:
|
11
|
+
date: 2017-06-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: contentful-webhook-listener
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '1.
|
33
|
+
version: '1.8'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '1.
|
40
|
+
version: '1.8'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: resque
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -150,6 +150,20 @@ dependencies:
|
|
150
150
|
- - ">="
|
151
151
|
- !ruby/object:Gem::Version
|
152
152
|
version: '0'
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: simplecov
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - ">="
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '0'
|
160
|
+
type: :development
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - ">="
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '0'
|
153
167
|
description: Customizable Scheduler for Contentful Entries.
|
154
168
|
email:
|
155
169
|
- david.litvak@contentful.com
|
@@ -160,6 +174,7 @@ files:
|
|
160
174
|
- ".gitignore"
|
161
175
|
- ".rspec"
|
162
176
|
- ".travis.yml"
|
177
|
+
- CHANGELOG.md
|
163
178
|
- CODE_OF_CONDUCT.md
|
164
179
|
- Gemfile
|
165
180
|
- Guardfile
|
@@ -202,7 +217,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
202
217
|
version: '0'
|
203
218
|
requirements: []
|
204
219
|
rubyforge_project:
|
205
|
-
rubygems_version: 2.5.
|
220
|
+
rubygems_version: 2.5.1
|
206
221
|
signing_key:
|
207
222
|
specification_version: 4
|
208
223
|
summary: Customizable Scheduler for Contentful Entries.
|
@@ -212,4 +227,3 @@ test_files:
|
|
212
227
|
- spec/contentful/scheduler/tasks/publish_spec.rb
|
213
228
|
- spec/contentful/scheduler_spec.rb
|
214
229
|
- spec/spec_helper.rb
|
215
|
-
has_rdoc:
|