locomotivecms_coal 1.0.0.pre.alpha.3 → 1.0.0.pre.beta.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (32) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +7 -7
  3. data/README.md +60 -3
  4. data/lib/locomotive/coal/client.rb +10 -3
  5. data/lib/locomotive/coal/error.rb +4 -3
  6. data/lib/locomotive/coal/resources/concerns/request.rb +3 -3
  7. data/lib/locomotive/coal/resources/content_entries.rb +9 -0
  8. data/lib/locomotive/coal/resources/current_site.rb +25 -0
  9. data/lib/locomotive/coal/resources/memberships.rb +13 -0
  10. data/lib/locomotive/coal/resources/pages.rb +1 -1
  11. data/lib/locomotive/coal/resources/snippets.rb +8 -0
  12. data/lib/locomotive/coal/version.rb +1 -1
  13. data/lib/locomotive/coal.rb +3 -0
  14. data/locomotivecms_coal.gemspec +2 -2
  15. data/spec/fixtures/coal_cassettes/client.yml +117 -160
  16. data/spec/fixtures/coal_cassettes/content_assets.yml +47 -71
  17. data/spec/fixtures/coal_cassettes/content_entries.yml +510 -388
  18. data/spec/fixtures/coal_cassettes/content_types.yml +128 -196
  19. data/spec/fixtures/coal_cassettes/current_site.yml +124 -0
  20. data/spec/fixtures/coal_cassettes/memberships.yml +203 -0
  21. data/spec/fixtures/coal_cassettes/my_account.yml +40 -62
  22. data/spec/fixtures/coal_cassettes/pages.yml +82 -108
  23. data/spec/fixtures/coal_cassettes/sites.yml +43 -59
  24. data/spec/fixtures/coal_cassettes/snippets.yml +48 -70
  25. data/spec/fixtures/coal_cassettes/theme_assets.yml +46 -70
  26. data/spec/fixtures/coal_cassettes/token.yml +25 -31
  27. data/spec/fixtures/coal_cassettes/translations.yml +46 -70
  28. data/spec/fixtures/coal_cassettes/version.yml +18 -28
  29. data/spec/integration/resources/content_entries_spec.rb +11 -0
  30. data/spec/integration/resources/current_site_spec.rb +22 -0
  31. data/spec/integration/resources/memberships_spec.rb +39 -0
  32. metadata +16 -6
@@ -22,40 +22,34 @@ http_interactions:
22
22
  headers:
23
23
  Content-Type:
24
24
  - application/json
25
- Content-Length:
26
- - '32'
27
25
  Etag:
28
- - W/"61c6d81d1b41b9aad218fbfd9bec3e38"
26
+ - W/"157eb61d395f237526d11950bbc5a1fa"
29
27
  Cache-Control:
30
28
  - max-age=0, private, must-revalidate
31
29
  X-Request-Id:
32
- - 634ca1b4-6314-41ab-9258-005e6c5cce80
30
+ - cdd62bc6-95e5-4587-9d2b-bfec39f6f010
33
31
  X-Runtime:
34
- - '0.015775'
35
- Connection:
36
- - keep-alive
37
- Server:
38
- - thin
32
+ - '0.013962'
33
+ Content-Length:
34
+ - '32'
39
35
  body:
40
36
  encoding: UTF-8
41
- string: '{"token":"NuCxqFfvpry9osYdFUm1"}'
37
+ string: '{"token":"v6XDp282UyPDeM6DgA-S"}'
42
38
  http_version:
43
- recorded_at: Mon, 04 May 2015 13:55:10 GMT
39
+ recorded_at: Wed, 29 Jul 2015 15:36:35 GMT
44
40
  - request:
45
41
  method: get
46
- uri: http://localhost:3000/locomotive/sample/api/v3/content_types.json
42
+ uri: http://localhost:3000/locomotive/sample/api/v3/content_types.json?auth_token=v6XDp282UyPDeM6DgA-S
47
43
  body:
48
- encoding: UTF-8
49
- string: auth_token=NuCxqFfvpry9osYdFUm1
44
+ encoding: US-ASCII
45
+ string: ''
50
46
  headers:
51
47
  Accept:
52
48
  - application/json
53
49
  X-Locomotive-Account-Email:
54
50
  - admin@locomotivecms.com
55
51
  X-Locomotive-Account-Token:
56
- - NuCxqFfvpry9osYdFUm1
57
- Content-Type:
58
- - application/x-www-form-urlencoded
52
+ - v6XDp282UyPDeM6DgA-S
59
53
  Accept-Encoding:
60
54
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
61
55
  User-Agent:
@@ -67,25 +61,21 @@ http_interactions:
67
61
  headers:
