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
|
+
- fb432188-59b1-4343-bdef-e10465975f97
|
31
31
|
X-Runtime:
|
32
|
-
- '0.
|
32
|
+
- '0.015828'
|
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:30:58 GMT
|
40
40
|
- request:
|
41
41
|
method: get
|
42
|
-
uri: http://localhost:3000/locomotive/sample/api/v3/theme_assets.json?auth_token=
|
42
|
+
uri: http://localhost:3000/locomotive/sample/api/v3/theme_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
|
+
- 7d3411f7-ce06-4246-b6a7-0af08b610d02
|
70
70
|
X-Runtime:
|
71
|
-
- '0.
|
71
|
+
- '0.046273'
|
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:30:58 GMT
|
79
79
|
- request:
|
80
80
|
method: post
|
81
81
|
uri: http://localhost:3000/locomotive/sample/api/v3/theme_assets.json
|
@@ -257,7 +257,7 @@ http_interactions:
|
|
257
257
|
RGlzcG9zaXRpb246IGZvcm0tZGF0YTsgbmFtZT0idGhlbWVfYXNzZXRbZm9s
|
258
258
|
ZGVyXSINCg0KZm9vdGVyDQotLS0tLS0tLS0tLS0tUnVieU11bHRpcGFydFBv
|
259
259
|
c3QNCkNvbnRlbnQtRGlzcG9zaXRpb246IGZvcm0tZGF0YTsgbmFtZT0iYXV0
|
260
|
-
|
260
|
+
aF90b2tlbiINCg0KRTJhb1h6TXhrRnNMbkNjbUNjY18NCi0tLS0tLS0tLS0t
|
261
261
|
LS1SdWJ5TXVsdGlwYXJ0UG9zdC0tDQoNCg==
|
262
262
|
headers:
|
263
263
|
Accept:
|
@@ -265,7 +265,7 @@ http_interactions:
|
|
265
265
|
X-Locomotive-Account-Email:
|
266
266
|
- admin@locomotivecms.com
|
267
267
|
X-Locomotive-Account-Token:
|
268
|
-
-
|
268
|
+
- E2aoXzMxkFsLnCcmCcc_
|
269
269
|
Content-Type:
|
270
270
|
- multipart/form-data; boundary=-----------RubyMultipartPost
|
271
271
|
Content-Length:
|
@@ -282,34 +282,34 @@ http_interactions:
|
|
282
282
|
Content-Type:
|
283
283
|
- application/json
|
284
284
|
Etag:
|
285
|
-
- W/"
|
285
|
+
- W/"2b3f3e0da8581beda45e69aa533bb6ff"
|
286
286
|
Cache-Control:
|
287
287
|
- max-age=0, private, must-revalidate
|
288
288
|
X-Request-Id:
|
289
|
-
-
|
289
|
+
- b211ff3a-29b1-488d-86b1-69dc93a9b716
|
290
290
|
X-Runtime:
|
291
|
-
- '0.
|
291
|
+
- '0.233523'
|
292
292
|
Content-Length:
|
293
|
-
- '
|
293
|
+
- '365'
|
294
294
|
body:
|
295
295
|
encoding: UTF-8
|
296
|
-
string: '{"_id":"
|
296
|
+
string: '{"_id":"5650f0a287f6436cbc000003","created_at":"2015-11-21T22:30:58Z","updated_at":"2015-11-21T22:30:58Z","content_type":"image","local_path":"images/footer/rails.png","folder":"images/footer","checksum":"933d32a3720db54b73003ba10a876eec","filename":"rails.png","url":"/sites/5650f08c87f6436c94000006/theme/images/footer/rails.png","size":"7.31
|
297
297
|
KB","raw_size":7485}'
|
298
298
|
http_version:
|
299
|
-
recorded_at:
|
299
|
+
recorded_at: Sat, 21 Nov 2015 22:30:58 GMT
|
300
300
|
- request:
|
301
301
|
method: put
|
302
|
-
uri: http://localhost:3000/locomotive/sample/api/v3/theme_assets/
|
302
|
+
uri: http://localhost:3000/locomotive/sample/api/v3/theme_assets/5650f0a287f6436cbc000003.json
|
303
303
|
body:
|
304
304
|
encoding: UTF-8
|
305
|
-
string: auth_token=
|
305
|
+
string: auth_token=E2aoXzMxkFsLnCcmCcc_&theme_asset%5Bfolder%5D=header
|
306
306
|
headers:
|
307
307
|
Accept:
|
308
308
|
- application/json
|
309
309
|
X-Locomotive-Account-Email:
|
310
310
|
- admin@locomotivecms.com
|
311
311
|
X-Locomotive-Account-Token:
|
312
|
-
-
|
312
|
+
- E2aoXzMxkFsLnCcmCcc_
|
313
313
|
Content-Type:
|
314
314
|
- application/x-www-form-urlencoded
|
315
315
|
Accept-Encoding:
|
@@ -324,24 +324,24 @@ http_interactions:
|
|
324
324
|
Content-Type:
|
325
325
|
- application/json
|
326
326
|
Etag:
|
327
|
-
- W/"
|
327
|
+
- W/"fc1e9fdd9f7465d692f021492c9a2218"
|
328
328
|
Cache-Control:
|
329
329
|
- max-age=0, private, must-revalidate
|
330
330
|
X-Request-Id:
|
331
|
-
-
|
331
|
+
- 95eeba78-a049-4cc1-9287-b5dc25ed2261
|
332
332
|
X-Runtime:
|
333
|
-
- '0.
|
333
|
+
- '0.058801'
|
334
334
|
Content-Length:
|
335
|
-
- '
|
335
|
+
- '365'
|
336
336
|
body:
|
337
337
|
encoding: UTF-8
|
338
|
-
string: '{"_id":"
|
338
|
+
string: '{"_id":"5650f0a287f6436cbc000003","created_at":"2015-11-21T22:30:58Z","updated_at":"2015-11-21T22:30:58Z","content_type":"image","local_path":"images/header/rails.png","folder":"images/header","checksum":"933d32a3720db54b73003ba10a876eec","filename":"rails.png","url":"/sites/5650f08c87f6436c94000006/theme/images/header/rails.png","size":"7.31
|
339
339
|
KB","raw_size":7485}'
|
340
340
|
http_version:
|
341
|
-
recorded_at:
|
341
|
+
recorded_at: Sat, 21 Nov 2015 22:30:58 GMT
|
342
342
|
- request:
|
343
343
|
method: delete
|
344
|
-
uri: http://localhost:3000/locomotive/sample/api/v3/theme_assets/
|
344
|
+
uri: http://localhost:3000/locomotive/sample/api/v3/theme_assets/5650f0a287f6436cbc000003.json?auth_token=E2aoXzMxkFsLnCcmCcc_
|
345
345
|
body:
|
346
346
|
encoding: US-ASCII
|
347
347
|
string: ''
|
@@ -351,7 +351,7 @@ http_interactions:
|
|
351
351
|
X-Locomotive-Account-Email:
|
352
352
|
- admin@locomotivecms.com
|
353
353
|
X-Locomotive-Account-Token:
|
354
|
-
-
|
354
|
+
- E2aoXzMxkFsLnCcmCcc_
|
355
355
|
Accept-Encoding:
|
356
356
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
357
357
|
User-Agent:
|
@@ -364,19 +364,19 @@ http_interactions:
|
|
364
364
|
Content-Type:
|
365
365
|
- application/json
|
366
366
|
Etag:
|
367
|
-
- W/"
|
367
|
+
- W/"fc1e9fdd9f7465d692f021492c9a2218"
|
368
368
|
Cache-Control:
|
369
369
|
- max-age=0, private, must-revalidate
|
370
370
|
X-Request-Id:
|
371
|
-
-
|
371
|
+
- 35990908-1549-4386-ab93-54ca6c5ff163
|
372
372
|
X-Runtime:
|
373
|
-
- '0.
|
373
|
+
- '0.043259'
|
374
374
|
Content-Length:
|
375
|
-
- '
|
375
|
+
- '365'
|
376
376
|
body:
|
377
377
|
encoding: UTF-8
|
378
|
-
string: '{"_id":"
|
378
|
+
string: '{"_id":"5650f0a287f6436cbc000003","created_at":"2015-11-21T22:30:58Z","updated_at":"2015-11-21T22:30:58Z","content_type":"image","local_path":"images/header/rails.png","folder":"images/header","checksum":"933d32a3720db54b73003ba10a876eec","filename":"rails.png","url":"/sites/5650f08c87f6436c94000006/theme/images/header/rails.png","size":"7.31
|
379
379
|
KB","raw_size":7485}'
|
380
380
|
http_version:
|
381
|
-
recorded_at:
|
381
|
+
recorded_at: Sat, 21 Nov 2015 22:30:58 GMT
|
382
382
|
recorded_with: VCR 2.9.3
|
@@ -2,10 +2,10 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: post
|
5
|
-
uri: http://
|
5
|
+
uri: http://localhost:3000/locomotive/api/v3/tokens.json
|
6
6
|
body:
|
7
7
|
encoding: UTF-8
|
8
|
-
string: email=admin%40locomotivecms.com
|
8
|
+
string: api_key=d49cd50f6f0d2b163f48fc73cb249f0244c37074&email=admin%40locomotivecms.com
|
9
9
|
headers:
|
10
10
|
Accept:
|
11
11
|
- application/json
|
@@ -17,27 +17,29 @@ http_interactions:
|
|
17
17
|
- Ruby
|
18
18
|
response:
|
19
19
|
status:
|
20
|
-
code:
|
21
|
-
message:
|
20
|
+
code: 201
|
21
|
+
message: Created
|
22
22
|
headers:
|
23
23
|
Content-Type:
|
24
|
-
-
|
24
|
+
- application/json
|
25
|
+
Etag:
|
26
|
+
- W/"120917583ae3f64355d682b690f7cb40"
|
25
27
|
Cache-Control:
|
26
|
-
-
|
28
|
+
- max-age=0, private, must-revalidate
|
27
29
|
X-Request-Id:
|
28
|
-
-
|
30
|
+
- 93c7092a-9fe1-4f90-a513-e008ea455ee2
|
29
31
|
X-Runtime:
|
30
|
-
- '0.
|
31
|
-
|
32
|
-
-
|
32
|
+
- '0.018246'
|
33
|
+
Content-Length:
|
34
|
+
- '32'
|
33
35
|
body:
|
34
36
|
encoding: UTF-8
|
35
|
-
string:
|
37
|
+
string: '{"token":"E2aoXzMxkFsLnCcmCcc_"}'
|
36
38
|
http_version:
|
37
|
-
recorded_at:
|
39
|
+
recorded_at: Sat, 21 Nov 2015 22:31:02 GMT
|
38
40
|
- request:
|
39
41
|
method: post
|
40
|
-
uri: http://
|
42
|
+
uri: http://acme.example.com:3000/tokens.json
|
41
43
|
body:
|
42
44
|
encoding: UTF-8
|
43
45
|
string: email=admin%40locomotivecms.com&password=locomotive
|
@@ -52,24 +54,29 @@ http_interactions:
|
|
52
54
|
- Ruby
|
53
55
|
response:
|
54
56
|
status:
|
55
|
-
code:
|
56
|
-
message:
|
57
|
+
code: 404
|
58
|
+
message: Not Found
|
57
59
|
headers:
|
60
|
+
X-Frame-Options:
|
61
|
+
- SAMEORIGIN
|
62
|
+
X-Xss-Protection:
|
63
|
+
- 1; mode=block
|
64
|
+
X-Content-Type-Options:
|
65
|
+
- nosniff
|
58
66
|
Content-Type:
|
59
|
-
- application/json
|
60
|
-
Etag:
|
61
|
-
- W/"3b6ceb0d2ba232a8d48dd0dc8f702ef4"
|
67
|
+
- application/json; charset=utf-8
|
62
68
|
Cache-Control:
|
63
|
-
-
|
69
|
+
- no-cache
|
64
70
|
X-Request-Id:
|
65
|
-
-
|
71
|
+
- 14ab882f-7a7b-418a-a176-12bd1c9353d0
|
66
72
|
X-Runtime:
|
67
|
-
- '0.
|
68
|
-
|
69
|
-
-
|
73
|
+
- '0.110531'
|
74
|
+
Transfer-Encoding:
|
75
|
+
- chunked
|
70
76
|
body:
|
71
77
|
encoding: UTF-8
|
72
|
-
string:
|
78
|
+
string: |
|
79
|
+
{"error":"no site found"}
|
73
80
|
http_version:
|
74
|
-
recorded_at:
|
81
|
+
recorded_at: Sat, 21 Nov 2015 22:31:03 GMT
|
75
82
|
recorded_with: VCR 2.9.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
|
+
- 0d8afb02-0aed-4ed7-bb23-6c4020d43c7d
|
31
31
|
X-Runtime:
|
32
|
-
- '0.
|
32
|
+
- '0.015846'
|
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:30:57 GMT
|
40
40
|
- request:
|
41
41
|
method: get
|
42
|
-
uri: http://localhost:3000/locomotive/sample/api/v3/translations.json?auth_token=
|
42
|
+
uri: http://localhost:3000/locomotive/sample/api/v3/translations.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,29 +66,29 @@ http_interactions:
|
|
66
66
|
Cache-Control:
|
67
67
|
- max-age=0, private, must-revalidate
|
68
68
|
X-Request-Id:
|
69
|
-
-
|
69
|
+
- a6ddd5a8-c121-4956-b909-79eb0f8077dd
|
70
70
|
X-Runtime:
|
71
|
-
- '0.
|
71
|
+
- '0.039425'
|
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:30:58 GMT
|
79
79
|
- request:
|
80
80
|
method: post
|
81
81
|
uri: http://localhost:3000/locomotive/sample/api/v3/translations.json
|
82
82
|
body:
|
83
83
|
encoding: UTF-8
|
84
|
-
string: auth_token=
|
84
|
+
string: auth_token=E2aoXzMxkFsLnCcmCcc_&translation%5Bkey%5D=hello&translation%5Bvalues%5D%5Ben%5D=Hello+world&translation%5Bvalues%5D%5Bfr%5D=Bonjour+le+monde
|
85
85
|
headers:
|
86
86
|
Accept:
|
87
87
|
- application/json
|
88
88
|
X-Locomotive-Account-Email:
|
89
89
|
- admin@locomotivecms.com
|
90
90
|
X-Locomotive-Account-Token:
|
91
|
-
-
|
91
|
+
- E2aoXzMxkFsLnCcmCcc_
|
92
92
|
Content-Type:
|
93
93
|
- application/x-www-form-urlencoded
|
94
94
|
Accept-Encoding:
|
@@ -103,34 +103,34 @@ http_interactions:
|
|
103
103
|
Content-Type:
|
104
104
|
- application/json
|
105
105
|
Etag:
|
106
|
-
- W/"
|
106
|
+
- W/"e12c448b863d0d73edecffe2625f35c2"
|
107
107
|
Cache-Control:
|
108
108
|
- max-age=0, private, must-revalidate
|
109
109
|
X-Request-Id:
|
110
|
-
-
|
110
|
+
- a8d07bd2-dc1b-4281-8910-db7bbb5391b4
|
111
111
|
X-Runtime:
|
112
|
-
- '0.
|
112
|
+
- '0.038517'
|
113
113
|
Content-Length:
|
114
114
|
- '174'
|
115
115
|
body:
|
116
116
|
encoding: UTF-8
|
117
|
-
string: '{"_id":"
|
117
|
+
string: '{"_id":"5650f0a287f6436cbc000002","created_at":"2015-11-21T22:30:58Z","updated_at":"2015-11-21T22:30:58Z","key":"hello","values":{"en":"Hello
|
118
118
|
world","fr":"Bonjour le monde"}}'
|
119
119
|
http_version:
|
120
|
-
recorded_at:
|
120
|
+
recorded_at: Sat, 21 Nov 2015 22:30:58 GMT
|
121
121
|
- request:
|
122
122
|
method: put
|
123
|
-
uri: http://localhost:3000/locomotive/sample/api/v3/translations/
|
123
|
+
uri: http://localhost:3000/locomotive/sample/api/v3/translations/5650f0a287f6436cbc000002.json
|
124
124
|
body:
|
125
125
|
encoding: UTF-8
|
126
|
-
string: auth_token=
|
126
|
+
string: auth_token=E2aoXzMxkFsLnCcmCcc_&translation%5Bvalues%5D%5Ben%5D=Hello+world%21&translation%5Bvalues%5D%5Bfr%5D=Bonjour+le+monde%21
|
127
127
|
headers:
|
128
128
|
Accept:
|
129
129
|
- application/json
|
130
130
|
X-Locomotive-Account-Email:
|
131
131
|
- admin@locomotivecms.com
|
132
132
|
X-Locomotive-Account-Token:
|
133
|
-
-
|
133
|
+
- E2aoXzMxkFsLnCcmCcc_
|
134
134
|
Content-Type:
|
135
135
|
- application/x-www-form-urlencoded
|
136
136
|
Accept-Encoding:
|
@@ -145,24 +145,24 @@ http_interactions:
|
|
145
145
|
Content-Type:
|
146
146
|
- application/json
|
147
147
|
Etag:
|
148
|
-
- W/"
|
148
|
+
- W/"6d40d07a511948d32eb20b44dd228610"
|
149
149
|
Cache-Control:
|
150
150
|
- max-age=0, private, must-revalidate
|
151
151
|
X-Request-Id:
|
152
|
-
-
|
152
|
+
- 65e5ecda-6d24-42dd-bc34-06207c895e23
|
153
153
|
X-Runtime:
|
154
|
-
- '0.
|
154
|
+
- '0.032844'
|
155
155
|
Content-Length:
|
156
156
|
- '176'
|
157
157
|
body:
|
158
158
|
encoding: UTF-8
|
159
|
-
string: '{"_id":"
|
159
|
+
string: '{"_id":"5650f0a287f6436cbc000002","created_at":"2015-11-21T22:30:58Z","updated_at":"2015-11-21T22:30:58Z","key":"hello","values":{"en":"Hello
|
160
160
|
world!","fr":"Bonjour le monde!"}}'
|
161
161
|
http_version:
|
162
|
-
recorded_at:
|
162
|
+
recorded_at: Sat, 21 Nov 2015 22:30:58 GMT
|
163
163
|
- request:
|
164
164
|
method: delete
|
165
|
-
uri: http://localhost:3000/locomotive/sample/api/v3/translations/
|
165
|
+
uri: http://localhost:3000/locomotive/sample/api/v3/translations/5650f0a287f6436cbc000002.json?auth_token=E2aoXzMxkFsLnCcmCcc_
|
166
166
|
body:
|
167
167
|
encoding: US-ASCII
|
168
168
|
string: ''
|
@@ -172,7 +172,7 @@ http_interactions:
|
|
172
172
|
X-Locomotive-Account-Email:
|
173
173
|
- admin@locomotivecms.com
|
174
174
|
X-Locomotive-Account-Token:
|
175
|
-
-
|
175
|
+
- E2aoXzMxkFsLnCcmCcc_
|
176
176
|
Accept-Encoding:
|
177
177
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
178
178
|
User-Agent:
|
@@ -185,19 +185,19 @@ http_interactions:
|
|
185
185
|
Content-Type:
|
186
186
|
- application/json
|
187
187
|
Etag:
|
188
|
-
- W/"
|
188
|
+
- W/"6d40d07a511948d32eb20b44dd228610"
|
189
189
|
Cache-Control:
|
190
190
|
- max-age=0, private, must-revalidate
|
191
191
|
X-Request-Id:
|
192
|
-
-
|
192
|
+
- 586cf345-c1ec-4ae6-8f02-249eea3a1e43
|
193
193
|
X-Runtime:
|
194
|
-
- '0.
|
194
|
+
- '0.041395'
|
195
195
|
Content-Length:
|
196
196
|
- '176'
|
197
197
|
body:
|
198
198
|
encoding: UTF-8
|
199
|
-
string: '{"_id":"
|
199
|
+
string: '{"_id":"5650f0a287f6436cbc000002","created_at":"2015-11-21T22:30:58Z","updated_at":"2015-11-21T22:30:58Z","key":"hello","values":{"en":"Hello
|
200
200
|
world!","fr":"Bonjour le monde!"}}'
|
201
201
|
http_version:
|
202
|
-
recorded_at:
|
202
|
+
recorded_at: Sat, 21 Nov 2015 22:30:58 GMT
|
203
203
|
recorded_with: VCR 2.9.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
|
+
- c9b0e179-e34b-4366-b5a4-5e1e29ca34be
|
31
31
|
X-Runtime:
|
32
|
-
- '0.
|
32
|
+
- '0.020447'
|
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:00 GMT
|
40
40
|
- request:
|
41
41
|
method: get
|
42
|
-
uri: http://localhost:3000/locomotive/sample/api/v3/version.json?auth_token=
|
42
|
+
uri: http://localhost:3000/locomotive/sample/api/v3/version.json?auth_token=E2aoXzMxkFsLnCcmCcc_&email=admin@locomotivecms.com&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:
|
@@ -62,18 +62,18 @@ http_interactions:
|
|
62
62
|
Content-Type:
|
63
63
|
- application/json
|
64
64
|
Etag:
|
65
|
-
- W/"
|
65
|
+
- W/"a29b8ca75f03b52361cf5f1f8ebf001a"
|
66
66
|
Cache-Control:
|
67
67
|
- max-age=0, private, must-revalidate
|
68
68
|
X-Request-Id:
|
69
|
-
-
|
69
|
+
- d760b628-240d-4c11-a211-10dcd5102028
|
70
70
|
X-Runtime:
|
71
|
-
- '0.
|
71
|
+
- '0.018271'
|
72
72
|
Content-Length:
|
73
|
-
- '
|
73
|
+
- '22'
|
74
74
|
body:
|
75
75
|
encoding: UTF-8
|
76
|
-
string: '{"engine":"3.0.0
|
76
|
+
string: '{"engine":"3.0.0.rc3"}'
|
77
77
|
http_version:
|
78
|
-
recorded_at:
|
78
|
+
recorded_at: Sat, 21 Nov 2015 22:31:00 GMT
|
79
79
|
recorded_with: VCR 2.9.3
|
data/spec/unit/error_spec.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: locomotivecms_coal
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.
|
4
|
+
version: 1.0.0.rc2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Didier Lafforgue
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-11-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -181,7 +181,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
181
181
|
version: 1.3.1
|
182
182
|
requirements: []
|
183
183
|
rubyforge_project:
|
184
|
-
rubygems_version: 2.
|
184
|
+
rubygems_version: 2.5.0
|
185
185
|
signing_key:
|
186
186
|
specification_version: 4
|
187
187
|
summary: The LocomotiveCMS Coal is the API ruby client for the LocomotiveCMS platform
|