contentful_bootstrap 3.8.0 → 3.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +13 -0
- data/README.md +42 -5
- data/bin/contentful_bootstrap +9 -0
- data/lib/contentful/bootstrap/command_runner.rb +3 -1
- data/lib/contentful/bootstrap/commands/base.rb +2 -2
- data/lib/contentful/bootstrap/commands/create_space.rb +2 -1
- data/lib/contentful/bootstrap/commands/generate_json.rb +22 -10
- data/lib/contentful/bootstrap/commands/update_space.rb +3 -1
- data/lib/contentful/bootstrap/generator.rb +48 -26
- data/lib/contentful/bootstrap/templates/base.rb +31 -18
- data/lib/contentful/bootstrap/templates/json_template.rb +2 -2
- data/lib/contentful/bootstrap/version.rb +1 -1
- data/spec/contentful/bootstrap/command_runner_spec.rb +2 -2
- data/spec/contentful/bootstrap/commands/base_spec.rb +2 -2
- data/spec/contentful/bootstrap/commands/create_space_spec.rb +19 -0
- data/spec/contentful/bootstrap/commands/generate_json_spec.rb +17 -0
- data/spec/contentful/bootstrap/commands/update_space_spec.rb +73 -21
- data/spec/contentful/bootstrap/generator_spec.rb +3 -3
- data/spec/fixtures/json_fixtures/assets_draft.json +39 -0
- data/spec/fixtures/json_fixtures/f3abi4dqvrhg_preview.json +40 -0
- data/spec/fixtures/json_fixtures/wl1z0pal05vy.json +92 -79
- data/spec/fixtures/vcr_fixtures/check_update_space_with_draft_content.yml +444 -0
- data/spec/fixtures/vcr_fixtures/generate_json.yml +221 -207
- data/spec/fixtures/vcr_fixtures/generate_json_preview.yml +421 -0
- data/spec/fixtures/vcr_fixtures/update_existing_asset.yml +1802 -0
- metadata +12 -2
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: contentful_bootstrap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Litvak Bruno
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-11-
|
11
|
+
date: 2017-11-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -297,7 +297,9 @@ files:
|
|
297
297
|
- spec/fixtures/ini_fixtures/orgid.ini
|
298
298
|
- spec/fixtures/ini_fixtures/sections.ini
|
299
299
|
- spec/fixtures/json_fixtures/asset_no_transform.json
|
300
|
+
- spec/fixtures/json_fixtures/assets_draft.json
|
300
301
|
- spec/fixtures/json_fixtures/display_field.json
|
302
|
+
- spec/fixtures/json_fixtures/f3abi4dqvrhg_preview.json
|
301
303
|
- spec/fixtures/json_fixtures/high.json
|
302
304
|
- spec/fixtures/json_fixtures/invalid.json
|
303
305
|
- spec/fixtures/json_fixtures/issue_22.json
|
@@ -314,17 +316,20 @@ files:
|
|
314
316
|
- spec/fixtures/vcr_fixtures/asset_no_transform.yml
|
315
317
|
- spec/fixtures/vcr_fixtures/check_created_space.yml
|
316
318
|
- spec/fixtures/vcr_fixtures/check_update_space_localized.yml
|
319
|
+
- spec/fixtures/vcr_fixtures/check_update_space_with_draft_content.yml
|
317
320
|
- spec/fixtures/vcr_fixtures/create_space.yml
|
318
321
|
- spec/fixtures/vcr_fixtures/create_space_with_blog_template.yml
|
319
322
|
- spec/fixtures/vcr_fixtures/create_space_with_catalogue_template.yml
|
320
323
|
- spec/fixtures/vcr_fixtures/create_space_with_gallery_template.yml
|
321
324
|
- spec/fixtures/vcr_fixtures/generate_json.yml
|
322
325
|
- spec/fixtures/vcr_fixtures/generate_json_content_types_only.yml
|
326
|
+
- spec/fixtures/vcr_fixtures/generate_json_preview.yml
|
323
327
|
- spec/fixtures/vcr_fixtures/generate_token.yml
|
324
328
|
- spec/fixtures/vcr_fixtures/issue_22.yml
|
325
329
|
- spec/fixtures/vcr_fixtures/multiple_organizations.yml
|
326
330
|
- spec/fixtures/vcr_fixtures/no_ids.yml
|
327
331
|
- spec/fixtures/vcr_fixtures/space_with_different_locale.yml
|
332
|
+
- spec/fixtures/vcr_fixtures/update_existing_asset.yml
|
328
333
|
- spec/fixtures/vcr_fixtures/update_space_localized.yml
|
329
334
|
- spec/spec_helper.rb
|
330
335
|
homepage: https://www.contentful.com
|
@@ -377,7 +382,9 @@ test_files:
|
|
377
382
|
- spec/fixtures/ini_fixtures/orgid.ini
|
378
383
|
- spec/fixtures/ini_fixtures/sections.ini
|
379
384
|
- spec/fixtures/json_fixtures/asset_no_transform.json
|
385
|
+
- spec/fixtures/json_fixtures/assets_draft.json
|
380
386
|
- spec/fixtures/json_fixtures/display_field.json
|
387
|
+
- spec/fixtures/json_fixtures/f3abi4dqvrhg_preview.json
|
381
388
|
- spec/fixtures/json_fixtures/high.json
|
382
389
|
- spec/fixtures/json_fixtures/invalid.json
|
383
390
|
- spec/fixtures/json_fixtures/issue_22.json
|
@@ -394,16 +401,19 @@ test_files:
|
|
394
401
|
- spec/fixtures/vcr_fixtures/asset_no_transform.yml
|
395
402
|
- spec/fixtures/vcr_fixtures/check_created_space.yml
|
396
403
|
- spec/fixtures/vcr_fixtures/check_update_space_localized.yml
|
404
|
+
- spec/fixtures/vcr_fixtures/check_update_space_with_draft_content.yml
|
397
405
|
- spec/fixtures/vcr_fixtures/create_space.yml
|
398
406
|
- spec/fixtures/vcr_fixtures/create_space_with_blog_template.yml
|
399
407
|
- spec/fixtures/vcr_fixtures/create_space_with_catalogue_template.yml
|
400
408
|
- spec/fixtures/vcr_fixtures/create_space_with_gallery_template.yml
|
401
409
|
- spec/fixtures/vcr_fixtures/generate_json.yml
|
402
410
|
- spec/fixtures/vcr_fixtures/generate_json_content_types_only.yml
|
411
|
+
- spec/fixtures/vcr_fixtures/generate_json_preview.yml
|
403
412
|
- spec/fixtures/vcr_fixtures/generate_token.yml
|
404
413
|
- spec/fixtures/vcr_fixtures/issue_22.yml
|
405
414
|
- spec/fixtures/vcr_fixtures/multiple_organizations.yml
|
406
415
|
- spec/fixtures/vcr_fixtures/no_ids.yml
|
407
416
|
- spec/fixtures/vcr_fixtures/space_with_different_locale.yml
|
417
|
+
- spec/fixtures/vcr_fixtures/update_existing_asset.yml
|
408
418
|
- spec/fixtures/vcr_fixtures/update_space_localized.yml
|
409
419
|
- spec/spec_helper.rb
|