contentful_bootstrap 3.10.0 → 3.11.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.
- checksums.yaml +5 -5
- data/.rubocop.yml +9 -5
- data/.rubocop_todo.yml +34 -76
- data/CHANGELOG.md +7 -0
- data/Guardfile +20 -4
- data/README.md +6 -6
- data/bin/contentful_bootstrap +46 -42
- data/contentful_bootstrap.gemspec +6 -3
- data/lib/contentful/bootstrap/command_runner.rb +3 -1
- data/lib/contentful/bootstrap/commands/base.rb +15 -15
- data/lib/contentful/bootstrap/commands/create_space.rb +5 -6
- data/lib/contentful/bootstrap/commands/generate_json.rb +13 -2
- data/lib/contentful/bootstrap/commands/generate_token.rb +6 -6
- data/lib/contentful/bootstrap/commands/update_space.rb +2 -2
- data/lib/contentful/bootstrap/generator.rb +5 -4
- data/lib/contentful/bootstrap/support.rb +1 -1
- data/lib/contentful/bootstrap/templates/base.rb +22 -25
- data/lib/contentful/bootstrap/templates/json_template.rb +49 -56
- data/lib/contentful/bootstrap/templates/links/base.rb +1 -1
- data/lib/contentful/bootstrap/token.rb +1 -1
- 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 +3 -15
- data/spec/contentful/bootstrap/commands/create_space_spec.rb +2 -2
- data/spec/contentful/bootstrap/commands/generate_json_spec.rb +1 -1
- data/spec/contentful/bootstrap/commands/generate_token_spec.rb +1 -1
- data/spec/contentful/bootstrap/commands/update_space_spec.rb +36 -8
- data/spec/contentful/bootstrap/generator_spec.rb +17 -2
- data/spec/contentful/bootstrap/templates/base_spec.rb +10 -8
- data/spec/contentful/bootstrap/templates/blog_spec.rb +9 -1
- data/spec/contentful/bootstrap/templates/catalogue_spec.rb +9 -1
- data/spec/contentful/bootstrap/templates/gallery_spec.rb +9 -1
- data/spec/contentful/bootstrap/templates/json_template_spec.rb +17 -9
- data/spec/fixtures/json_fixtures/environment_template.json +47 -0
- data/spec/fixtures/vcr_fixtures/asset_no_transform.yml +119 -4
- data/spec/fixtures/vcr_fixtures/check_created_space.yml +1 -1
- data/spec/fixtures/vcr_fixtures/check_original_staging_environment_status.yml +201 -0
- data/spec/fixtures/vcr_fixtures/check_staging_environment_status.yml +81 -0
- data/spec/fixtures/vcr_fixtures/check_update_space_localized.yml +2 -2
- data/spec/fixtures/vcr_fixtures/check_update_space_with_draft_content.yml +4 -4
- data/spec/fixtures/vcr_fixtures/create_space_with_blog_template.yml +153 -38
- data/spec/fixtures/vcr_fixtures/create_space_with_catalogue_template.yml +196 -81
- data/spec/fixtures/vcr_fixtures/create_space_with_gallery_template.yml +165 -50
- data/spec/fixtures/vcr_fixtures/generate_json.yml +5 -5
- data/spec/fixtures/vcr_fixtures/generate_json_content_types_only.yml +1 -1
- data/spec/fixtures/vcr_fixtures/generate_json_environments.yml +447 -0
- data/spec/fixtures/vcr_fixtures/generate_json_multi_ct.yml +5 -5
- data/spec/fixtures/vcr_fixtures/generate_json_preview.yml +5 -5
- data/spec/fixtures/vcr_fixtures/generate_json_single_ct.yml +5 -5
- data/spec/fixtures/vcr_fixtures/issue_22.yml +142 -27
- data/spec/fixtures/vcr_fixtures/no_ids.yml +126 -11
- data/spec/fixtures/vcr_fixtures/update_existing_asset.yml +130 -15
- data/spec/fixtures/vcr_fixtures/update_space_localized.yml +134 -19
- data/spec/fixtures/vcr_fixtures/update_with_environment.yml +2531 -0
- metadata +55 -17
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.11.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:
|
11
|
+
date: 2018-04-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -156,14 +156,42 @@ dependencies:
|
|
156
156
|
requirements:
|
157
157
|
- - "~>"
|
158
158
|
- !ruby/object:Gem::Version
|
159
|
-
version: 3.0
|
159
|
+
version: '3.0'
|
160
160
|
type: :development
|
161
161
|
prerelease: false
|
162
162
|
version_requirements: !ruby/object:Gem::Requirement
|
163
163
|
requirements:
|
164
164
|
- - "~>"
|
165
165
|
- !ruby/object:Gem::Version
|
166
|
-
version: 3.0
|
166
|
+
version: '3.0'
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: guard-rubocop
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - ">="
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '0'
|
174
|
+
type: :development
|
175
|
+
prerelease: false
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - ">="
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: '0'
|
181
|
+
- !ruby/object:Gem::Dependency
|
182
|
+
name: rubocop
|
183
|
+
requirement: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - "~>"
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: '0.49'
|
188
|
+
type: :development
|
189
|
+
prerelease: false
|
190
|
+
version_requirements: !ruby/object:Gem::Requirement
|
191
|
+
requirements:
|
192
|
+
- - "~>"
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: '0.49'
|
167
195
|
- !ruby/object:Gem::Dependency
|
168
196
|
name: launchy
|
169
197
|
requirement: !ruby/object:Gem::Requirement
|
@@ -184,34 +212,34 @@ dependencies:
|
|
184
212
|
requirements:
|
185
213
|
- - "~>"
|
186
214
|
- !ruby/object:Gem::Version
|
187
|
-
version: '
|
215
|
+
version: '2.0'
|
216
|
+
- - ">="
|
217
|
+
- !ruby/object:Gem::Version
|
218
|
+
version: 2.0.2
|
188
219
|
type: :runtime
|
189
220
|
prerelease: false
|
190
221
|
version_requirements: !ruby/object:Gem::Requirement
|
191
222
|
requirements:
|
192
223
|
- - "~>"
|
193
224
|
- !ruby/object:Gem::Version
|
194
|
-
version: '
|
225
|
+
version: '2.0'
|
226
|
+
- - ">="
|
227
|
+
- !ruby/object:Gem::Version
|
228
|
+
version: 2.0.2
|
195
229
|
- !ruby/object:Gem::Dependency
|
196
230
|
name: contentful
|
197
231
|
requirement: !ruby/object:Gem::Requirement
|
198
232
|
requirements:
|
199
|
-
- - "
|
200
|
-
- !ruby/object:Gem::Version
|
201
|
-
version: 2.1.0
|
202
|
-
- - "<"
|
233
|
+
- - "~>"
|
203
234
|
- !ruby/object:Gem::Version
|
204
|
-
version:
|
235
|
+
version: 2.6.0
|
205
236
|
type: :runtime
|
206
237
|
prerelease: false
|
207
238
|
version_requirements: !ruby/object:Gem::Requirement
|
208
239
|
requirements:
|
209
|
-
- - "
|
210
|
-
- !ruby/object:Gem::Version
|
211
|
-
version: 2.1.0
|
212
|
-
- - "<"
|
240
|
+
- - "~>"
|
213
241
|
- !ruby/object:Gem::Version
|
214
|
-
version:
|
242
|
+
version: 2.6.0
|
215
243
|
- !ruby/object:Gem::Dependency
|
216
244
|
name: inifile
|
217
245
|
requirement: !ruby/object:Gem::Requirement
|
@@ -301,6 +329,7 @@ files:
|
|
301
329
|
- spec/fixtures/json_fixtures/cfexampleapi_cat.json
|
302
330
|
- spec/fixtures/json_fixtures/cfexampleapi_cat_human.json
|
303
331
|
- spec/fixtures/json_fixtures/display_field.json
|
332
|
+
- spec/fixtures/json_fixtures/environment_template.json
|
304
333
|
- spec/fixtures/json_fixtures/f3abi4dqvrhg_preview.json
|
305
334
|
- spec/fixtures/json_fixtures/high.json
|
306
335
|
- spec/fixtures/json_fixtures/invalid.json
|
@@ -317,6 +346,8 @@ files:
|
|
317
346
|
- spec/fixtures/json_fixtures/wl1z0pal05vy_content_types_only.json
|
318
347
|
- spec/fixtures/vcr_fixtures/asset_no_transform.yml
|
319
348
|
- spec/fixtures/vcr_fixtures/check_created_space.yml
|
349
|
+
- spec/fixtures/vcr_fixtures/check_original_staging_environment_status.yml
|
350
|
+
- spec/fixtures/vcr_fixtures/check_staging_environment_status.yml
|
320
351
|
- spec/fixtures/vcr_fixtures/check_update_space_localized.yml
|
321
352
|
- spec/fixtures/vcr_fixtures/check_update_space_with_draft_content.yml
|
322
353
|
- spec/fixtures/vcr_fixtures/create_space.yml
|
@@ -325,6 +356,7 @@ files:
|
|
325
356
|
- spec/fixtures/vcr_fixtures/create_space_with_gallery_template.yml
|
326
357
|
- spec/fixtures/vcr_fixtures/generate_json.yml
|
327
358
|
- spec/fixtures/vcr_fixtures/generate_json_content_types_only.yml
|
359
|
+
- spec/fixtures/vcr_fixtures/generate_json_environments.yml
|
328
360
|
- spec/fixtures/vcr_fixtures/generate_json_multi_ct.yml
|
329
361
|
- spec/fixtures/vcr_fixtures/generate_json_preview.yml
|
330
362
|
- spec/fixtures/vcr_fixtures/generate_json_single_ct.yml
|
@@ -335,6 +367,7 @@ files:
|
|
335
367
|
- spec/fixtures/vcr_fixtures/space_with_different_locale.yml
|
336
368
|
- spec/fixtures/vcr_fixtures/update_existing_asset.yml
|
337
369
|
- spec/fixtures/vcr_fixtures/update_space_localized.yml
|
370
|
+
- spec/fixtures/vcr_fixtures/update_with_environment.yml
|
338
371
|
- spec/spec_helper.rb
|
339
372
|
homepage: https://www.contentful.com
|
340
373
|
licenses:
|
@@ -356,7 +389,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
356
389
|
version: '0'
|
357
390
|
requirements: []
|
358
391
|
rubyforge_project:
|
359
|
-
rubygems_version: 2.6
|
392
|
+
rubygems_version: 2.7.6
|
360
393
|
signing_key:
|
361
394
|
specification_version: 4
|
362
395
|
summary: Contentful CLI tool for getting started with Contentful
|
@@ -390,6 +423,7 @@ test_files:
|
|
390
423
|
- spec/fixtures/json_fixtures/cfexampleapi_cat.json
|
391
424
|
- spec/fixtures/json_fixtures/cfexampleapi_cat_human.json
|
392
425
|
- spec/fixtures/json_fixtures/display_field.json
|
426
|
+
- spec/fixtures/json_fixtures/environment_template.json
|
393
427
|
- spec/fixtures/json_fixtures/f3abi4dqvrhg_preview.json
|
394
428
|
- spec/fixtures/json_fixtures/high.json
|
395
429
|
- spec/fixtures/json_fixtures/invalid.json
|
@@ -406,6 +440,8 @@ test_files:
|
|
406
440
|
- spec/fixtures/json_fixtures/wl1z0pal05vy_content_types_only.json
|
407
441
|
- spec/fixtures/vcr_fixtures/asset_no_transform.yml
|
408
442
|
- spec/fixtures/vcr_fixtures/check_created_space.yml
|
443
|
+
- spec/fixtures/vcr_fixtures/check_original_staging_environment_status.yml
|
444
|
+
- spec/fixtures/vcr_fixtures/check_staging_environment_status.yml
|
409
445
|
- spec/fixtures/vcr_fixtures/check_update_space_localized.yml
|
410
446
|
- spec/fixtures/vcr_fixtures/check_update_space_with_draft_content.yml
|
411
447
|
- spec/fixtures/vcr_fixtures/create_space.yml
|
@@ -414,6 +450,7 @@ test_files:
|
|
414
450
|
- spec/fixtures/vcr_fixtures/create_space_with_gallery_template.yml
|
415
451
|
- spec/fixtures/vcr_fixtures/generate_json.yml
|
416
452
|
- spec/fixtures/vcr_fixtures/generate_json_content_types_only.yml
|
453
|
+
- spec/fixtures/vcr_fixtures/generate_json_environments.yml
|
417
454
|
- spec/fixtures/vcr_fixtures/generate_json_multi_ct.yml
|
418
455
|
- spec/fixtures/vcr_fixtures/generate_json_preview.yml
|
419
456
|
- spec/fixtures/vcr_fixtures/generate_json_single_ct.yml
|
@@ -424,4 +461,5 @@ test_files:
|
|
424
461
|
- spec/fixtures/vcr_fixtures/space_with_different_locale.yml
|
425
462
|
- spec/fixtures/vcr_fixtures/update_existing_asset.yml
|
426
463
|
- spec/fixtures/vcr_fixtures/update_space_localized.yml
|
464
|
+
- spec/fixtures/vcr_fixtures/update_with_environment.yml
|
427
465
|
- spec/spec_helper.rb
|