contentful_bootstrap 2.0.2 → 3.0.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 (37) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +3 -0
  3. data/CHANGELOG.md +6 -0
  4. data/Gemfile +1 -1
  5. data/examples/templates/catalogue.json +87 -62
  6. data/lib/contentful/bootstrap/commands/create_space.rb +1 -1
  7. data/lib/contentful/bootstrap/generator.rb +9 -9
  8. data/lib/contentful/bootstrap/templates/base.rb +42 -24
  9. data/lib/contentful/bootstrap/templates/blog.rb +2 -0
  10. data/lib/contentful/bootstrap/templates/json_template.rb +24 -11
  11. data/lib/contentful/bootstrap/templates/links/base.rb +5 -0
  12. data/lib/contentful/bootstrap/token.rb +3 -3
  13. data/lib/contentful/bootstrap/version.rb +5 -1
  14. data/spec/contentful/bootstrap/commands/create_space_spec.rb +56 -4
  15. data/spec/contentful/bootstrap/commands/generate_token_spec.rb +14 -0
  16. data/spec/contentful/bootstrap/templates/json_template_spec.rb +39 -1
  17. data/spec/contentful/bootstrap/templates/links/asset_spec.rb +14 -0
  18. data/spec/contentful/bootstrap/templates/links/base_spec.rb +15 -1
  19. data/spec/contentful/bootstrap/templates/links/entry_spec.rb +14 -0
  20. data/spec/fixtures/json_fixtures/high.json +6 -0
  21. data/spec/fixtures/json_fixtures/invalid.json +5 -0
  22. data/spec/fixtures/json_fixtures/issue_22.json +20 -15
  23. data/spec/fixtures/json_fixtures/links.json +18 -0
  24. data/spec/fixtures/json_fixtures/low.json +6 -0
  25. data/spec/fixtures/json_fixtures/no_ids.json +25 -0
  26. data/spec/fixtures/json_fixtures/ok_version.json +6 -0
  27. data/spec/fixtures/json_fixtures/simple.json +8 -3
  28. data/spec/fixtures/json_fixtures/wl1z0pal05vy.json +209 -172
  29. data/spec/fixtures/vcr_fixtures/create_space.yml +202 -0
  30. data/spec/fixtures/vcr_fixtures/create_space_with_blog_template.yml +4337 -0
  31. data/spec/fixtures/vcr_fixtures/create_space_with_catalogue_template.yml +9987 -0
  32. data/spec/fixtures/vcr_fixtures/create_space_with_gallery_template.yml +5609 -0
  33. data/spec/fixtures/vcr_fixtures/generate_json.yml +177 -177
  34. data/spec/fixtures/vcr_fixtures/generate_token.yml +394 -0
  35. data/spec/fixtures/vcr_fixtures/issue_22.yml +914 -307
  36. data/spec/fixtures/vcr_fixtures/no_ids.yml +1314 -0
  37. metadata +27 -3
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: 2.0.2
4
+ version: 3.0.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: 2015-11-18 00:00:00.000000000 Z
11
+ date: 2015-12-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -244,11 +244,23 @@ files:
244
244
  - spec/fixtures/ini_fixtures/no_global.ini
245
245
  - spec/fixtures/ini_fixtures/no_token.ini
246
246
  - spec/fixtures/ini_fixtures/sections.ini
247
+ - spec/fixtures/json_fixtures/high.json
248
+ - spec/fixtures/json_fixtures/invalid.json
247
249
  - spec/fixtures/json_fixtures/issue_22.json
250
+ - spec/fixtures/json_fixtures/links.json
251
+ - spec/fixtures/json_fixtures/low.json
252
+ - spec/fixtures/json_fixtures/no_ids.json
253
+ - spec/fixtures/json_fixtures/ok_version.json
248
254
  - spec/fixtures/json_fixtures/simple.json
249
255
  - spec/fixtures/json_fixtures/wl1z0pal05vy.json
256
+ - spec/fixtures/vcr_fixtures/create_space.yml
257
+ - spec/fixtures/vcr_fixtures/create_space_with_blog_template.yml
258
+ - spec/fixtures/vcr_fixtures/create_space_with_catalogue_template.yml
259
+ - spec/fixtures/vcr_fixtures/create_space_with_gallery_template.yml
250
260
  - spec/fixtures/vcr_fixtures/generate_json.yml
261
+ - spec/fixtures/vcr_fixtures/generate_token.yml
251
262
  - spec/fixtures/vcr_fixtures/issue_22.yml
263
+ - spec/fixtures/vcr_fixtures/no_ids.yml
252
264
  - spec/spec_helper.rb
253
265
  homepage: https://www.contentful.com
254
266
  licenses:
@@ -270,7 +282,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
270
282
  version: '0'
271
283
  requirements: []
272
284
  rubyforge_project:
273
- rubygems_version: 2.4.5.1
285
+ rubygems_version: 2.5.0
274
286
  signing_key:
275
287
  specification_version: 4
276
288
  summary: Contentful CLI tool for getting started with Contentful
@@ -296,10 +308,22 @@ test_files:
296
308
  - spec/fixtures/ini_fixtures/no_global.ini
297
309
  - spec/fixtures/ini_fixtures/no_token.ini
298
310
  - spec/fixtures/ini_fixtures/sections.ini
311
+ - spec/fixtures/json_fixtures/high.json
312
+ - spec/fixtures/json_fixtures/invalid.json
299
313
  - spec/fixtures/json_fixtures/issue_22.json
314
+ - spec/fixtures/json_fixtures/links.json
315
+ - spec/fixtures/json_fixtures/low.json
316
+ - spec/fixtures/json_fixtures/no_ids.json
317
+ - spec/fixtures/json_fixtures/ok_version.json
300
318
  - spec/fixtures/json_fixtures/simple.json
301
319
  - spec/fixtures/json_fixtures/wl1z0pal05vy.json
320
+ - spec/fixtures/vcr_fixtures/create_space.yml
321
+ - spec/fixtures/vcr_fixtures/create_space_with_blog_template.yml
322
+ - spec/fixtures/vcr_fixtures/create_space_with_catalogue_template.yml
323
+ - spec/fixtures/vcr_fixtures/create_space_with_gallery_template.yml
302
324
  - spec/fixtures/vcr_fixtures/generate_json.yml
325
+ - spec/fixtures/vcr_fixtures/generate_token.yml
303
326
  - spec/fixtures/vcr_fixtures/issue_22.yml
327
+ - spec/fixtures/vcr_fixtures/no_ids.yml
304
328
  - spec/spec_helper.rb
305
329
  has_rdoc: