contentful_middleman 1.2.0 → 1.3.1
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.
- checksums.yaml +4 -4
- data/.travis.yml +6 -0
- data/CHANGELOG.md +13 -0
- data/Gemfile +0 -2
- data/README.md +61 -5
- data/contentful_middleman.gemspec +1 -1
- data/lib/contentful_middleman/core.rb +17 -5
- data/lib/contentful_middleman/helpers.rb +13 -0
- data/lib/contentful_middleman/tools/preview_proxy.rb +131 -0
- data/lib/contentful_middleman/version.rb +1 -1
- data/lib/contentful_middleman/webhook_handler.rb +1 -1
- data/spec/contentful_middleman/core_spec.rb +10 -11
- data/spec/contentful_middleman/helpers_spec.rb +17 -0
- data/spec/contentful_middleman/tools/preview_proxy_spec.rb +368 -0
- data/spec/fixtures/vcr_fixtures/helpers/preview.yml +211 -0
- data/spec/fixtures/vcr_fixtures/tools/preview_helper.yml +93 -0
- data/spec/fixtures/vcr_fixtures/tools/preview_helper/asset.yml +104 -0
- data/spec/fixtures/vcr_fixtures/tools/preview_helper/asset_2.yml +104 -0
- data/spec/fixtures/vcr_fixtures/tools/preview_helper/assets.yml +91 -0
- data/spec/fixtures/vcr_fixtures/tools/preview_helper/assets_2.yml +91 -0
- data/spec/fixtures/vcr_fixtures/tools/preview_helper/entries.yml +121 -0
- data/spec/fixtures/vcr_fixtures/tools/preview_helper/entries_2.yml +96 -0
- data/spec/fixtures/vcr_fixtures/tools/preview_helper/entry.yml +106 -0
- data/spec/fixtures/vcr_fixtures/tools/preview_helper/entry_2.yml +119 -0
- data/spec/spec_helper.rb +7 -1
- metadata +28 -5
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: 1.
|
4
|
+
version: 1.3.1
|
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:
|
12
|
+
date: 2016-01-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: middleman-core
|
@@ -17,14 +17,14 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - "~>"
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: '3.
|
20
|
+
version: '3.4'
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
25
|
- - "~>"
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: '3.
|
27
|
+
version: '3.4'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: contentful
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
@@ -196,6 +196,7 @@ files:
|
|
196
196
|
- lib/contentful_middleman/local_data/store.rb
|
197
197
|
- lib/contentful_middleman/mappers/base.rb
|
198
198
|
- lib/contentful_middleman/tools/backup.rb
|
199
|
+
- lib/contentful_middleman/tools/preview_proxy.rb
|
199
200
|
- lib/contentful_middleman/version.rb
|
200
201
|
- lib/contentful_middleman/version_hash.rb
|
201
202
|
- lib/contentful_middleman/webhook_handler.rb
|
@@ -209,6 +210,7 @@ files:
|
|
209
210
|
- spec/contentful_middleman/local_data/store_spec.rb
|
210
211
|
- spec/contentful_middleman/mappers/base_spec.rb
|
211
212
|
- spec/contentful_middleman/tools/backup_spec.rb
|
213
|
+
- spec/contentful_middleman/tools/preview_proxy_spec.rb
|
212
214
|
- spec/contentful_middleman/version_hash_spec.rb
|
213
215
|
- spec/contentful_middleman/webhook_handler_spec.rb
|
214
216
|
- spec/fixtures/backup_fixtures/.tmp/backups/.gitkeep
|
@@ -217,10 +219,20 @@ files:
|
|
217
219
|
- spec/fixtures/space_hash_fixtures/.foo-space-hash
|
218
220
|
- spec/fixtures/space_hash_fixtures/.foobar-space-hash
|
219
221
|
- spec/fixtures/space_hash_fixtures/.my_space-space-hash
|
222
|
+
- spec/fixtures/vcr_fixtures/helpers/preview.yml
|
220
223
|
- spec/fixtures/vcr_fixtures/instance/entries_1.yml
|
221
224
|
- spec/fixtures/vcr_fixtures/instance/entries_2.yml
|
222
225
|
- spec/fixtures/vcr_fixtures/mappers/entries.yml
|
223
226
|
- spec/fixtures/vcr_fixtures/mappers/entries_localized.yml
|
227
|
+
- spec/fixtures/vcr_fixtures/tools/preview_helper.yml
|
228
|
+
- spec/fixtures/vcr_fixtures/tools/preview_helper/asset.yml
|
229
|
+
- spec/fixtures/vcr_fixtures/tools/preview_helper/asset_2.yml
|
230
|
+
- spec/fixtures/vcr_fixtures/tools/preview_helper/assets.yml
|
231
|
+
- spec/fixtures/vcr_fixtures/tools/preview_helper/assets_2.yml
|
232
|
+
- spec/fixtures/vcr_fixtures/tools/preview_helper/entries.yml
|
233
|
+
- spec/fixtures/vcr_fixtures/tools/preview_helper/entries_2.yml
|
234
|
+
- spec/fixtures/vcr_fixtures/tools/preview_helper/entry.yml
|
235
|
+
- spec/fixtures/vcr_fixtures/tools/preview_helper/entry_2.yml
|
224
236
|
- spec/spec_helper.rb
|
225
237
|
homepage: https://www.contentful.com
|
226
238
|
licenses:
|
@@ -242,7 +254,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
242
254
|
version: '0'
|
243
255
|
requirements: []
|
244
256
|
rubyforge_project:
|
245
|
-
rubygems_version: 2.
|
257
|
+
rubygems_version: 2.5.0
|
246
258
|
signing_key:
|
247
259
|
specification_version: 4
|
248
260
|
summary: Include mangablable content from the Contentful CMS and API into your Middleman
|
@@ -257,6 +269,7 @@ test_files:
|
|
257
269
|
- spec/contentful_middleman/local_data/store_spec.rb
|
258
270
|
- spec/contentful_middleman/mappers/base_spec.rb
|
259
271
|
- spec/contentful_middleman/tools/backup_spec.rb
|
272
|
+
- spec/contentful_middleman/tools/preview_proxy_spec.rb
|
260
273
|
- spec/contentful_middleman/version_hash_spec.rb
|
261
274
|
- spec/contentful_middleman/webhook_handler_spec.rb
|
262
275
|
- spec/fixtures/backup_fixtures/.tmp/backups/.gitkeep
|
@@ -265,8 +278,18 @@ test_files:
|
|
265
278
|
- spec/fixtures/space_hash_fixtures/.foo-space-hash
|
266
279
|
- spec/fixtures/space_hash_fixtures/.foobar-space-hash
|
267
280
|
- spec/fixtures/space_hash_fixtures/.my_space-space-hash
|
281
|
+
- spec/fixtures/vcr_fixtures/helpers/preview.yml
|
268
282
|
- spec/fixtures/vcr_fixtures/instance/entries_1.yml
|
269
283
|
- spec/fixtures/vcr_fixtures/instance/entries_2.yml
|
270
284
|
- spec/fixtures/vcr_fixtures/mappers/entries.yml
|
271
285
|
- spec/fixtures/vcr_fixtures/mappers/entries_localized.yml
|
286
|
+
- spec/fixtures/vcr_fixtures/tools/preview_helper.yml
|
287
|
+
- spec/fixtures/vcr_fixtures/tools/preview_helper/asset.yml
|
288
|
+
- spec/fixtures/vcr_fixtures/tools/preview_helper/asset_2.yml
|
289
|
+
- spec/fixtures/vcr_fixtures/tools/preview_helper/assets.yml
|
290
|
+
- spec/fixtures/vcr_fixtures/tools/preview_helper/assets_2.yml
|
291
|
+
- spec/fixtures/vcr_fixtures/tools/preview_helper/entries.yml
|
292
|
+
- spec/fixtures/vcr_fixtures/tools/preview_helper/entries_2.yml
|
293
|
+
- spec/fixtures/vcr_fixtures/tools/preview_helper/entry.yml
|
294
|
+
- spec/fixtures/vcr_fixtures/tools/preview_helper/entry_2.yml
|
272
295
|
- spec/spec_helper.rb
|