locomotivecms_coal 1.0.0.pre.beta.1 → 1.0.0.pre.beta.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +1 -1
- data/lib/locomotive/coal/resources/concerns/request.rb +24 -1
- data/lib/locomotive/coal/version.rb +1 -1
- data/spec/fixtures/coal_cassettes/client.yml +81 -86
- data/spec/fixtures/coal_cassettes/content_assets.yml +33 -33
- data/spec/fixtures/coal_cassettes/content_entries.yml +225 -225
- data/spec/fixtures/coal_cassettes/content_types.yml +88 -88
- data/spec/fixtures/coal_cassettes/current_site.yml +21 -21
- data/spec/fixtures/coal_cassettes/memberships.yml +34 -34
- data/spec/fixtures/coal_cassettes/my_account.yml +68 -68
- data/spec/fixtures/coal_cassettes/pages.yml +45 -45
- data/spec/fixtures/coal_cassettes/sites.yml +30 -34
- data/spec/fixtures/coal_cassettes/snippets.yml +32 -32
- data/spec/fixtures/coal_cassettes/theme_assets.yml +32 -32
- data/spec/fixtures/coal_cassettes/token.yml +8 -8
- data/spec/fixtures/coal_cassettes/translations.yml +32 -32
- data/spec/fixtures/coal_cassettes/version.yml +10 -10
- metadata +2 -2
@@ -23,23 +23,23 @@ http_interactions:
|
|
23
23
|
Content-Type:
|
24
24
|
- application/json
|
25
25
|
Etag:
|
26
|
-
- W/"
|
26
|
+
- W/"3b6ceb0d2ba232a8d48dd0dc8f702ef4"
|
27
27
|
Cache-Control:
|
28
28
|
- max-age=0, private, must-revalidate
|
29
29
|
X-Request-Id:
|
30
|
-
-
|
30
|
+
- 890253c6-deb5-479f-bbab-d4098f6cc88d
|
31
31
|
X-Runtime:
|
32
|
-
- '0.
|
32
|
+
- '0.014321'
|
33
33
|
Content-Length:
|
34
34
|
- '32'
|
35
35
|
body:
|
36
36
|
encoding: UTF-8
|
37
|
-
string: '{"token":"
|
37
|
+
string: '{"token":"xM_3r1zn2aQAinPFqSvd"}'
|
38
38
|
http_version:
|
39
|
-
recorded_at:
|
39
|
+
recorded_at: Tue, 11 Aug 2015 13:12:39 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=xM_3r1zn2aQAinPFqSvd
|
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
|
+
- xM_3r1zn2aQAinPFqSvd
|
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
|
+
- 114aca63-d3f2-421e-9731-2ebddc48fdb5
|
70
70
|
X-Runtime:
|
71
|
-
- '0.
|
71
|
+
- '0.034417'
|
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: Tue, 11 Aug 2015 13:12:39 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
|
+
DQp4TV8zcjF6bjJhUUFpblBGcVN2ZA0KLS0tLS0tLS0tLS0tLVJ1YnlNdWx0
|
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
|
+
- xM_3r1zn2aQAinPFqSvd
|
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/"34aad55858d6c68f42bdd61c69efc5a6"
|
284
284
|
Cache-Control:
|
285
285
|
- max-age=0, private, must-revalidate
|
286
286
|
X-Request-Id:
|
287
|
-
-
|
287
|
+
- 856750bb-25f8-4113-a81f-6eb3aa4ab57e
|
288
288
|
X-Runtime:
|
289
|
-
- '0.
|
289
|
+
- '0.075089'
|
290
290
|
Content-Length:
|
291
291
|
- '905'
|
292
292
|
body:
|
293
293
|
encoding: UTF-8
|
294
|
-
string: '{"_id":"
|
294
|
+
string: '{"_id":"55c9f4c787f6432a3b000032","created_at":"2015-08-11T13:12:39Z","updated_at":"2015-08-11T13:12:39Z","content_type":"image","width":50,"height":64,"vignette_url":"/sites/55c9f4a487f6432a1e000006/assets/55c9f4c787f6432a3b000032/rails.png","alternative_vignette_url":"/images/dynamic/W1siZmYiLCIvVXNlcnMvZGlkaWVyL0RvY3VtZW50cy9Mb2NvbW90aXZlQ01TL2VuZ2luZS9zcGVjL2R1bW15L3B1YmxpYy9zaXRlcy81NWM5ZjRhNDg3ZjY0MzJhMWUwMDAwMDYvYXNzZXRzLzU1YzlmNGM3ODdmNjQzMmEzYjAwMDAzMi9yYWlscy5wbmciXSxbInAiLCJ0aHVtYiIsIjE5MHgxMjBcdTAwM2UiLHsiZm9ybWF0IjoicG5nIiwiZnJhbWUiOjB9XSxbInAiLCJlbmNvZGUiLCJwbmciXV0/rails.png?sha=4ae4dab5f07f5b24","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/55c9f4a487f6432a1e000006/assets/55c9f4c787f6432a3b000032/rails.png"}'
|
295
295
|
http_version:
|
296
|
-
recorded_at:
|
296
|
+
recorded_at: Tue, 11 Aug 2015 13:12:39 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/55c9f4c787f6432a3b000032.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
|
+
YXRhOyBuYW1lPSJhdXRoX3Rva2VuIg0KDQp4TV8zcjF6bjJhUUFpblBGcVN2
|
494
|
+
ZA0KLS0tLS0tLS0tLS0tLVJ1YnlNdWx0aXBhcnRQb3N0LS0NCg0K
|
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
|
+
- xM_3r1zn2aQAinPFqSvd
|
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/"83518afe4e27206fe8e0449f9b42c0c2"
|
519
519
|
Cache-Control:
|
520
520
|
- max-age=0, private, must-revalidate
|
521
521
|
X-Request-Id:
|
522
|
-
-
|
522
|
+
- b66a463a-8cdb-47ff-815f-eec266b924e2
|
523
523
|
X-Runtime:
|
524
|
-
- '0.
|
524
|
+
- '0.075671'
|
525
525
|
Content-Length:
|
526
526
|
- '1150'
|
527
527
|
body:
|
528
528
|
encoding: UTF-8
|
529
|
-
string: '{"_id":"
|
529
|
+
string: '{"_id":"55c9f4c787f6432a3b000032","created_at":"2015-08-11T13:12:39Z","updated_at":"2015-08-11T13:12:39Z","content_type":"image","width":256,"height":256,"vignette_url":"/images/dynamic/W1siZmYiLCIvVXNlcnMvZGlkaWVyL0RvY3VtZW50cy9Mb2NvbW90aXZlQ01TL2VuZ2luZS9zcGVjL2R1bW15L3B1YmxpYy9zaXRlcy81NWM5ZjRhNDg3ZjY0MzJhMWUwMDAwMDYvYXNzZXRzLzU1YzlmNGM3ODdmNjQzMmEzYjAwMDAzMi9sb2NvbW90aXZlLnBuZyJdLFsicCIsInRodW1iIiwiODV4ODUjIl1d/locomotive.png?sha=f48bd478241ea72b","alternative_vignette_url":"/images/dynamic/W1siZmYiLCIvVXNlcnMvZGlkaWVyL0RvY3VtZW50cy9Mb2NvbW90aXZlQ01TL2VuZ2luZS9zcGVjL2R1bW15L3B1YmxpYy9zaXRlcy81NWM5ZjRhNDg3ZjY0MzJhMWUwMDAwMDYvYXNzZXRzLzU1YzlmNGM3ODdmNjQzMmEzYjAwMDAzMi9sb2NvbW90aXZlLnBuZyJdLFsicCIsInRodW1iIiwiMTkweDEyMFx1MDAzZSIseyJmb3JtYXQiOiJwbmciLCJmcmFtZSI6MH1dLFsicCIsImVuY29kZSIsInBuZyJdXQ/locomotive.png?sha=8f1146cf27624e95","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/55c9f4a487f6432a1e000006/assets/55c9f4c787f6432a3b000032/locomotive.png"}'
|
530
530
|
http_version:
|
531
|
-
recorded_at:
|
531
|
+
recorded_at: Tue, 11 Aug 2015 13:12:39 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/55c9f4c787f6432a3b000032.json?auth_token=xM_3r1zn2aQAinPFqSvd
|
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
|
+
- xM_3r1zn2aQAinPFqSvd
|
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/"10ecc481c183e792e964311608d8545e"
|
558
558
|
Cache-Control:
|
559
559
|
- max-age=0, private, must-revalidate
|
560
560
|
X-Request-Id:
|
561
|
-
-
|
561
|
+
- 43d8241a-85b6-4e50-a2ee-2a0b8be440b4
|
562
562
|
X-Runtime:
|
563
|
-
- '0.
|
563
|
+
- '0.040906'
|
564
564
|
Content-Length:
|
565
565
|
- '1149'
|
566
566
|
body:
|
567
567
|
encoding: UTF-8
|
568
|
-
string: '{"_id":"
|
568
|
+
string: '{"_id":"55c9f4c787f6432a3b000032","created_at":"2015-08-11T13:12:39Z","updated_at":"2015-08-11T13:12:39Z","content_type":"image","width":256,"height":256,"vignette_url":"/images/dynamic/W1siZmYiLCIvVXNlcnMvZGlkaWVyL0RvY3VtZW50cy9Mb2NvbW90aXZlQ01TL2VuZ2luZS9zcGVjL2R1bW15L3B1YmxpYy9zaXRlcy81NWM5ZjRhNDg3ZjY0MzJhMWUwMDAwMDYvYXNzZXRzLzU1YzlmNGM3ODdmNjQzMmEzYjAwMDAzMi9sb2NvbW90aXZlLnBuZyJdLFsicCIsInRodW1iIiwiODV4ODUjIl1d/locomotive.png?sha=f48bd478241ea72b","alternative_vignette_url":"/images/dynamic/W1siZmYiLCIvVXNlcnMvZGlkaWVyL0RvY3VtZW50cy9Mb2NvbW90aXZlQ01TL2VuZ2luZS9zcGVjL2R1bW15L3B1YmxpYy9zaXRlcy81NWM5ZjRhNDg3ZjY0MzJhMWUwMDAwMDYvYXNzZXRzLzU1YzlmNGM3ODdmNjQzMmEzYjAwMDAzMi9sb2NvbW90aXZlLnBuZyJdLFsicCIsInRodW1iIiwiMTkweDEyMFx1MDAzZSIseyJmb3JtYXQiOiJwbmciLCJmcmFtZSI6MH1dLFsicCIsImVuY29kZSIsInBuZyJdXQ/locomotive.png?sha=8f1146cf27624e95","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/55c9f4a487f6432a1e000006/assets/55c9f4c787f6432a3b000032/locomotive.png"}'
|
569
569
|
http_version:
|
570
|
-
recorded_at:
|
570
|
+
recorded_at: Tue, 11 Aug 2015 13:12:39 GMT
|
571
571
|
recorded_with: VCR 2.9.3
|