wcc-contentful 1.1.2 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/wcc/contentful/webhook_controller.rb +2 -0
  3. data/app/jobs/wcc/contentful/webhook_enable_job.rb +1 -1
  4. data/lib/tasks/download_schema.rake +1 -1
  5. data/lib/wcc/contentful/active_record_shim.rb +2 -2
  6. data/lib/wcc/contentful/configuration.rb +37 -18
  7. data/lib/wcc/contentful/content_type_indexer.rb +2 -0
  8. data/lib/wcc/contentful/downloads_schema.rb +5 -4
  9. data/lib/wcc/contentful/engine.rb +2 -4
  10. data/lib/wcc/contentful/event.rb +4 -11
  11. data/lib/wcc/contentful/exceptions.rb +2 -3
  12. data/lib/wcc/contentful/indexed_representation.rb +3 -6
  13. data/lib/wcc/contentful/instrumentation.rb +2 -1
  14. data/lib/wcc/contentful/link.rb +1 -3
  15. data/lib/wcc/contentful/link_visitor.rb +2 -4
  16. data/lib/wcc/contentful/middleware/store/caching_middleware.rb +5 -9
  17. data/lib/wcc/contentful/middleware/store.rb +4 -6
  18. data/lib/wcc/contentful/model_api.rb +2 -4
  19. data/lib/wcc/contentful/model_builder.rb +8 -4
  20. data/lib/wcc/contentful/model_methods.rb +10 -12
  21. data/lib/wcc/contentful/model_singleton_methods.rb +2 -2
  22. data/lib/wcc/contentful/rich_text/node.rb +60 -0
  23. data/lib/wcc/contentful/rich_text.rb +105 -0
  24. data/lib/wcc/contentful/rspec.rb +1 -3
  25. data/lib/wcc/contentful/services.rb +9 -0
  26. data/lib/wcc/contentful/simple_client/cdn.rb +126 -0
  27. data/lib/wcc/contentful/simple_client/preview.rb +17 -0
  28. data/lib/wcc/contentful/simple_client/response.rb +47 -46
  29. data/lib/wcc/contentful/simple_client.rb +13 -118
  30. data/lib/wcc/contentful/store/base.rb +19 -27
  31. data/lib/wcc/contentful/store/cdn_adapter.rb +11 -7
  32. data/lib/wcc/contentful/store/factory.rb +1 -1
  33. data/lib/wcc/contentful/store/memory_store.rb +10 -7
  34. data/lib/wcc/contentful/store/postgres_store.rb +52 -42
  35. data/lib/wcc/contentful/store/query.rb +2 -2
  36. data/lib/wcc/contentful/store/rspec_examples/include_param.rb +6 -4
  37. data/lib/wcc/contentful/store/rspec_examples/operators.rb +1 -1
  38. data/lib/wcc/contentful/sync_engine.rb +58 -34
  39. data/lib/wcc/contentful/sys.rb +2 -1
  40. data/lib/wcc/contentful/test/double.rb +3 -5
  41. data/lib/wcc/contentful/test/factory.rb +4 -6
  42. data/lib/wcc/contentful/version.rb +1 -1
  43. data/lib/wcc/contentful.rb +10 -13
  44. data/wcc-contentful.gemspec +6 -6
  45. metadata +15 -25
@@ -6,7 +6,7 @@ require 'wcc/contentful/version'
6
6
 
