wcc-contentful-middleman 1.2.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/wcc/contentful/middleman/extension.rb +6 -6
- data/lib/wcc/contentful/middleman/version.rb +1 -1
- data/wcc-contentful-middleman.gemspec +5 -5
- metadata +8 -21
- data/spec/fixtures/contentful/content_types_mgmt_api.json +0 -4384
- data/spec/fixtures/contentful/contentful-schema.json +0 -4511
- data/spec/fixtures/contentful/sync.json +0 -1547
- data/spec/fixtures/contentful/sync_empty.json +0 -7
- data/spec/spec_helper.rb +0 -98
- data/spec/support/fixtures_helper.rb +0 -31
- data/spec/wcc/contentful/middleman/extension_spec.rb +0 -69
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5833ebdc9b2af1803ede0cf205065fb705383c4e3c3762d7ac62900df9010a74
|
4
|
+
data.tar.gz: 2c18c6ec4d5c1d09b7c917393f8155fc2ecee66604bcbd9ac5c0320ca6086723
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2401ef13f5970793779e1e54002d2e08a30cd85040e11a4db9cfb174e5e7efaf02efbbe562c4cfa79a3df5e1198a9312f8806e2d3977c9f274a7193a723936b
|
7
|
+
data.tar.gz: 8e2ba12ccb08b5ba9a5de2c05412a7b401c3eb223c92a8c10659b6342404f430acf625d9f75c75c39f77755ff8411b7643c90c9eb16d87c9b4a57eb7d59a6915
|
@@ -2,24 +2,24 @@
|
|
2
2
|
|
3
3
|
class WCC::Contentful::Middleman::Extension < ::Middleman::Extension
|
4
4
|
option :space,
|
5
|
-
ENV
|
5
|
+
ENV.fetch('CONTENTFUL_SPACE_ID', nil),
|
6
6
|
"Set the Contentful space ID (defaults to ENV['CONTENTFUL_SPACE_ID'])"
|
7
7
|
option :access_token,
|
8
|
-
ENV
|
8
|
+
ENV.fetch('CONTENTFUL_ACCESS_TOKEN', nil),
|
9
9
|
"Set the Contentful CDN access key (defaults to ENV['CONTENTFUL_ACCESS_TOKEN'])"
|
10
10
|
option :management_token,
|
11
|
-
ENV
|
11
|
+
ENV.fetch('CONTENTFUL_MANAGEMENT_TOKEN', nil),
|
12
12
|
"Set the Contentful API access token (defaults to ENV['CONTENTFUL_MANAGEMENT_TOKEN'])"
|
13
13
|
option :preview_token,
|
14
|
-
ENV
|
14
|
+
ENV.fetch('CONTENTFUL_PREVIEW_TOKEN', nil),
|
15
15
|
"Set the Contentful Preview access token (defaults to ENV['CONTENTFUL_PREVIEW_TOKEN'])"
|
16
16
|
option :environment,
|
17
|
-
ENV
|
17
|
+
ENV.fetch('CONTENTFUL_ENVIRONMENT', nil),
|
18
18
|
"Set the Contentful environment (defaults to ENV['CONTENTFUL_ENVIRONMENT'])"
|
19
19
|
|
20
20
|
def initialize(app, options_hash = {}, &block)
|
21
21
|
# don't pass block to super b/c we use it to configure WCC::Contentful
|
22
|
-
super(app, options_hash) {}
|
22
|
+
super(app, options_hash) {} # rubocop:disable Lint/EmptyBlock
|
23
23
|
|
24
24
|
# Require libraries only when activated
|
25
25
|
require 'wcc/contentful'
|
@@ -6,7 +6,7 @@ require 'wcc/contentful/middleman/version'
|
|
6
6
|
|
7
7
|
doc_version = Gem::Version.new(WCC::Contentful::Middleman::VERSION).release.to_s.sub(/\.\d+$/, '')
|
8
8
|
|
9
|
-
# rubocop:disable
|
9
|
+
# rubocop:disable Layout/LineLength
|
10
10
|
Gem::Specification.new do |spec|
|
11
11
|
spec.name = 'wcc-contentful-middleman'
|
12
12
|
spec.version = WCC::Contentful::Middleman::VERSION
|
@@ -18,15 +18,15 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.homepage = 'https://github.com/watermarkchurch/wcc-contentful'
|
19
19
|
spec.license = 'MIT'
|
20
20
|
|
21
|
-
spec.required_ruby_version = '>= 2.
|
21
|
+
spec.required_ruby_version = '>= 2.7'
|
22
22
|
|
23
23
|
spec.metadata = {
|
24
|
-
'documentation_uri' => "https://watermarkchurch.github.io/wcc-contentful/#{doc_version}/wcc-contentful-
|
24
|
+
'documentation_uri' => "https://watermarkchurch.github.io/wcc-contentful/#{doc_version}/wcc-contentful-middleman",
|
25
|
+
'rubygems_mfa_required' => 'true'
|
25
26
|
}
|
26
27
|
|
27
28
|
spec.files = Dir['lib/**/*'] + %w[Rakefile README.md wcc-contentful-middleman.gemspec]
|
28
29
|
|
29
|
-
spec.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
30
30
|
spec.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
|
31
31
|
spec.require_paths = ['lib']
|
32
32
|
|
@@ -50,4 +50,4 @@ Gem::Specification.new do |spec|
|
|
50
50
|
spec.add_development_dependency 'guard-rubocop', '~> 1.3.0'
|
51
51
|
spec.add_development_dependency 'guard-shell', '~> 0.7.1'
|
52
52
|
end
|
53
|
-
# rubocop:enable
|
53
|
+
# rubocop:enable Layout/LineLength
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wcc-contentful-middleman
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Watermark Dev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-09-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: middleman-core
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 1.
|
33
|
+
version: 1.3.1
|
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.3.1
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: dotenv
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -218,19 +218,13 @@ files:
|
|
218
218
|
- lib/wcc/contentful/middleman.rb
|
219
219
|
- lib/wcc/contentful/middleman/extension.rb
|
220
220
|
- lib/wcc/contentful/middleman/version.rb
|
221
|
-
- spec/fixtures/contentful/content_types_mgmt_api.json
|
222
|
-
- spec/fixtures/contentful/contentful-schema.json
|
223
|
-
- spec/fixtures/contentful/sync.json
|
224
|
-
- spec/fixtures/contentful/sync_empty.json
|
225
|
-
- spec/spec_helper.rb
|
226
|
-
- spec/support/fixtures_helper.rb
|
227
|
-
- spec/wcc/contentful/middleman/extension_spec.rb
|
228
221
|
- wcc-contentful-middleman.gemspec
|
229
222
|
homepage: https://github.com/watermarkchurch/wcc-contentful
|
230
223
|
licenses:
|
231
224
|
- MIT
|
232
225
|
metadata:
|
233
|
-
documentation_uri: https://watermarkchurch.github.io/wcc-contentful/1.
|
226
|
+
documentation_uri: https://watermarkchurch.github.io/wcc-contentful/1.3/wcc-contentful-middleman
|
227
|
+
rubygems_mfa_required: 'true'
|
234
228
|
post_install_message:
|
235
229
|
rdoc_options: []
|
236
230
|
require_paths:
|
@@ -239,7 +233,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
239
233
|
requirements:
|
240
234
|
- - ">="
|
241
235
|
- !ruby/object:Gem::Version
|
242
|
-
version: '2.
|
236
|
+
version: '2.7'
|
243
237
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
244
238
|
requirements:
|
245
239
|
- - ">="
|
@@ -254,11 +248,4 @@ summary: "[![Gem Version](https://badge.fury.io/rb/wcc-contentful-middleman.svg)
|
|
254
248
|
[![Coverage Status](https://coveralls.io/repos/github/watermarkchurch/wcc-contentful/badge.svg?branch=master)](https://coveralls.io/github/watermarkchurch/wcc-contentful?branch=master)
|
255
249
|
\ # WCC::Contentful::Middleman A plugin for middleman static sites to use the [wcc-contentful](https://rubygems.org/gems/wcc-contentful)
|
256
250
|
gem for connecting to Contentful."
|
257
|
-
test_files:
|
258
|
-
- spec/fixtures/contentful/content_types_mgmt_api.json
|
259
|
-
- spec/fixtures/contentful/contentful-schema.json
|
260
|
-
- spec/fixtures/contentful/sync.json
|
261
|
-
- spec/fixtures/contentful/sync_empty.json
|
262
|
-
- spec/spec_helper.rb
|
263
|
-
- spec/support/fixtures_helper.rb
|
264
|
-
- spec/wcc/contentful/middleman/extension_spec.rb
|
251
|
+
test_files: []
|