wcc-contentful-middleman 1.1.2 → 1.3.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
  SHA256:
3
- metadata.gz: 72ffd15b3f8a8c1bba0194dbfdf2e618b2ce789bf7b276d68333abda9fac8324
4
- data.tar.gz: 6ac831c99eeb71f05c232c3308eb2f70638bae7cf76b06473c853bd6a084cf98
3
+ metadata.gz: d391ba60a35b71fc9e3fccb2fd2b70c765f7c1ad7612d2ba4d4719206c233293
4
+ data.tar.gz: d25ea0799976aff4e3bd82d1386add707c6d37e2e5b60e910f5b8c2abb33f43c
5
5
  SHA512:
6
- metadata.gz: 2e901f180bc918231dc589e05560f671028842c54b86e8ab80dce2ed1501dd094befbe000f7f04ac02610c767c207890f3ee2bd2b0b526f5fa5e0b4badc4f934
7
- data.tar.gz: fb0aa7a6cae4a1bcdce7aea28096c97322f963da0d932d0eb6db66ee2e964fc209da502d63ab7fe710d7d13bdba4e83ccb0d1044d03dec6fb8696e84a5952aab
6
+ metadata.gz: 682fedbb3b4361de933d477a21efb2ad19b5f23b48cf74f4e57b64704a174c1f34970c9857c8ec836e4e0681de232e28d789390a2cab843e4ef535ed4dc82e66
7
+ data.tar.gz: 99d0ac2a90eccb4dae52977d69e3b8af6328075a689c1f56c514206e54583361cc87897ba934af5bc4bd95a95d73a24a03e7a046a2f3ff8fa2ae02142150f1dd
@@ -2,24 +2,24 @@
2
2
 
3
3
  class WCC::Contentful::Middleman::Extension < ::Middleman::Extension
4
4
  option :space,
5
- ENV['CONTENTFUL_SPACE_ID'],
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['CONTENTFUL_ACCESS_TOKEN'],
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['CONTENTFUL_MANAGEMENT_TOKEN'],
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['CONTENTFUL_PREVIEW_TOKEN'],
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['CONTENTFUL_ENVIRONMENT'],
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'
@@ -3,7 +3,7 @@
3
3
  module WCC
4
4
  module Contentful
5
5
  module Middleman
6
- VERSION = '1.1.2'
6
+ VERSION = '1.3.0'
7
7
  end
8
8
  end
9
9
  end
@@ -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 Metrics/LineLength
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.3'
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-graphql"
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 Metrics/LineLength
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.1.2
4
+ version: 1.3.0
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-02-16 00:00:00.000000000 Z
11
+ date: 2022-08-19 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.1.2
33
+ version: 1.3.0
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.1.2
40
+ version: 1.3.0
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.1/wcc-contentful-graphql
234
- post_install_message:
226
+ documentation_uri: https://watermarkchurch.github.io/wcc-contentful/1.3/wcc-contentful-middleman
227
+ rubygems_mfa_required: 'true'
228
+ post_install_message:
235
229
  rdoc_options: []
236
230
  require_paths:
237
231
  - lib
@@ -239,27 +233,19 @@ required_ruby_version: !ruby/object:Gem::Requirement
239
233
  requirements:
240
234
  - - ">="
241
235
  - !ruby/object:Gem::Version
242
- version: '2.3'
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
- rubyforge_project:
250
- rubygems_version: 2.7.6.2
251
- signing_key:
243
+ rubygems_version: 3.1.6
244
+ signing_key:
252
245
  specification_version: 4
253
246
  summary: "[![Gem Version](https://badge.fury.io/rb/wcc-contentful-middleman.svg)](https://rubygems.org/gems/wcc-contentful-middleman)
254
247
  [![Build Status](https://circleci.com/gh/watermarkchurch/wcc-contentful.svg?style=svg)](https://circleci.com/gh/watermarkchurch/wcc-contentful)
255
248
  [![Coverage Status](https://coveralls.io/repos/github/watermarkchurch/wcc-contentful/badge.svg?branch=master)](https://coveralls.io/github/watermarkchurch/wcc-contentful?branch=master)
256
249
  \ # WCC::Contentful::Middleman A plugin for middleman static sites to use the [wcc-contentful](https://rubygems.org/gems/wcc-contentful)
257
250
  gem for connecting to Contentful."
258
- test_files:
259
- - spec/fixtures/contentful/content_types_mgmt_api.json
260
- - spec/fixtures/contentful/contentful-schema.json
261
- - spec/fixtures/contentful/sync.json
262
- - spec/fixtures/contentful/sync_empty.json
263
- - spec/spec_helper.rb
264
- - spec/support/fixtures_helper.rb
265
- - spec/wcc/contentful/middleman/extension_spec.rb
251
+ test_files: []