7
7
  doc_version = Gem::Version.new(WCC::Contentful::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'
12
12
  spec.version = WCC::Contentful::VERSION
@@ -19,10 +19,11 @@ Gem::Specification.new do |spec|
19
19
  spec.license = 'MIT'
20
20
 
21
21
  spec.metadata = {
22
- 'documentation_uri' => "https://watermarkchurch.github.io/wcc-contentful/#{doc_version}/wcc-contentful"
22
+ 'documentation_uri' => "https://watermarkchurch.github.io/wcc-contentful/#{doc_version}/wcc-contentful",
23
+ 'rubygems_mfa_required' => 'true'
23
24
  }
24
25
 
25
- spec.required_ruby_version = '>= 2.3'
26
+ spec.required_ruby_version = '>= 2.7'
26
27
 
27
28
  spec.files = Dir['app/**/*', 'config/**/*', 'lib/**/*'] +
28
29
  %w[Rakefile README.md wcc-contentful.gemspec]
@@ -38,7 +39,6 @@ Gem::Specification.new do |spec|
38
39
  spec.add_development_dependency 'rspec', '~> 3.0'
39
40
  spec.add_development_dependency 'rspec-instrumentation-matcher'
40
41
  spec.add_development_dependency 'rspec_junit_formatter', '~> 0.4.1'
41
- spec.add_development_dependency 'rubocop', '0.68'
42
42
  spec.add_development_dependency 'simplecov', '~> 0.16.1'
43
43
  spec.add_development_dependency 'vcr', '~> 5.0'
44
44
  spec.add_development_dependency 'webmock', '~> 3.0'
@@ -54,7 +54,7 @@ Gem::Specification.new do |spec|
54
54
  spec.add_development_dependency 'generator_spec', '~> 0.9.4'
55
55
  # spec.add_development_dependency 'rails', '~> 5.0'
56
56
  # spec.add_development_dependency 'rspec-rails', '~> 3.7'
57
- spec.add_development_dependency 'sqlite3', '~> 1.3.6'
57
+ spec.add_development_dependency 'sqlite3', '~> 1.4'
58
58
  spec.add_development_dependency 'timecop', '~> 0.9.1'
59
59
 
60
60
  # optional dependencies
@@ -68,4 +68,4 @@ Gem::Specification.new do |spec|
68
68
  spec.add_dependency 'wcc-base', '~> 0.3.1'
69
69
  spec.add_dependency 'wisper', '~> 2.0.0'
70
70
  end
71
- # rubocop:enable Metrics/LineLength
71
+ # rubocop:enable Layout/LineLength
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wcc-contentful
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: byebug
@@ -136,20 +136,6 @@ dependencies:
136
136
  - - "~>"
137
137
  - !ruby/object:Gem::Version
138
138
  version: 0.4.1
139
- - !ruby/object:Gem::Dependency
140
- name: rubocop
141
- requirement: !ruby/object:Gem::Requirement
142
- requirements:
143
- - - '='
144
- - !ruby/object:Gem::Version
145
- version: '0.68'
146
- type: :development
147
- prerelease: false
148
- version_requirements: !ruby/object:Gem::Requirement
149
- requirements:
150
- - - '='
151
- - !ruby/object:Gem::Version
152
- version: '0.68'
153
139
  - !ruby/object:Gem::Dependency
154
140
  name: simplecov
155
141
  requirement: !ruby/object:Gem::Requirement
@@ -282,14 +268,14 @@ dependencies:
282
268
  requirements:
283
269
  - - "~>"
284
270
  - !ruby/object:Gem::Version
285
- version: 1.3.6
271
+ version: '1.4'
286
272
  type: :development
287
273
  prerelease: false
288
274
  version_requirements: !ruby/object:Gem::Requirement
289
275
  requirements:
290
276
  - - "~>"
291
277
  - !ruby/object:Gem::Version
292
- version: 1.3.6
278
+ version: '1.4'
293
279
  - !ruby/object:Gem::Dependency
294
280
  name: timecop
295
281
  requirement: !ruby/object:Gem::Requirement
@@ -461,10 +447,14 @@ files:
461
447
  - lib/wcc/contentful/model_singleton_methods.rb
462
448
  - lib/wcc/contentful/rails.rb
463
449
  - lib/wcc/contentful/rake.rb
450
+ - lib/wcc/contentful/rich_text.rb
451
+ - lib/wcc/contentful/rich_text/node.rb
464
452
  - lib/wcc/contentful/rspec.rb
465
453
  - lib/wcc/contentful/services.rb
466
454
  - lib/wcc/contentful/simple_client.rb
455
+ - lib/wcc/contentful/simple_client/cdn.rb
467
456
  - lib/wcc/contentful/simple_client/management.rb
457
+ - lib/wcc/contentful/simple_client/preview.rb
468
458
  - lib/wcc/contentful/simple_client/response.rb
469
459
  - lib/wcc/contentful/simple_client/typhoeus_adapter.rb
470
460
  - lib/wcc/contentful/store.rb
@@ -501,8 +491,9 @@ homepage: https://github.com/watermarkchurch/wcc-contentful/wcc-contentful
501
491
  licenses:
502
492
  - MIT
503
493
  metadata:
504
- documentation_uri: https://watermarkchurch.github.io/wcc-contentful/1.1/wcc-contentful
505
- post_install_message:
494
+ documentation_uri: https://watermarkchurch.github.io/wcc-contentful/1.3/wcc-contentful
495
+ rubygems_mfa_required: 'true'
496
+ post_install_message:
506
497
  rdoc_options: []
507
498
  require_paths:
508
499
  - lib
@@ -510,16 +501,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
510
501
  requirements:
511
502
  - - ">="
512
503
  - !ruby/object:Gem::Version
513
- version: '2.3'
504
+ version: '2.7'
514
505
  required_rubygems_version: !ruby/object:Gem::Requirement
515
506
  requirements:
516
507
  - - ">="
517
508
  - !ruby/object:Gem::Version
518
509
  version: '0'
519
510
  requirements: []
520
- rubyforge_project:
521
- rubygems_version: 2.7.6.2
522
- signing_key:
511
+ rubygems_version: 3.1.6
512
+ signing_key:
523
513
  specification_version: 4
524
514
  summary: '[![Gem Version](https://badge.fury.io/rb/wcc-contentful.svg)](https://rubygems.org/gems/wcc-contentful)
525
515
  [![Build Status](https://circleci.com/gh/watermarkchurch/wcc-contentful.svg?style=svg)](https://circleci.com/gh/watermarkchurch/wcc-contentful)