68
62
  Content-Type:
69
63
  - application/json
70
- Content-Length:
71
- - '2'
72
64
  Etag:
73
65
  - W/"d751713988987e9331980363e24189ce"
74
66
  Cache-Control:
75
67
  - max-age=0, private, must-revalidate
76
68
  X-Request-Id:
77
- - 29566a7a-576b-4d50-b91c-327bac3acd14
69
+ - cbc98dfd-4d64-46dd-94d4-216187424fcd
78
70
  X-Runtime:
79
- - '0.039877'
80
- Connection:
81
- - keep-alive
82
- Server:
83
- - thin
71
+ - '0.026948'
72
+ Content-Length:
73
+ - '2'
84
74
  body:
85
75
  encoding: UTF-8
86
76
  string: "[]"
87
77
  http_version:
88
- recorded_at: Mon, 04 May 2015 13:55:10 GMT
78
+ recorded_at: Wed, 29 Jul 2015 15:36:35 GMT
89
79
  - request:
90
80
  method: post
91
81
  uri: http://localhost:3000/locomotive/api/v3/tokens.json
@@ -108,38 +98,34 @@ http_interactions:
108
98
  headers:
109
99
  Content-Type:
110
100
  - application/json
111
- Content-Length:
112
- - '32'
113
101
  Etag:
114
- - W/"61c6d81d1b41b9aad218fbfd9bec3e38"
102
+ - W/"157eb61d395f237526d11950bbc5a1fa"
115
103
  Cache-Control:
116
104
  - max-age=0, private, must-revalidate
117
105
  X-Request-Id:
118
- - d84d4dd3-9749-42fe-808d-9ba94aff5191
106
+ - 4edae477-4dc3-481f-ae85-31cd941360fd
119
107
  X-Runtime:
120
- - '0.015005'
121
- Connection:
122
- - keep-alive
123
- Server:
124
- - thin
108
+ - '0.014001'
109
+ Content-Length:
110
+ - '32'
125
111
  body:
126
112
  encoding: UTF-8
127
- string: '{"token":"NuCxqFfvpry9osYdFUm1"}'
113
+ string: '{"token":"v6XDp282UyPDeM6DgA-S"}'
128
114
  http_version:
129
- recorded_at: Mon, 04 May 2015 13:55:10 GMT
115
+ recorded_at: Wed, 29 Jul 2015 15:36:36 GMT
130
116
  - request:
131
117
  method: post
132
118
  uri: http://localhost:3000/locomotive/sample/api/v3/content_types.json
133
119
  body:
134
120
  encoding: UTF-8
135
- string: auth_token=NuCxqFfvpry9osYdFUm1&content_type%5Bfields%5D%5B%5D%5Blabel%5D=Name&content_type%5Bfields%5D%5B%5D%5Bname%5D=name&content_type%5Bfields%5D%5B%5D%5Btype%5D=string&content_type%5Bname%5D=Projects&content_type%5Bslug%5D=projects
121
+ string: auth_token=v6XDp282UyPDeM6DgA-S&content_type%5Bfields%5D%5B%5D%5Blabel%5D=Name&content_type%5Bfields%5D%5B%5D%5Bname%5D=name&content_type%5Bfields%5D%5B%5D%5Btype%5D=string&content_type%5Bname%5D=Projects&content_type%5Bslug%5D=projects
136
122
  headers:
137
123
  Accept:
138
124
  - application/json
139
125
  X-Locomotive-Account-Email:
140
126
  - admin@locomotivecms.com
141
127
  X-Locomotive-Account-Token:
142
- - NuCxqFfvpry9osYdFUm1
128
+ - v6XDp282UyPDeM6DgA-S
143
129
  Content-Type:
144
130
  - application/x-www-form-urlencoded
145
131
  Accept-Encoding:
@@ -153,25 +139,21 @@ http_interactions:
153
139
  headers:
154
140
  Content-Type:
155
141
  - application/json
156
- Content-Length:
157
- - '549'
158
142
  Etag:
159
- - W/"be22e78fa71c253f833d0a5a2b7bd117"
143
+ - W/"b8a65680f6f7fb9efd48d521d9c0560c"
160
144
  Cache-Control:
161
145
  - max-age=0, private, must-revalidate
162
146
  X-Request-Id:
163
- - d2262f1e-5f78-4749-a651-a7297e51993e
147
+ - 676c60f0-10f9-49cf-9dc9-5b6123d38481
164
148
  X-Runtime:
165
- - '0.060041'
166
- Connection:
167
- - keep-alive
168
- Server:
169
- - thin
149
+ - '0.081152'
150
+ Content-Length:
151
+ - '573'
170
152
  body:
171
153
  encoding: UTF-8
