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: 4cc702a2147e9c4e058dc6d127ebcb881b3f333f
4
- data.tar.gz: 572bbe565827d7ecc00245adc776e1217ab8b4dd
3
+ metadata.gz: e6c1e89296a0e023ab7a1965e8d4e61227f50a7e
4
+ data.tar.gz: 1b88d27deb5cff6083fd1806ab6ee20cf73e3678
5
5
  SHA512:
6
- metadata.gz: 51f8f0fe78824e9d431b63600daa168681b7b577cfd128d9db55d1df29783f487f85455a054a9e0e4122f76ea1f5c5f9633cbfbfafb057ad174108907c868b7a
7
- data.tar.gz: 09ab916ac339b3ac5b9627d7c63cec79ed14d690d0b59fd7c6ca3b7702d69e47094b2aa7b210a70e05d79a437dfac1fdc6b988b7ac5342a3b8dfb35feacb7494
6
+ metadata.gz: 6ff9efe84ab5612b5d4aeabfe8193968cd15cb4745a6f5e55bd4761ce2cd3e27f7ae7473641ca848fffa564c4036ab17689373ba6dec12142feff88390cc27b5
7
+ data.tar.gz: 5f1e89b67d58bbf5f8772c749846cb98908425e2a5387990670c96f65e69cd1d04745c26eeee3d7fd3c57db00d40d84852760e71eb8beac053f9626aeb9c3e2b
data/CHANGELOG.md ADDED
@@ -0,0 +1,17 @@
1
+ # CHANGELOG
2
+
3
+ ## Unreleased
4
+
5
+ ## 0.2.0
6
+
7
+ ### Added
8
+
9
+ * Added User Agent Header Application Name
10
+
11
+ ### Changed
12
+
13
+ * Updated to latest CMA SDK Version.
14
+
15
+ ## 0.1.0
16
+
17
+ * Initial Release
@@ -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.0"
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(token, raise_errors: true)
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
@@ -1,5 +1,5 @@
1
1
  module Contentful
2
2
  module Scheduler
3
- VERSION = "0.1.0"
3
+ VERSION = "0.2.0"
4
4
  end
5
5
  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) { mock_client }
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
@@ -1,3 +1,6 @@
1
+ require 'simplecov'
2
+ SimpleCov.start
3
+
1
4
  $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
2
5
  require 'contentful/scheduler'
3
6
  require 'contentful/webhook/listener'
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.1.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: 2016-04-11 00:00:00.000000000 Z
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.0'
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.0'
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.0
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: