contentful_bootstrap 3.2.0 → 3.3.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 +9 -0
- data/Gemfile +1 -0
- data/README.md +11 -6
- data/bin/contentful_bootstrap +6 -0
- data/lib/contentful/bootstrap/command_runner.rb +2 -1
- data/lib/contentful/bootstrap/commands/generate_json.rb +4 -3
- data/lib/contentful/bootstrap/commands/update_space.rb +3 -2
- data/lib/contentful/bootstrap/generator.rb +8 -1
- data/lib/contentful/bootstrap/templates/base.rb +8 -7
- data/lib/contentful/bootstrap/templates/blog.rb +3 -3
- data/lib/contentful/bootstrap/templates/catalogue.rb +14 -14
- data/lib/contentful/bootstrap/templates/gallery.rb +8 -8
- data/lib/contentful/bootstrap/templates/json_template.rb +7 -6
- data/lib/contentful/bootstrap/version.rb +1 -1
- data/spec/contentful/bootstrap/command_runner_spec.rb +3 -3
- data/spec/contentful/bootstrap/commands/create_space_spec.rb +13 -0
- data/spec/contentful/bootstrap/commands/update_space_spec.rb +27 -8
- data/spec/contentful/bootstrap/generator_spec.rb +13 -1
- data/spec/contentful/bootstrap/templates/base_spec.rb +13 -1
- data/spec/contentful/bootstrap/templates/json_template_spec.rb +35 -3
- data/spec/fixtures/json_fixtures/asset_no_transform.json +16 -0
- data/spec/fixtures/json_fixtures/wl1z0pal05vy_content_types_only.json +157 -0
- data/spec/fixtures/vcr_fixtures/asset_no_transform.yml +654 -0
- data/spec/fixtures/vcr_fixtures/create_space_with_blog_template.yml +1122 -730
- data/spec/fixtures/vcr_fixtures/create_space_with_catalogue_template.yml +2378 -2166
- data/spec/fixtures/vcr_fixtures/create_space_with_gallery_template.yml +1549 -928
- data/spec/fixtures/vcr_fixtures/generate_json_content_types_only.yml +94 -0
- data/spec/spec_helper.rb +5 -0
- metadata +11 -3
@@ -0,0 +1,94 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://cdn.contentful.com/spaces/wl1z0pal05vy/content_types
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- RubyContentfulGem/0.7.0
|
12
|
+
Authorization:
|
13
|
+
- Bearer foobar
|
14
|
+
Content-Type:
|
15
|
+
- application/vnd.contentful.delivery.v1+json
|
16
|
+
Accept-Encoding:
|
17
|
+
- gzip
|
18
|
+
Connection:
|
19
|
+
- close
|
20
|
+
Host:
|
21
|
+
- cdn.contentful.com
|
22
|
+
response:
|
23
|
+
status:
|
24
|
+
code: 200
|
25
|
+
message: OK
|
26
|
+
headers:
|
27
|
+
Access-Control-Allow-Headers:
|
28
|
+
- Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation
|
29
|
+
Access-Control-Allow-Methods:
|
30
|
+
- GET,HEAD,OPTIONS
|
31
|
+
Access-Control-Allow-Origin:
|
32
|
+
- "*"
|
33
|
+
Access-Control-Expose-Headers:
|
34
|
+
- Etag
|
35
|
+
Access-Control-Max-Age:
|
36
|
+
- '86400'
|
37
|
+
Cache-Control:
|
38
|
+
- max-age=0
|
39
|
+
Content-Encoding:
|
40
|
+
- gzip
|
41
|
+
Content-Type:
|
42
|
+
- application/vnd.contentful.delivery.v1+json
|
43
|
+
Server:
|
44
|
+
- nginx
|
45
|
+
X-Contentful-Request-Id:
|
46
|
+
- c40-1967993529
|
47
|
+
Content-Length:
|
48
|
+
- '986'
|
49
|
+
Accept-Ranges:
|
50
|
+
- bytes
|
51
|
+
Date:
|
52
|
+
- Thu, 19 Nov 2015 19:42:11 GMT
|
53
|
+
Via:
|
54
|
+
- 1.1 varnish
|
55
|
+
Age:
|
56
|
+
- '0'
|
57
|
+
Connection:
|
58
|
+
- close
|
59
|
+
X-Served-By:
|
60
|
+
- cache-iad2140-IAD
|
61
|
+
X-Cache:
|
62
|
+
- MISS
|
63
|
+
X-Cache-Hits:
|
64
|
+
- '0'
|
65
|
+
Vary:
|
66
|
+
- Accept-Encoding
|
67
|
+
body:
|
68
|
+
encoding: ASCII-8BIT
|
69
|
+
string: !binary |-
|
70
|
+
H4sIAAAAAAAAA91XS2/iMBC+91dE2euWJuFRyo3tUqnbh7oiVR+rHkxiqEVe
|
71
|
+
2E7ZtOp/XztOwE6MCGy1KzUHhGfsGdsz883ntwPDMElGzIHxxv6yAc0SyEbm
|
72
|
+
EGOQmUz2/pXPoTEFAZO38xGZo4QNrHwQoBBRNrItMUYUhtzgr9ygMMumTREM
|
73
|
+
/LVc1uWOIxDmjm9w7KceNfIxd1B+JvK5PhH665q63LkLf1N1IYaLFGHIl1Oc
|
74
|
+
wpXN/GjiK7epbGUcpDPdFkhNXvoeZ+EkDvi1iW+bh++QeBglFMWRzlFx1o2z
|
75
|
+
lCM3djpGr/DIZXE+Oo2DGOscEzaFG/fqE/Y96nkIZtqAorpCTUI1CYrskgMm
|
76
|
+
pe0liubKgfIEjeb8uHlaEwLpOj4svRtfmwtmRHdXtCbff/vV/Nllf6eAwlmM
|
77
|
+
EdTu0tug3X+v2656FFGcVWPxAgLkA57vKhTUq1BI8uCdxhGFES1iKHClrLBi
|
78
|
+
Wu9+mbhgjNC5M5w7d0srRr0FkAMtJj5JgMIl6/Dzkaxtnhg3GHnazE7qivK6
|
79
|
+
r9NwAnFzoPiGQeTrsm9SV5Q+agFSKkGEp3H2/0xBRBFVA1pA8kKrK7dxzoI3
|
80
|
+
2+Ws44tb3UnJPFXFpYNq0WwD3eELQAGYBNAAlUYhOswSTghrYg2dFTf4VKJU
|
81
|
+
tZGtzCh9lmebSRLAEqdsvUUmy91YiHaAt3FuUQZMtrg4VWC/WgkIrO5L3tfL
|
82
|
+
T5vnKxogl97abGHSuVlM729/LEf9xfjhIr2ybnvL/pXk3sTwBRHe3Bg9sKX1
|
83
|
+
HoYMj/wh5w2mY9mdQ9s5tC3X7gzs40HXah332o+yoTRhqCEt6B5a9mGbLWgP
|
84
|
+
2vag3W/1T04ey2OtEsD0pf7KPLnPiBieQBODp4/hwymKIDHoMzQIIwceTTE0
|
85
|
+
4qkBjKL5Ggx5JBwzfUSSAGRnnM5U+Uh+rYX3nYnPaRwmIMo2Eh9P6P8F8bmM
|
86
|
+
Z7GuBIOavBnWVLrutgLdyHdEJhcXsXFWuaecCDYGuDtd1e8DCFtIpbtElDI4
|
87
|
+
1FBbqlPti3KjkKGczgusK/b1cfMcR9D4ovOScJWqKL2Ip8UurK6K8Aot2gjA
|
88
|
+
as/8fPBLzl7dx8k4vep78WiZzeDtg8L9ZPTtNQNfpzuwei3HaQy+tj1w+i3r
|
89
|
+
xPlg8M1pjXG0AuEQROkU5OiMtyGyDJR/hcguooGW2DEiVFUooKPk9r6vz3PW
|
90
|
+
qHSVhWry/wLC4j2R7YrCG6u1eL6sCebnK9gNjxSpNCW+1GlYsb1Bu93qdvpN
|
91
|
+
6RKr2M5xq9M7/uCKLelS8dCU4lhlTKJ6RGWy36eD94M/hymdIIgSAAA=
|
92
|
+
http_version:
|
93
|
+
recorded_at: Thu, 19 Nov 2015 19:42:11 GMT
|
94
|
+
recorded_with: VCR 2.9.3
|
data/spec/spec_helper.rb
CHANGED
@@ -4,6 +4,11 @@ require 'contentful/bootstrap'
|
|
4
4
|
require 'vcr'
|
5
5
|
require 'json'
|
6
6
|
|
7
|
+
RSpec.configure do |config|
|
8
|
+
config.filter_run :focus => true
|
9
|
+
config.run_all_when_everything_filtered = true
|
10
|
+
end
|
11
|
+
|
7
12
|
VCR.configure do |config|
|
8
13
|
config.cassette_library_dir = File.join('spec', 'fixtures', 'vcr_fixtures')
|
9
14
|
config.hook_into :webmock
|
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.3.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: 2016-
|
11
|
+
date: 2016-09-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -262,6 +262,7 @@ files:
|
|
262
262
|
- spec/fixtures/ini_fixtures/no_global.ini
|
263
263
|
- spec/fixtures/ini_fixtures/no_token.ini
|
264
264
|
- spec/fixtures/ini_fixtures/sections.ini
|
265
|
+
- spec/fixtures/json_fixtures/asset_no_transform.json
|
265
266
|
- spec/fixtures/json_fixtures/display_field.json
|
266
267
|
- spec/fixtures/json_fixtures/high.json
|
267
268
|
- spec/fixtures/json_fixtures/invalid.json
|
@@ -273,11 +274,14 @@ files:
|
|
273
274
|
- spec/fixtures/json_fixtures/processed.json
|
274
275
|
- spec/fixtures/json_fixtures/simple.json
|
275
276
|
- spec/fixtures/json_fixtures/wl1z0pal05vy.json
|
277
|
+
- spec/fixtures/json_fixtures/wl1z0pal05vy_content_types_only.json
|
278
|
+
- spec/fixtures/vcr_fixtures/asset_no_transform.yml
|
276
279
|
- spec/fixtures/vcr_fixtures/create_space.yml
|
277
280
|
- spec/fixtures/vcr_fixtures/create_space_with_blog_template.yml
|
278
281
|
- spec/fixtures/vcr_fixtures/create_space_with_catalogue_template.yml
|
279
282
|
- spec/fixtures/vcr_fixtures/create_space_with_gallery_template.yml
|
280
283
|
- spec/fixtures/vcr_fixtures/generate_json.yml
|
284
|
+
- spec/fixtures/vcr_fixtures/generate_json_content_types_only.yml
|
281
285
|
- spec/fixtures/vcr_fixtures/generate_token.yml
|
282
286
|
- spec/fixtures/vcr_fixtures/issue_22.yml
|
283
287
|
- spec/fixtures/vcr_fixtures/no_ids.yml
|
@@ -302,7 +306,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
302
306
|
version: '0'
|
303
307
|
requirements: []
|
304
308
|
rubyforge_project:
|
305
|
-
rubygems_version: 2.5.
|
309
|
+
rubygems_version: 2.5.1
|
306
310
|
signing_key:
|
307
311
|
specification_version: 4
|
308
312
|
summary: Contentful CLI tool for getting started with Contentful
|
@@ -330,6 +334,7 @@ test_files:
|
|
330
334
|
- spec/fixtures/ini_fixtures/no_global.ini
|
331
335
|
- spec/fixtures/ini_fixtures/no_token.ini
|
332
336
|
- spec/fixtures/ini_fixtures/sections.ini
|
337
|
+
- spec/fixtures/json_fixtures/asset_no_transform.json
|
333
338
|
- spec/fixtures/json_fixtures/display_field.json
|
334
339
|
- spec/fixtures/json_fixtures/high.json
|
335
340
|
- spec/fixtures/json_fixtures/invalid.json
|
@@ -341,11 +346,14 @@ test_files:
|
|
341
346
|
- spec/fixtures/json_fixtures/processed.json
|
342
347
|
- spec/fixtures/json_fixtures/simple.json
|
343
348
|
- spec/fixtures/json_fixtures/wl1z0pal05vy.json
|
349
|
+
- spec/fixtures/json_fixtures/wl1z0pal05vy_content_types_only.json
|
350
|
+
- spec/fixtures/vcr_fixtures/asset_no_transform.yml
|
344
351
|
- spec/fixtures/vcr_fixtures/create_space.yml
|
345
352
|
- spec/fixtures/vcr_fixtures/create_space_with_blog_template.yml
|
346
353
|
- spec/fixtures/vcr_fixtures/create_space_with_catalogue_template.yml
|
347
354
|
- spec/fixtures/vcr_fixtures/create_space_with_gallery_template.yml
|
348
355
|
- spec/fixtures/vcr_fixtures/generate_json.yml
|
356
|
+
- spec/fixtures/vcr_fixtures/generate_json_content_types_only.yml
|
349
357
|
- spec/fixtures/vcr_fixtures/generate_token.yml
|
350
358
|
- spec/fixtures/vcr_fixtures/issue_22.yml
|
351
359
|
- spec/fixtures/vcr_fixtures/no_ids.yml
|