172
- string: '{"_id":"55477a3e6469643251480300","created_at":"2015-05-04T13:55:10Z","updated_at":"2015-05-04T13:55:10Z","name":"Projects","slug":"projects","description":null,"label_field_name":"name","order_direction":"asc","public_submission_enabled":false,"raw_item_template":null,"fields":[{"_id":"55477a3e6469643251490300","created_at":null,"updated_at":null,"name":"name","type":"string","label":"Name","hint":null,"required":true,"localized":false,"unique":false,"position":0}],"order_by":"created_at","group_by":null,"public_submission_account_emails":[]}'
154
+ string: '{"_id":"55b8f304446964641a000008","created_at":"2015-07-29T15:36:36Z","updated_at":"2015-07-29T15:36:36Z","name":"Projects","slug":"projects","description":null,"label_field_name":"name","order_direction":"asc","public_submission_enabled":false,"raw_item_template":null,"display_settings":null,"fields":[{"_id":"55b8f304446964641a000009","created_at":null,"updated_at":null,"name":"name","type":"string","label":"Name","hint":null,"required":true,"localized":false,"unique":false,"position":0}],"order_by":"created_at","group_by":null,"public_submission_account_emails":[]}'
173
155
  http_version:
174
- recorded_at: Mon, 04 May 2015 13:55:10 GMT
156
+ recorded_at: Wed, 29 Jul 2015 15:36:36 GMT
175
157
  - request:
176
158
  method: post
177
159
  uri: http://localhost:3000/locomotive/api/v3/tokens.json
@@ -194,40 +176,34 @@ http_interactions:
194
176
  headers:
195
177
  Content-Type:
196
178
  - application/json
197
- Content-Length:
198
- - '32'
199
179
  Etag:
200
- - W/"61c6d81d1b41b9aad218fbfd9bec3e38"
180
+ - W/"157eb61d395f237526d11950bbc5a1fa"
201
181
  Cache-Control:
202
182
  - max-age=0, private, must-revalidate
203
183
  X-Request-Id:
204
- - 1e8df614-192a-4bf4-8132-ec425d1a982b
184
+ - aa11c113-2662-40db-8838-3db6c3e6eb67
205
185
  X-Runtime:
206
- - '0.014822'
207
- Connection:
208
- - keep-alive
209
- Server:
210
- - thin
186
+ - '0.020128'
187
+ Content-Length:
188
+ - '32'
211
189
  body:
212
190
  encoding: UTF-8
213
- string: '{"token":"NuCxqFfvpry9osYdFUm1"}'
191
+ string: '{"token":"v6XDp282UyPDeM6DgA-S"}'
214
192
  http_version:
215
- recorded_at: Mon, 04 May 2015 13:55:10 GMT
193
+ recorded_at: Wed, 29 Jul 2015 15:36:36 GMT
216
194
  - request:
217
195
  method: get
218
- uri: http://localhost:3000/locomotive/sample/api/v3/content_types.json
196
+ uri: http://localhost:3000/locomotive/sample/api/v3/content_types.json?auth_token=v6XDp282UyPDeM6DgA-S
219
197
  body:
220
- encoding: UTF-8
221
- string: auth_token=NuCxqFfvpry9osYdFUm1
198
+ encoding: US-ASCII
199
+ string: ''
222
200
  headers:
223
201
  Accept:
224
202
  - application/json
225
203
  X-Locomotive-Account-Email:
226
204
  - admin@locomotivecms.com
227
205
  X-Locomotive-Account-Token:
228
- - NuCxqFfvpry9osYdFUm1
229
- Content-Type:
230
- - application/x-www-form-urlencoded
206
+ - v6XDp282UyPDeM6DgA-S
231
207
  Accept-Encoding:
232
208
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
233
209
  User-Agent:
@@ -239,38 +215,34 @@ http_interactions:
239
215
  headers:
240
216
  Content-Type:
241
217
  - application/json
242
- Content-Length:
243
- - '551'
244
218
  Etag:
245
- - W/"13e0e20c7b2e68347e46689530a95be1"
219
+ - W/"4c260c5297487b976289fd5332a70d21"
246
220
  Cache-Control:
247
221
  - max-age=0, private, must-revalidate
248
222
  X-Request-Id:
249
- - eb42b9c7-42e9-4fde-a5e8-39a338fdf685
223
+ - 12a23fce-ef84-4604-aa33-119bfd8fc465
250
224
  X-Runtime:
251
- - '0.042756'
252
- Connection:
253
- - keep-alive
254
- Server:
255
- - thin
225
+ - '0.037587'
226
+ Content-Length:
227
+ - '575'
256
228
  body:
257
229
  encoding: UTF-8
