locomotivecms_coal 1.0.0.rc1 → 1.0.0.rc2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/Gemfile.lock +4 -4
- data/lib/locomotive/coal/error.rb +12 -0
- data/lib/locomotive/coal/version.rb +1 -1
- data/spec/fixtures/coal_cassettes/client.yml +98 -128
- data/spec/fixtures/coal_cassettes/content_assets.yml +33 -33
- data/spec/fixtures/coal_cassettes/content_entries.yml +227 -227
- data/spec/fixtures/coal_cassettes/content_types.yml +95 -95
- data/spec/fixtures/coal_cassettes/current_site.yml +35 -33
- data/spec/fixtures/coal_cassettes/memberships.yml +36 -35
- data/spec/fixtures/coal_cassettes/my_account.yml +69 -68
- data/spec/fixtures/coal_cassettes/pages.yml +51 -51
- data/spec/fixtures/coal_cassettes/sites.yml +34 -30
- data/spec/fixtures/coal_cassettes/snippets.yml +32 -32
- data/spec/fixtures/coal_cassettes/theme_assets.yml +35 -35
- data/spec/fixtures/coal_cassettes/token.yml +32 -25
- data/spec/fixtures/coal_cassettes/translations.yml +32 -32
- data/spec/fixtures/coal_cassettes/version.yml +13 -13
- data/spec/unit/error_spec.rb +8 -0
- metadata +3 -3
@@ -23,23 +23,23 @@ http_interactions:
|
|
23
23
|
Content-Type:
|
24
24
|
- application/json
|
25
25
|
Etag:
|
26
|
-
- W/"
|
26
|
+
- W/"120917583ae3f64355d682b690f7cb40"
|
27
27
|
Cache-Control:
|
28
28
|
- max-age=0, private, must-revalidate
|
29
29
|
X-Request-Id:
|
30
|
-
-
|
30
|
+
- c0de921b-f54e-4dd8-bfa8-1d520e0ce4b8
|
31
31
|
X-Runtime:
|
32
|
-
- '0.
|
32
|
+
- '0.019785'
|
33
33
|
Content-Length:
|
34
34
|
- '32'
|
35
35
|
body:
|
36
36
|
encoding: UTF-8
|
37
|
-
string: '{"token":"
|
37
|
+
string: '{"token":"E2aoXzMxkFsLnCcmCcc_"}'
|
38
38
|
http_version:
|
39
|
-
recorded_at:
|
39
|
+
recorded_at: Sat, 21 Nov 2015 22:31:01 GMT
|
40
40
|
- request:
|
41
41
|
method: get
|
42
|
-
uri: http://localhost:3000/locomotive/sample/api/v3/content_assets.json?auth_token=
|
42
|
+
uri: http://localhost:3000/locomotive/sample/api/v3/content_assets.json?auth_token=E2aoXzMxkFsLnCcmCcc_
|
43
43
|
body:
|
44
44
|
encoding: US-ASCII
|
45
45
|
string: ''
|
@@ -49,7 +49,7 @@ http_interactions:
|
|
49
49
|
X-Locomotive-Account-Email:
|
50
50
|
- admin@locomotivecms.com
|
51
51
|
X-Locomotive-Account-Token:
|
52
|
-
-
|
52
|
+
- E2aoXzMxkFsLnCcmCcc_
|
53
53
|
Accept-Encoding:
|
54
54
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
55
55
|
User-Agent:
|
@@ -66,16 +66,16 @@ http_interactions:
|
|
66
66
|
Cache-Control:
|
67
67
|
- max-age=0, private, must-revalidate
|
68
68
|
X-Request-Id:
|
69
|
-
-
|
69
|
+
- 9a5ca3ce-612c-47d4-96d6-e978e57afada
|
70
70
|
X-Runtime:
|
71
|
-
- '0.
|
71
|
+
- '0.026454'
|
72
72
|
Content-Length:
|
73
73
|
- '2'
|
74
74
|
body:
|
75
75
|
encoding: UTF-8
|
76
76
|
string: "[]"
|
77
77
|
http_version:
|
78
|
-
recorded_at:
|
78
|
+
recorded_at: Sat, 21 Nov 2015 22:31:01 GMT
|
79
79
|
- request:
|
80
80
|
method: post
|
81
81
|
uri: http://localhost:3000/locomotive/sample/api/v3/content_assets.json
|
@@ -255,7 +255,7 @@ http_interactions:
|
|
255
255
|
zZ/uVbu+4Zd1Nr1kLn00AZ7VJ/B8t/Du50zkuv4fvgGYnNqyFZUAAAAASUVO
|
256
256
|
RK5CYIINCi0tLS0tLS0tLS0tLS1SdWJ5TXVsdGlwYXJ0UG9zdA0KQ29udGVu
|
257
257
|
dC1EaXNwb3NpdGlvbjogZm9ybS1kYXRhOyBuYW1lPSJhdXRoX3Rva2VuIg0K
|
258
|
-
|
258
|
+
DQpFMmFvWHpNeGtGc0xuQ2NtQ2NjXw0KLS0tLS0tLS0tLS0tLVJ1YnlNdWx0
|
259
259
|
aXBhcnRQb3N0LS0NCg0K
|
260
260
|
headers:
|
261
261
|
Accept:
|
@@ -263,7 +263,7 @@ http_interactions:
|
|
263
263
|
X-Locomotive-Account-Email:
|
264
264
|
- admin@locomotivecms.com
|
265
265
|
X-Locomotive-Account-Token:
|
266
|
-
-
|
266
|
+
- E2aoXzMxkFsLnCcmCcc_
|
267
267
|
Content-Type:
|
268
268
|
- multipart/form-data; boundary=-----------RubyMultipartPost
|
269
269
|
Content-Length:
|
@@ -280,23 +280,23 @@ http_interactions:
|
|
280
280
|
Content-Type:
|
281
281
|
- application/json
|
282
282
|
Etag:
|
283
|
-
- W/"
|
283
|
+
- W/"de1d800892e4f9edeb3611b771e79440"
|
284
284
|
Cache-Control:
|
285
285
|
- max-age=0, private, must-revalidate
|
286
286
|
X-Request-Id:
|
287
|
-
-
|
287
|
+
- e934a275-0090-4a29-a84a-635df98dbdc4
|
288
288
|
X-Runtime:
|
289
|
-
- '0.
|
289
|
+
- '0.061623'
|
290
290
|
Content-Length:
|
291
291
|
- '905'
|
292
292
|
body:
|
293
293
|
encoding: UTF-8
|
294
|
-
string: '{"_id":"
|
294
|
+
string: '{"_id":"5650f0a587f6436cbc00002e","created_at":"2015-11-21T22:31:01Z","updated_at":"2015-11-21T22:31:01Z","content_type":"image","width":50,"height":64,"vignette_url":"/sites/5650f08c87f6436c94000006/assets/5650f0a587f6436cbc00002e/rails.png","alternative_vignette_url":"/images/dynamic/W1siZmYiLCIvVXNlcnMvZGlkaWVyL0RvY3VtZW50cy9Mb2NvbW90aXZlQ01TL2VuZ2luZS9zcGVjL2R1bW15L3B1YmxpYy9zaXRlcy81NjUwZjA4Yzg3ZjY0MzZjOTQwMDAwMDYvYXNzZXRzLzU2NTBmMGE1ODdmNjQzNmNiYzAwMDAyZS9yYWlscy5wbmciXSxbInAiLCJ0aHVtYiIsIjE5MHgxMjBcdTAwM2UiLHsiZm9ybWF0IjoicG5nIiwiZnJhbWUiOjB9XSxbInAiLCJlbmNvZGUiLCJwbmciXV0/rails.png?sha=025531157d99ae32","checksum":"933d32a3720db54b73003ba10a876eec","filename":"rails.png","short_name":"rails.png","extname":"png","full_filename":"rails.png","content_type_text":"image","with_thumbnail":true,"raw_size":7485,"url":"/sites/5650f08c87f6436c94000006/assets/5650f0a587f6436cbc00002e/rails.png"}'
|
295
295
|
http_version:
|
296
|
-
recorded_at:
|
296
|
+
recorded_at: Sat, 21 Nov 2015 22:31:01 GMT
|
297
297
|
- request:
|
298
298
|
method: put
|
299
|
-
uri: http://localhost:3000/locomotive/sample/api/v3/content_assets/
|
299
|
+
uri: http://localhost:3000/locomotive/sample/api/v3/content_assets/5650f0a587f6436cbc00002e.json
|
300
300
|
body:
|
301
301
|
encoding: ASCII-8BIT
|
302
302
|
string: !binary |-
|
@@ -490,15 +490,15 @@ http_interactions:
|
|
490
490
|
QAAEQAAEQAAEQAAEQAAEQAAEQAAEQAAEQAAEQAAEQAAEQAAEQAAEQAAEQAAE
|
491
491
|
QAAEQMArAv8PisPwG9GP5SUAAAAASUVORK5CYIINCi0tLS0tLS0tLS0tLS1S
|
492
492
|
dWJ5TXVsdGlwYXJ0UG9zdA0KQ29udGVudC1EaXNwb3NpdGlvbjogZm9ybS1k
|
493
|
-
|
494
|
-
|
493
|
+
YXRhOyBuYW1lPSJhdXRoX3Rva2VuIg0KDQpFMmFvWHpNeGtGc0xuQ2NtQ2Nj
|
494
|
+
Xw0KLS0tLS0tLS0tLS0tLVJ1YnlNdWx0aXBhcnRQb3N0LS0NCg0K
|
495
495
|
headers:
|
496
496
|
Accept:
|
497
497
|
- application/json
|
498
498
|
X-Locomotive-Account-Email:
|
499
499
|
- admin@locomotivecms.com
|
500
500
|
X-Locomotive-Account-Token:
|
501
|
-
-
|
501
|
+
- E2aoXzMxkFsLnCcmCcc_
|
502
502
|
Content-Type:
|
503
503
|
- multipart/form-data; boundary=-----------RubyMultipartPost
|
504
504
|
Content-Length:
|
@@ -515,23 +515,23 @@ http_interactions:
|
|
515
515
|
Content-Type:
|
516
516
|
- application/json
|
517
517
|
Etag:
|
518
|
-
- W/"
|
518
|
+
- W/"b3855e90ca88a29926dd77a20d07681c"
|
519
519
|
Cache-Control:
|
520
520
|
- max-age=0, private, must-revalidate
|
521
521
|
X-Request-Id:
|
522
|
-
-
|
522
|
+
- 8fedffe8-c2ac-4a14-80ba-70e0cb984f4f
|
523
523
|
X-Runtime:
|
524
|
-
- '0.
|
524
|
+
- '0.061077'
|
525
525
|
Content-Length:
|
526
526
|
- '1150'
|
527
527
|
body:
|
528
528
|
encoding: UTF-8
|
529
|
-
string: '{"_id":"
|
529
|
+
string: '{"_id":"5650f0a587f6436cbc00002e","created_at":"2015-11-21T22:31:01Z","updated_at":"2015-11-21T22:31:01Z","content_type":"image","width":256,"height":256,"vignette_url":"/images/dynamic/W1siZmYiLCIvVXNlcnMvZGlkaWVyL0RvY3VtZW50cy9Mb2NvbW90aXZlQ01TL2VuZ2luZS9zcGVjL2R1bW15L3B1YmxpYy9zaXRlcy81NjUwZjA4Yzg3ZjY0MzZjOTQwMDAwMDYvYXNzZXRzLzU2NTBmMGE1ODdmNjQzNmNiYzAwMDAyZS9sb2NvbW90aXZlLnBuZyJdLFsicCIsInRodW1iIiwiODV4ODUjIl1d/locomotive.png?sha=00071932cf17d204","alternative_vignette_url":"/images/dynamic/W1siZmYiLCIvVXNlcnMvZGlkaWVyL0RvY3VtZW50cy9Mb2NvbW90aXZlQ01TL2VuZ2luZS9zcGVjL2R1bW15L3B1YmxpYy9zaXRlcy81NjUwZjA4Yzg3ZjY0MzZjOTQwMDAwMDYvYXNzZXRzLzU2NTBmMGE1ODdmNjQzNmNiYzAwMDAyZS9sb2NvbW90aXZlLnBuZyJdLFsicCIsInRodW1iIiwiMTkweDEyMFx1MDAzZSIseyJmb3JtYXQiOiJwbmciLCJmcmFtZSI6MH1dLFsicCIsImVuY29kZSIsInBuZyJdXQ/locomotive.png?sha=385fd2d742ccd788","checksum":"933d32a3720db54b73003ba10a876eec","filename":"locomotive.png","short_name":"locomotive.png","extname":"png","full_filename":"locomotive.png","content_type_text":"image","with_thumbnail":true,"raw_size":8269,"url":"/sites/5650f08c87f6436c94000006/assets/5650f0a587f6436cbc00002e/locomotive.png"}'
|
530
530
|
http_version:
|
531
|
-
recorded_at:
|
531
|
+
recorded_at: Sat, 21 Nov 2015 22:31:01 GMT
|
532
532
|
- request:
|
533
533
|
method: delete
|
534
|
-
uri: http://localhost:3000/locomotive/sample/api/v3/content_assets/
|
534
|
+
uri: http://localhost:3000/locomotive/sample/api/v3/content_assets/5650f0a587f6436cbc00002e.json?auth_token=E2aoXzMxkFsLnCcmCcc_
|
535
535
|
body:
|
536
536
|
encoding: US-ASCII
|
537
537
|
string: ''
|
@@ -541,7 +541,7 @@ http_interactions:
|
|
541
541
|
X-Locomotive-Account-Email:
|
542
542
|
- admin@locomotivecms.com
|
543
543
|
X-Locomotive-Account-Token:
|
544
|
-
-
|
544
|
+
- E2aoXzMxkFsLnCcmCcc_
|
545
545
|
Accept-Encoding:
|
546
546
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
547
547
|
User-Agent:
|
@@ -554,18 +554,18 @@ http_interactions:
|
|
554
554
|
Content-Type:
|
555
555
|
- application/json
|
556
556
|
Etag:
|
557
|
-
- W/"
|
557
|
+
- W/"eb254aad940f895115a35ce7151140fa"
|
558
558
|
Cache-Control:
|
559
559
|
- max-age=0, private, must-revalidate
|
560
560
|
X-Request-Id:
|
561
|
-
-
|
561
|
+
- 4a6da2aa-97d7-46b8-846c-eaea10b176a5
|
562
562
|
X-Runtime:
|
563
|
-
- '0.
|
563
|
+
- '0.035126'
|
564
564
|
Content-Length:
|
565
565
|
- '1149'
|
566
566
|
body:
|
567
567
|
encoding: UTF-8
|
568
|
-
string: '{"_id":"
|
568
|
+
string: '{"_id":"5650f0a587f6436cbc00002e","created_at":"2015-11-21T22:31:01Z","updated_at":"2015-11-21T22:31:01Z","content_type":"image","width":256,"height":256,"vignette_url":"/images/dynamic/W1siZmYiLCIvVXNlcnMvZGlkaWVyL0RvY3VtZW50cy9Mb2NvbW90aXZlQ01TL2VuZ2luZS9zcGVjL2R1bW15L3B1YmxpYy9zaXRlcy81NjUwZjA4Yzg3ZjY0MzZjOTQwMDAwMDYvYXNzZXRzLzU2NTBmMGE1ODdmNjQzNmNiYzAwMDAyZS9sb2NvbW90aXZlLnBuZyJdLFsicCIsInRodW1iIiwiODV4ODUjIl1d/locomotive.png?sha=00071932cf17d204","alternative_vignette_url":"/images/dynamic/W1siZmYiLCIvVXNlcnMvZGlkaWVyL0RvY3VtZW50cy9Mb2NvbW90aXZlQ01TL2VuZ2luZS9zcGVjL2R1bW15L3B1YmxpYy9zaXRlcy81NjUwZjA4Yzg3ZjY0MzZjOTQwMDAwMDYvYXNzZXRzLzU2NTBmMGE1ODdmNjQzNmNiYzAwMDAyZS9sb2NvbW90aXZlLnBuZyJdLFsicCIsInRodW1iIiwiMTkweDEyMFx1MDAzZSIseyJmb3JtYXQiOiJwbmciLCJmcmFtZSI6MH1dLFsicCIsImVuY29kZSIsInBuZyJdXQ/locomotive.png?sha=385fd2d742ccd788","checksum":"933d32a3720db54b73003ba10a876eec","filename":"locomotive.png","short_name":"locomotive.png","extname":null,"full_filename":"locomotive.png","content_type_text":"image","with_thumbnail":true,"raw_size":8269,"url":"/sites/5650f08c87f6436c94000006/assets/5650f0a587f6436cbc00002e/locomotive.png"}'
|
569
569
|
http_version:
|
570
|
-
recorded_at:
|
570
|
+
recorded_at: Sat, 21 Nov 2015 22:31:01 GMT
|
571
571
|
recorded_with: VCR 2.9.3
|