wcc-contentful-middleman 1.2.0 → 1.2.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 +12 -25
- 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: 4434ed9e44ab4d53c863121153d93be31356eb0cfed07c3347e0e07603949d67
|
4
|
+
data.tar.gz: 9fab04dd627c77675532e2ea78ac2da2201b405cffc5482910a1fdda3e38b3f2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b9a3a5b8f8198e4f679488579b93e742563ada22445edc2baf4efe3c45199abcf76c0dddafc49b8307273c98fbcc5339ac98cdab1e30cd08f9615192ed820b87
|
7
|
+
data.tar.gz: 426d778a8929a54d2010f8ee4a058faba9b8cdc402d557f0ff36d2a3368e1950b6d48f5146644848dc922c60d22b7862e2f743d4507bf26c56474e8676889111
|
@@ -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.2.
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Watermark Dev
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-08-09 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.2.
|
33
|
+
version: 1.2.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.2.
|
40
|
+
version: 1.2.1
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: dotenv
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -218,20 +218,14 @@ 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.2/wcc-contentful-
|
234
|
-
|
226
|
+
documentation_uri: https://watermarkchurch.github.io/wcc-contentful/1.2/wcc-contentful-middleman
|
227
|
+
rubygems_mfa_required: 'true'
|
228
|
+
post_install_message:
|
235
229
|
rdoc_options: []
|
236
230
|
require_paths:
|
237
231
|
- lib
|
@@ -239,26 +233,19 @@ 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
|
- - ">="
|
246
240
|
- !ruby/object:Gem::Version
|
247
241
|
version: '0'
|
248
242
|
requirements: []
|
249
|
-
rubygems_version: 3.
|
250
|
-
signing_key:
|
243
|
+
rubygems_version: 3.1.6
|
244
|
+
signing_key:
|
251
245
|
specification_version: 4
|
252
246
|
summary: "[![Gem Version](https://badge.fury.io/rb/wcc-contentful-middleman.svg)](https://rubygems.org/gems/wcc-contentful-middleman)
|
253
247
|
[![Build Status](https://circleci.com/gh/watermarkchurch/wcc-contentful.svg?style=svg)](https://circleci.com/gh/watermarkchurch/wcc-contentful)
|
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: []
|