258
- string: '[{"_id":"55477a3e6469643251480300","created_at":"2015-05-04T13:55:10Z","updated_at":"2015-05-04T13:55:10Z","name":"Projects","slug":"projects","description":null,"label_field_name":"name","order_direction":"asc","public_submission_enabled":false,"raw_item_template":null,"fields":[{"_id":"55477a3e6469643251490300","created_at":null,"updated_at":null,"name":"name","type":"string","label":"Name","hint":null,"required":true,"localized":false,"unique":false,"position":0}],"order_by":"created_at","group_by":null,"public_submission_account_emails":[]}]'
230
+ string: '[{"_id":"55b8f304446964641a000008","created_at":"2015-07-29T15:36:36Z","updated_at":"2015-07-29T15:36:36Z","name":"Projects","slug":"projects","description":null,"label_field_name":"name","order_direction":"asc","public_submission_enabled":false,"raw_item_template":null,"display_settings":null,"fields":[{"_id":"55b8f304446964641a000009","created_at":null,"updated_at":null,"name":"name","type":"string","label":"Name","hint":null,"required":true,"localized":false,"unique":false,"position":0}],"order_by":"created_at","group_by":null,"public_submission_account_emails":[]}]'
259
231
  http_version:
260
- recorded_at: Mon, 04 May 2015 13:55:10 GMT
232
+ recorded_at: Wed, 29 Jul 2015 15:36:36 GMT
261
233
  - request:
262
234
  method: put
263
- uri: http://localhost:3000/locomotive/sample/api/v3/content_types/55477a3e6469643251480300.json
235
+ uri: http://localhost:3000/locomotive/sample/api/v3/content_types/55b8f304446964641a000008.json
264
236
  body:
265
237
  encoding: UTF-8
266
- string: auth_token=NuCxqFfvpry9osYdFUm1&content_type%5Bname%5D=Our+projects
238
+ string: auth_token=v6XDp282UyPDeM6DgA-S&content_type%5Bname%5D=Our+projects
267
239
  headers:
268
240
  Accept:
269
241
  - application/json
270
242
  X-Locomotive-Account-Email:
271
243
  - admin@locomotivecms.com
272
244
  X-Locomotive-Account-Token:
273
- - NuCxqFfvpry9osYdFUm1
245
+ - v6XDp282UyPDeM6DgA-S
274
246
  Content-Type:
275
247
  - application/x-www-form-urlencoded
276
248
  Accept-Encoding:
@@ -284,26 +256,22 @@ http_interactions:
284
256
  headers:
285
257
  Content-Type:
286
258
  - application/json
287
- Content-Length:
288
- - '553'
289
259
  Etag:
290
- - W/"babb06d9a57c66e6e8c52da416d20309"
260
+ - W/"45486fc2f1bf492d12cb7b11624d30e0"
291
261
  Cache-Control:
292
262
  - max-age=0, private, must-revalidate
293
263
  X-Request-Id:
294
- - fd63264e-42df-4a1d-93c1-71260e3d083e
264
+ - fca00f1f-3c54-4f6f-8a32-52c4cbf03e47
295
265
  X-Runtime:
296
- - '0.043858'
297
- Connection:
298
- - keep-alive
299
- Server:
300
- - thin
266
+ - '0.040226'
267
+ Content-Length:
268
+ - '577'
301
269
  body:
302
270
  encoding: UTF-8
303
- string: '{"_id":"55477a3e6469643251480300","created_at":"2015-05-04T13:55:10Z","updated_at":"2015-05-04T13:55:10Z","name":"Our
304
- projects","slug":"projects","description":null,"label_field_name":"name","order_direction":"asc","public_submission_enabled":false,"raw_item_template":null,"fields":[{"_id":"55477a3e6469643251490300","created_at":null,"updated_at":null,"name":"name","type":"string","label":"Name","hint":null,"required":true,"localized":false,"unique":false,"position":0}],"order_by":"created_at","group_by":null,"public_submission_account_emails":[]}'
271
+ string: '{"_id":"55b8f304446964641a000008","created_at":"2015-07-29T15:36:36Z","updated_at":"2015-07-29T15:36:36Z","name":"Our
272
+ projects","slug":"projects","description":null,"label_field_name":"name","order_direction":"asc","public_submission_enabled":false,"raw_item_template":null,"display_settings":null,"fields":[{"_id":"55b8f304446964641a000009","created_at":null,"updated_at":null,"name":"name","type":"string","label":"Name","hint":null,"required":true,"localized":false,"unique":false,"position":0}],"order_by":"created_at","group_by":null,"public_submission_account_emails":[]}'
305
273
  http_version:
