contentful_middleman 4.0.1 → 4.1.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.
data/spec/spec_helper.rb CHANGED
@@ -31,6 +31,12 @@ def yaml(name)
31
31
  yaml
32
32
  end
33
33
 
34
+ def json(name)
35
+ json = JSON.load(File.read("spec/fixtures/json_fixtures/#{name}.json"))
36
+ yield json if block_given?
37
+ json
38
+ end
39
+
34
40
  class ServerDouble
35
41
  def [](key)
36
42
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: contentful_middleman
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.1
4
+ version: 4.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sascha Konietzke
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-06-14 00:00:00.000000000 Z
12
+ date: 2018-10-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: middleman-core
@@ -67,6 +67,20 @@ dependencies:
67
67
  - - "~>"
68
68
  - !ruby/object:Gem::Version
69
69
  version: '0.1'
70
+ - !ruby/object:Gem::Dependency
71
+ name: rich_text_renderer
72
+ requirement: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - "~>"
75
+ - !ruby/object:Gem::Version
76
+ version: '0.1'
77
+ type: :runtime
78
+ prerelease: false
79
+ version_requirements: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - "~>"
82
+ - !ruby/object:Gem::Version
83
+ version: '0.1'
70
84
  - !ruby/object:Gem::Dependency
71
85
  name: rubygems-tasks
72
86
  requirement: !ruby/object:Gem::Requirement
@@ -265,6 +279,7 @@ files:
265
279
  - spec/contentful_middleman/webhook_handler_spec.rb
266
280
  - spec/fixtures/backup_fixtures/.tmp/backups/.gitkeep
267
281
  - spec/fixtures/backup_fixtures/baz
282
+ - spec/fixtures/json_fixtures/structured_text.json
268
283
  - spec/fixtures/space_hash_fixtures/.blah-space-hash
269
284
  - spec/fixtures/space_hash_fixtures/.foo-space-hash
270
285
  - spec/fixtures/space_hash_fixtures/.foobar-space-hash
@@ -277,6 +292,7 @@ files:
277
292
  - spec/fixtures/vcr_fixtures/entries/nil_file.yml
278
293
  - spec/fixtures/vcr_fixtures/entries/repeated_entry.yml
279
294
  - spec/fixtures/vcr_fixtures/helpers/preview.yml
295
+ - spec/fixtures/vcr_fixtures/helpers/rich_text.yml
280
296
  - spec/fixtures/vcr_fixtures/instance/entries_1.yml
281
297
  - spec/fixtures/vcr_fixtures/instance/entries_2.yml
282
298
  - spec/fixtures/vcr_fixtures/instance/entries_3.yml
@@ -333,6 +349,7 @@ test_files:
333
349
  - spec/contentful_middleman/webhook_handler_spec.rb
334
350
  - spec/fixtures/backup_fixtures/.tmp/backups/.gitkeep
335
351
  - spec/fixtures/backup_fixtures/baz
352
+ - spec/fixtures/json_fixtures/structured_text.json
336
353
  - spec/fixtures/space_hash_fixtures/.blah-space-hash
337
354
  - spec/fixtures/space_hash_fixtures/.foo-space-hash
338
355
  - spec/fixtures/space_hash_fixtures/.foobar-space-hash
@@ -345,6 +362,7 @@ test_files:
345
362
  - spec/fixtures/vcr_fixtures/entries/nil_file.yml
346
363
  - spec/fixtures/vcr_fixtures/entries/repeated_entry.yml
347
364
  - spec/fixtures/vcr_fixtures/helpers/preview.yml
365
+ - spec/fixtures/vcr_fixtures/helpers/rich_text.yml
348
366
  - spec/fixtures/vcr_fixtures/instance/entries_1.yml
349
367
  - spec/fixtures/vcr_fixtures/instance/entries_2.yml
350
368
  - spec/fixtures/vcr_fixtures/instance/entries_3.yml