306
- recorded_at: Mon, 04 May 2015 13:55:10 GMT
274
+ recorded_at: Wed, 29 Jul 2015 15:36:36 GMT
307
275
  - request:
308
276
  method: post
309
277
  uri: http://localhost:3000/locomotive/api/v3/tokens.json
@@ -326,40 +294,34 @@ http_interactions:
326
294
  headers:
327
295
  Content-Type:
328
296
  - application/json
329
- Content-Length:
330
- - '32'
331
297
  Etag:
332
- - W/"61c6d81d1b41b9aad218fbfd9bec3e38"
298
+ - W/"157eb61d395f237526d11950bbc5a1fa"
333
299
  Cache-Control:
334
300
  - max-age=0, private, must-revalidate
335
301
  X-Request-Id:
336
- - ad45fdda-fe37-4b9a-8ce8-c3c187392b7a
302
+ - 19fb9c9c-0e19-479b-b8b5-fbf0a001f8ec
337
303
  X-Runtime:
338
- - '0.020351'
339
- Connection:
340
- - keep-alive
341
- Server:
342
- - thin
304
+ - '0.013605'
305
+ Content-Length:
306
+ - '32'
343
307
  body:
344
308
  encoding: UTF-8
345
- string: '{"token":"NuCxqFfvpry9osYdFUm1"}'
309
+ string: '{"token":"v6XDp282UyPDeM6DgA-S"}'
346
310
  http_version:
347
- recorded_at: Mon, 04 May 2015 13:55:10 GMT
311
+ recorded_at: Wed, 29 Jul 2015 15:36:36 GMT
348
312
  - request:
349
313
  method: get
350
- uri: http://localhost:3000/locomotive/sample/api/v3/content_types.json
314
+ uri: http://localhost:3000/locomotive/sample/api/v3/content_types.json?auth_token=v6XDp282UyPDeM6DgA-S
351
315
  body:
352
- encoding: UTF-8
353
- string: auth_token=NuCxqFfvpry9osYdFUm1
316
+ encoding: US-ASCII
317
+ string: ''
354
318
  headers:
355
319
  Accept:
356
320
  - application/json
357
321
  X-Locomotive-Account-Email:
358
322
  - admin@locomotivecms.com
359
323
  X-Locomotive-Account-Token:
360
- - NuCxqFfvpry9osYdFUm1
361
- Content-Type:
362
- - application/x-www-form-urlencoded
324
+ - v6XDp282UyPDeM6DgA-S
363
325
  Accept-Encoding:
364
326
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
365
327
  User-Agent:
@@ -371,41 +333,35 @@ http_interactions:
371
333
  headers:
372
334
  Content-Type:
373
335
  - application/json
374
- Content-Length:
375
- - '555'
376
336
  Etag:
377
- - W/"61c64815463a39d9debd7752a6dfd26d"
337
+ - W/"c7327222d611b6e7209989ba479c75d8"
378
338
  Cache-Control:
379
339
  - max-age=0, private, must-revalidate
380
340
  X-Request-Id:
381
- - d74d8093-3e23-477b-9b57-9e5c5976c88f
341
+ - 8ace7502-1483-4085-a70d-c19e452e2adf
382
342
  X-Runtime:
383
- - '0.033780'
384
- Connection:
385
- - keep-alive
386
- Server:
387
- - thin
343
+ - '0.032246'
344
+ Content-Length:
345
+ - '579'
388
346
  body:
389
347
  encoding: UTF-8
390
- string: '[{"_id":"55477a3e6469643251480300","created_at":"2015-05-04T13:55:10Z","updated_at":"2015-05-04T13:55:10Z","name":"Our
391
- projects","slug":"projects","description":null,"label_field_name":"name","order_direction":"asc","public_submission_enabled":false,"raw_item_template":null,"fields":[{"_id":"55477a3e6469643251490300","created_at":null,"updated_at":null,"name":"name","type":"string","label":"Name","hint":null,"required":true,"localized":false,"unique":false,"position":0}],"order_by":"created_at","group_by":null,"public_submission_account_emails":[]}]'
348
+ string: '[{"_id":"55b8f304446964641a000008","created_at":"2015-07-29T15:36:36Z","updated_at":"2015-07-29T15:36:36Z","name":"Our
349
+ projects","slug":"projects","description":null,"label_field_name":"name","order_direction":"asc","public_submission_enabled":false,"raw_item_template":null,"display_settings":null,"fields":[{"_id":"55b8f304446964641a000009","created_at":null,"updated_at":null,"name":"name","type":"string","label":"Name","hint":null,"required":true,"localized":false,"unique":false,"position":0}],"order_by":"created_at","group_by":null,"public_submission_account_emails":[]}]'
392
350
  http_version:
393
- recorded_at: Mon, 04 May 2015 13:55:10 GMT
351
+ recorded_at: Wed, 29 Jul 2015 15:36:36 GMT
394
352
  - request:
395
353
  method: delete
396
- uri: http://localhost:3000/locomotive/sample/api/v3/content_types/55477a3e6469643251480300.json
354
+ uri: http://localhost:3000/locomotive/sample/api/v3/content_types/55b8f304446964641a000008.json?auth_token=v6XDp282UyPDeM6DgA-S
397
355
  body:
398
- encoding: UTF-8
399
- string: auth_token=NuCxqFfvpry9osYdFUm1
356
+ encoding: US-ASCII
357
+ string: ''
400
358
  headers:
401
359
  Accept:
402
360
  - application/json
403
361
  X-Locomotive-Account-Email:
404
362
  - admin@locomotivecms.com
405
363
  X-Locomotive-Account-Token:
406
- - NuCxqFfvpry9osYdFUm1
407
- Content-Type:
408
- - application/x-www-form-urlencoded
364
+ - v6XDp282UyPDeM6DgA-S
409
365
  Accept-Encoding:
410
366
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
411
367
  User-Agent:
@@ -417,26 +373,22 @@ http_interactions:
417
373
  headers:
418
374
  Content-Type:
419
375
  - application/json
420
- Content-Length:
421
- - '553'
422
376
  Etag:
423
- - W/"babb06d9a57c66e6e8c52da416d20309"
377
+ - W/"45486fc2f1bf492d12cb7b11624d30e0"
424
378
  Cache-Control:
425
379
  - max-age=0, private, must-revalidate
426
380
  X-Request-Id:
427
- - ea4d4bdd-d387-407b-8627-71770d98ae9c
381
+ - 0768f2c2-2225-4898-8802-553c97170bb3
428
382
  X-Runtime:
429
- - '0.024044'
430
- Connection:
431
- - keep-alive
432
- Server:
433
- - thin
383
+ - '0.028988'
384
+ Content-Length:
385
+ - '577'
434
386
  body:
435
387
  encoding: UTF-8
436
- string: '{"_id":"55477a3e6469643251480300","created_at":"2015-05-04T13:55:10Z","updated_at":"2015-05-04T13:55:10Z","name":"Our
437
- projects","slug":"projects","description":null,"label_field_name":"name","order_direction":"asc","public_submission_enabled":false,"raw_item_template":null,"fields":[{"_id":"55477a3e6469643251490300","created_at":null,"updated_at":null,"name":"name","type":"string","label":"Name","hint":null,"required":true,"localized":false,"unique":false,"position":0}],"order_by":"created_at","group_by":null,"public_submission_account_emails":[]}'
388
+ string: '{"_id":"55b8f304446964641a000008","created_at":"2015-07-29T15:36:36Z","updated_at":"2015-07-29T15:36:36Z","name":"Our
389
+ projects","slug":"projects","description":null,"label_field_name":"name","order_direction":"asc","public_submission_enabled":false,"raw_item_template":null,"display_settings":null,"fields":[{"_id":"55b8f304446964641a000009","created_at":null,"updated_at":null,"name":"name","type":"string","label":"Name","hint":null,"required":true,"localized":false,"unique":false,"position":0}],"order_by":"created_at","group_by":null,"public_submission_account_emails":[]}'
438
390
  http_version:
439
- recorded_at: Mon, 04 May 2015 13:55:10 GMT
391
+ recorded_at: Wed, 29 Jul 2015 15:36:36 GMT
440
392
  - request:
441
393
  method: post
442
394
  uri: http://localhost:3000/locomotive/api/v3/tokens.json
@@ -459,40 +411,34 @@ http_interactions:
459
411
  headers:
460
412
  Content-Type:
461
413
  - application/json
462
- Content-Length:
463
- - '32'
464
414
  Etag:
465
- - W/"61c6d81d1b41b9aad218fbfd9bec3e38"
415
+ - W/"157eb61d395f237526d11950bbc5a1fa"
466
416
  Cache-Control:
467
417
  - max-age=0, private, must-revalidate
468
418
  X-Request-Id:
469
- - bd3d450a-b00a-4d4b-aab2-09d9a1659c04
419
+ - d86bd569-a3b0-4e25-b7b7-f1a11484a212
470
420
  X-Runtime:
471
- - '0.013403'
472
- Connection:
473
- - keep-alive
474
- Server:
475
- - thin
421
+ - '0.014056'
422
+ Content-Length:
423
+ - '32'
476
424
  body:
477
425
  encoding: UTF-8
478
- string: '{"token":"NuCxqFfvpry9osYdFUm1"}'
426
+ string: '{"token":"v6XDp282UyPDeM6DgA-S"}'
479
427
  http_version:
480
- recorded_at: Mon, 04 May 2015 13:55:11 GMT
428
+ recorded_at: Wed, 29 Jul 2015 15:36:36 GMT
481
429
  - request:
482
430
  method: get
483
- uri: http://localhost:3000/locomotive/sample/api/v3/content_types.json
431
+ uri: http://localhost:3000/locomotive/sample/api/v3/content_types.json?auth_token=v6XDp282UyPDeM6DgA-S
484
432
  body:
485
- encoding: UTF-8
486
- string: auth_token=NuCxqFfvpry9osYdFUm1
433
+ encoding: US-ASCII
434
+ string: ''
487
435
  headers:
488
436
  Accept:
489
437
  - application/json
490
438
  X-Locomotive-Account-Email:
491
439
  - admin@locomotivecms.com
492
440
  X-Locomotive-Account-Token:
493
- - NuCxqFfvpry9osYdFUm1
494
- Content-Type:
495
- - application/x-www-form-urlencoded
441
+ - v6XDp282UyPDeM6DgA-S
496
442
  Accept-Encoding:
497
443
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
498
444
  User-Agent:
@@ -504,38 +450,34 @@ http_interactions:
504
450
  headers:
505
451
  Content-Type:
506
452
  - application/json
507
- Content-Length:
508
- - '2'
509
453
  Etag:
510
454
  - W/"d751713988987e9331980363e24189ce"
511
455
  Cache-Control:
512
456
  - max-age=0, private, must-revalidate
513
457
  X-Request-Id:
514
- - 193ad8f7-bbf8-4382-9f10-039e39deeb14
458
+ - 8df39155-1f0f-4b0b-85d6-818e5084afa7
515
459
  X-Runtime:
516
- - '0.019278'
517
- Connection:
518
- - keep-alive
519
- Server:
520
- - thin
460
+ - '0.042558'
461
+ Content-Length:
462
+ - '2'
521
463
  body:
522
464
  encoding: UTF-8
523
465
  string: "[]"
524
466
  http_version:
525
- recorded_at: Mon, 04 May 2015 13:55:11 GMT
467
+ recorded_at: Wed, 29 Jul 2015 15:36:36 GMT
526
468
  - request:
527
469
  method: post
528
470
  uri: http://localhost:3000/locomotive/sample/api/v3/content_types.json
529
471
  body:
530
472
  encoding: UTF-8
531
- string: auth_token=NuCxqFfvpry9osYdFUm1&content_type%5Bfields%5D%5B%5D%5Blabel%5D=Name&content_type%5Bfields%5D%5B%5D%5Bname%5D=name&content_type%5Bfields%5D%5B%5D%5Btype%5D=string&content_type%5Bname%5D=Projects&content_type%5Bslug%5D=projects
473
+ string: auth_token=v6XDp282UyPDeM6DgA-S&content_type%5Bfields%5D%5B%5D%5Blabel%5D=Name&content_type%5Bfields%5D%5B%5D%5Bname%5D=name&content_type%5Bfields%5D%5B%5D%5Btype%5D=string&content_type%5Bname%5D=Projects&content_type%5Bslug%5D=projects
532
474
  headers:
533
475
  Accept:
534
476
  - application/json
535
477
  X-Locomotive-Account-Email:
536
478
  - admin@locomotivecms.com
537
479
  X-Locomotive-Account-Token:
538
- - NuCxqFfvpry9osYdFUm1
480
+ - v6XDp282UyPDeM6DgA-S
539
481
  Content-Type:
540
482
  - application/x-www-form-urlencoded
541
483
  Accept-Encoding:
@@ -549,40 +491,34 @@ http_interactions:
549
491
  headers:
550
492
  Content-Type:
551
493
  - application/json
552
- Content-Length:
553
- - '549'
554
494
  Etag:
555
- - W/"752f101d5ebe23634f29c7f315610e0e"
495
+ - W/"654b1aee90eb1c42f5923a54be365a61"
556
496
  Cache-Control:
557
497
  - max-age=0, private, must-revalidate
558
498
  X-Request-Id:
559
- - 9b2b89c0-8f61-4742-b24a-74e82630ed58
499
+ - 7d27d7cf-b175-4962-9ec8-304b6bfb4cac
560
500
  X-Runtime:
561
- - '0.043684'
562
- Connection:
563
- - keep-alive
564
- Server:
565
- - thin
501
+ - '0.032918'
502
+ Content-Length:
503
+ - '573'
566
504
  body:
567
505
  encoding: UTF-8
568
- string: '{"_id":"55477a3f64696432514a0300","created_at":"2015-05-04T13:55:11Z","updated_at":"2015-05-04T13:55:11Z","name":"Projects","slug":"projects","description":null,"label_field_name":"name","order_direction":"asc","public_submission_enabled":false,"raw_item_template":null,"fields":[{"_id":"55477a3f64696432514b0300","created_at":null,"updated_at":null,"name":"name","type":"string","label":"Name","hint":null,"required":true,"localized":false,"unique":false,"position":0}],"order_by":"created_at","group_by":null,"public_submission_account_emails":[]}'
506
+ string: '{"_id":"55b8f304446964641a00000a","created_at":"2015-07-29T15:36:36Z","updated_at":"2015-07-29T15:36:36Z","name":"Projects","slug":"projects","description":null,"label_field_name":"name","order_direction":"asc","public_submission_enabled":false,"raw_item_template":null,"display_settings":null,"fields":[{"_id":"55b8f304446964641a00000b","created_at":null,"updated_at":null,"name":"name","type":"string","label":"Name","hint":null,"required":true,"localized":false,"unique":false,"position":0}],"order_by":"created_at","group_by":null,"public_submission_account_emails":[]}'
569
507
  http_version:
570
- recorded_at: Mon, 04 May 2015 13:55:11 GMT
508
+ recorded_at: Wed, 29 Jul 2015 15:36:36 GMT
571
509
  - request:
572
510
  method: get
573
- uri: http://localhost:3000/locomotive/sample/api/v3/content_types.json
511
+ uri: http://localhost:3000/locomotive/sample/api/v3/content_types.json?auth_token=v6XDp282UyPDeM6DgA-S
574
512
  body:
575
- encoding: UTF-8
576
- string: auth_token=NuCxqFfvpry9osYdFUm1
513
+ encoding: US-ASCII
514
+ string: ''
577
515
  headers:
578
516
  Accept:
579
517
  - application/json
580
518
  X-Locomotive-Account-Email:
581
519
  - admin@locomotivecms.com
582
520
  X-Locomotive-Account-Token:
583
- - NuCxqFfvpry9osYdFUm1
584
- Content-Type:
585
- - application/x-www-form-urlencoded
521
+ - v6XDp282UyPDeM6DgA-S
586
522
  Accept-Encoding:
587
523
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
588
524
  User-Agent:
@@ -594,23 +530,19 @@ http_interactions:
594
530
  headers:
595
531
  Content-Type:
596
532
  - application/json
597
- Content-Length:
598
- - '551'
599
533
  Etag:
600
- - W/"fb16282d502d49a3ec22b8cd8b1644f3"
534
+ - W/"ba51f4c890dc2269e3c87649b3b40933"
601
535
  Cache-Control:
602
536
  - max-age=0, private, must-revalidate
603
537
  X-Request-Id:
604
- - 1cfee319-a9d9-452b-9dfd-6a225edabb38
538
+ - 45ac50bb-1933-4424-83a4-cae9385fe9cb
605
539
  X-Runtime:
606
- - '0.023280'
607
- Connection:
608
- - keep-alive
609
- Server:
610
- - thin
540
+ - '0.021423'
541
+ Content-Length:
542
+ - '575'
611
543
  body:
612
544
  encoding: UTF-8
613
- string: '[{"_id":"55477a3f64696432514a0300","created_at":"2015-05-04T13:55:11Z","updated_at":"2015-05-04T13:55:11Z","name":"Projects","slug":"projects","description":null,"label_field_name":"name","order_direction":"asc","public_submission_enabled":false,"raw_item_template":null,"fields":[{"_id":"55477a3f64696432514b0300","created_at":null,"updated_at":null,"name":"name","type":"string","label":"Name","hint":null,"required":true,"localized":false,"unique":false,"position":0}],"order_by":"created_at","group_by":null,"public_submission_account_emails":[]}]'
545
+ string: '[{"_id":"55b8f304446964641a00000a","created_at":"2015-07-29T15:36:36Z","updated_at":"2015-07-29T15:36:36Z","name":"Projects","slug":"projects","description":null,"label_field_name":"name","order_direction":"asc","public_submission_enabled":false,"raw_item_template":null,"display_settings":null,"fields":[{"_id":"55b8f304446964641a00000b","created_at":null,"updated_at":null,"name":"name","type":"string","label":"Name","hint":null,"required":true,"localized":false,"unique":false,"position":0}],"order_by":"created_at","group_by":null,"public_submission_account_emails":[]}]'
614
546
  http_version:
615
- recorded_at: Mon, 04 May 2015 13:55:11 GMT
547
+ recorded_at: Wed, 29 Jul 2015 15:36:36 GMT
616
548
  recorded_with: VCR 2.9.3