locomotivecms_wagon 2.2.0 → 2.3.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +6 -2
- data/Gemfile +7 -5
- data/LICENSE.txt +2 -2
- data/README.md +1 -1
- data/Rakefile +2 -10
- data/generators/page/template.liquid.haml.tt +4 -0
- data/generators/page/template.liquid.tt +4 -0
- data/lib/locomotive/wagon/commands/pull_sub_commands/pull_pages_command.rb +1 -1
- data/lib/locomotive/wagon/commands/push_sub_commands/push_theme_assets_command.rb +2 -2
- data/lib/locomotive/wagon/commands/serve_command.rb +4 -3
- data/lib/locomotive/wagon/decorators/content_asset_decorator.rb +7 -2
- data/lib/locomotive/wagon/decorators/content_entry_decorator.rb +4 -0
- data/lib/locomotive/wagon/decorators/page_decorator.rb +6 -1
- data/lib/locomotive/wagon/decorators/theme_asset_decorator.rb +6 -2
- data/lib/locomotive/wagon/middlewares/error_page.rb +70 -18
- data/lib/locomotive/wagon/version.rb +1 -1
- data/locomotivecms_wagon.gemspec +7 -8
- data/spec/fixtures/cassettes/authenticate.yml +38 -38
- data/spec/fixtures/cassettes/delete.yml +208 -208
- data/spec/fixtures/cassettes/push.yml +1945 -1945
- data/spec/integration/cli_spec.rb +1 -1
- data/spec/spec_helper.rb +4 -2
- data/spec/unit/decorators/content_entry_decorator_spec.rb +1 -1
- metadata +19 -39
- data/spec/integration/cassettes/pull.yml +0 -605
- data/spec/integration/cassettes/push.yml +0 -823
- data/spec/integration/cassettes/staging.yml +0 -706
@@ -1,605 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: post
|
5
|
-
uri: http://sample.example.com:3000/locomotive/api/tokens.json
|
6
|
-
body:
|
7
|
-
encoding: UTF-8
|
8
|
-
string: email=admin%40locomotivecms.com&password=locomotive
|
9
|
-
headers: {}
|
10
|
-
response:
|
11
|
-
status:
|
12
|
-
code: 200
|
13
|
-
message: OK
|
14
|
-
headers:
|
15
|
-
Date:
|
16
|
-
- Tue, 17 Sep 2013 15:12:16 GMT
|
17
|
-
Status:
|
18
|
-
- 200 OK
|
19
|
-
Connection:
|
20
|
-
- close
|
21
|
-
Location:
|
22
|
-
- http://sample.example.com:3000/locomotive/
|
23
|
-
Content-Type:
|
24
|
-
- application/json; charset=utf-8
|
25
|
-
X-Ua-Compatible:
|
26
|
-
- IE=Edge
|
27
|
-
Etag:
|
28
|
-
- '"d1a90b45e031fb4f87663184c2a67dbd"'
|
29
|
-
Cache-Control:
|
30
|
-
- max-age=0, private, must-revalidate
|
31
|
-
Set-Cookie:
|
32
|
-
- _locomotive_session=7FsbH4bAKgxjSjBqRjSbfW0jGbc; domain=.example.com; path=/;
|
33
|
-
HttpOnly
|
34
|
-
X-Request-Id:
|
35
|
-
- c9a037d922e36ceab77b67fd60df3f1e
|
36
|
-
X-Runtime:
|
37
|
-
- '0.036712'
|
38
|
-
body:
|
39
|
-
encoding: UTF-8
|
40
|
-
string: '{"token":"iaWvtP5PhmnyKypXpLbM"}'
|
41
|
-
http_version:
|
42
|
-
recorded_at: Tue, 17 Sep 2013 15:12:16 GMT
|
43
|
-
- request:
|
44
|
-
method: get
|
45
|
-
uri: http://sample.example.com:3000/locomotive/api/current_site.json?auth_token=iaWvtP5PhmnyKypXpLbM
|
46
|
-
body:
|
47
|
-
encoding: US-ASCII
|
48
|
-
string: ''
|
49
|
-
headers: {}
|
50
|
-
response:
|
51
|
-
status:
|
52
|
-
code: 200
|
53
|
-
message: OK
|
54
|
-
headers:
|
55
|
-
Date:
|
56
|
-
- Tue, 17 Sep 2013 15:12:16 GMT
|
57
|
-
Status:
|
58
|
-
- 200 OK
|
59
|
-
Connection:
|
60
|
-
- close
|
61
|
-
Content-Type:
|
62
|
-
- application/json; charset=utf-8
|
63
|
-
X-Ua-Compatible:
|
64
|
-
- IE=Edge
|
65
|
-
Etag:
|
66
|
-
- '"44c3f51a8b65cd145a65bd507037a52f"'
|
67
|
-
Cache-Control:
|
68
|
-
- max-age=0, private, must-revalidate
|
69
|
-
Set-Cookie:
|
70
|
-
- _locomotive_session=ee6akf6apTreFuVEtChqz_5Cr6o; domain=.example.com; path=/;
|
71
|
-
HttpOnly
|
72
|
-
X-Request-Id:
|
73
|
-
- 863cd4b64f4bdd041d455e8a67e3baa9
|
74
|
-
X-Runtime:
|
75
|
-
- '0.041135'
|
76
|
-
body:
|
77
|
-
encoding: UTF-8
|
78
|
-
string: '{"id":"5238710587f6431df7000006","_id":"5238710587f6431df7000006","created_at":"2013-09-17T15:11:01Z","updated_at":"2013-09-17T15:11:33Z","name":"locomotive","locales":["en","es"],"timezone":"UTC","subdomain":"sample","domains":["sample.example.com"],"domains_without_subdomain":[],"domain_name":"example.com","memberships":[{"id":"5238710587f6431df7000009","_id":"5238710587f6431df7000009","role":"admin","role_name":"Administrator","can_update":false,"grant_admin":true,"account_id":"5238710587f6431df7000001","name":"Admin","email":"admin@locomotivecms.com"}]}'
|
79
|
-
http_version:
|
80
|
-
recorded_at: Tue, 17 Sep 2013 15:12:16 GMT
|
81
|
-
- request:
|
82
|
-
method: get
|
83
|
-
uri: http://sample.example.com:3000/locomotive/api/current_site.json?auth_token=iaWvtP5PhmnyKypXpLbM&locale=es
|
84
|
-
body:
|
85
|
-
encoding: US-ASCII
|
86
|
-
string: ''
|
87
|
-
headers: {}
|
88
|
-
response:
|
89
|
-
status:
|
90
|
-
code: 200
|
91
|
-
message: OK
|
92
|
-
headers:
|
93
|
-
Date:
|
94
|
-
- Tue, 17 Sep 2013 15:12:16 GMT
|
95
|
-
Status:
|
96
|
-
- 200 OK
|
97
|
-
Connection:
|
98
|
-
- close
|
99
|
-
Content-Type:
|
100
|
-
- application/json; charset=utf-8
|
101
|
-
X-Ua-Compatible:
|
102
|
-
- IE=Edge
|
103
|
-
Etag:
|
104
|
-
- '"f3da36b3e0ddaffbc93f97aaae09ae52"'
|
105
|
-
Cache-Control:
|
106
|
-
- max-age=0, private, must-revalidate
|
107
|
-
Set-Cookie:
|
108
|
-
- _locomotive_session=bCA-MmvjiiXKLvxdvI7uKOQ8ERM; domain=.example.com; path=/;
|
109
|
-
HttpOnly
|
110
|
-
X-Request-Id:
|
111
|
-
- 704fee212896de6aab7877f80a1496b3
|
112
|
-
X-Runtime:
|
113
|
-
- '0.040516'
|
114
|
-
body:
|
115
|
-
encoding: UTF-8
|
116
|
-
string: '{"id":"5238710587f6431df7000006","_id":"5238710587f6431df7000006","created_at":"2013-09-17T15:11:01Z","updated_at":"2013-09-17T15:11:33Z","name":"locomotive","locales":["en","es"],"timezone":"UTC","subdomain":"sample","domains":["sample.example.com"],"domains_without_subdomain":[],"domain_name":"example.com","memberships":[{"id":"5238710587f6431df7000009","_id":"5238710587f6431df7000009","role":"admin","role_name":"Administrador","can_update":false,"grant_admin":true,"account_id":"5238710587f6431df7000001","name":"Admin","email":"admin@locomotivecms.com"}]}'
|
117
|
-
http_version:
|
118
|
-
recorded_at: Tue, 17 Sep 2013 15:12:16 GMT
|
119
|
-
- request:
|
120
|
-
method: get
|
121
|
-
uri: http://sample.example.com:3000/locomotive/api/content_assets.json?auth_token=iaWvtP5PhmnyKypXpLbM
|
122
|
-
body:
|
123
|
-
encoding: US-ASCII
|
124
|
-
string: ''
|
125
|
-
headers: {}
|
126
|
-
response:
|
127
|
-
status:
|
128
|
-
code: 200
|
129
|
-
message: OK
|
130
|
-
headers:
|
131
|
-
Date:
|
132
|
-
- Tue, 17 Sep 2013 15:12:16 GMT
|
133
|
-
Status:
|
134
|
-
- 200 OK
|
135
|
-
Connection:
|
136
|
-
- close
|
137
|
-
Content-Type:
|
138
|
-
- application/json; charset=utf-8
|
139
|
-
X-Ua-Compatible:
|
140
|
-
- IE=Edge
|
141
|
-
Etag:
|
142
|
-
- '"d751713988987e9331980363e24189ce"'
|
143
|
-
Cache-Control:
|
144
|
-
- max-age=0, private, must-revalidate
|
145
|
-
Set-Cookie:
|
146
|
-
- _locomotive_session=NoTrZItzrjWEx6zkOl12mE-Of74; domain=.example.com; path=/;
|
147
|
-
HttpOnly
|
148
|
-
X-Request-Id:
|
149
|
-
- fa80e875ffddf7535b6dcbf788e9d11f
|
150
|
-
X-Runtime:
|
151
|
-
- '0.097374'
|
152
|
-
body:
|
153
|
-
encoding: UTF-8
|
154
|
-
string: '[]'
|
155
|
-
http_version:
|
156
|
-
recorded_at: Tue, 17 Sep 2013 15:12:16 GMT
|
157
|
-
- request:
|
158
|
-
method: get
|
159
|
-
uri: http://sample.example.com:3000/locomotive/api/snippets.json?auth_token=iaWvtP5PhmnyKypXpLbM
|
160
|
-
body:
|
161
|
-
encoding: US-ASCII
|
162
|
-
string: ''
|
163
|
-
headers: {}
|
164
|
-
response:
|
165
|
-
status:
|
166
|
-
code: 200
|
167
|
-
message: OK
|
168
|
-
headers:
|
169
|
-
Date:
|
170
|
-
- Tue, 17 Sep 2013 15:12:16 GMT
|
171
|
-
Status:
|
172
|
-
- 200 OK
|
173
|
-
Connection:
|
174
|
-
- close
|
175
|
-
Content-Type:
|
176
|
-
- application/json; charset=utf-8
|
177
|
-
X-Ua-Compatible:
|
178
|
-
- IE=Edge
|
179
|
-
Etag:
|
180
|
-
- '"d751713988987e9331980363e24189ce"'
|
181
|
-
Cache-Control:
|
182
|
-
- max-age=0, private, must-revalidate
|
183
|
-
Set-Cookie:
|
184
|
-
- _locomotive_session=YqoQOI94i6WImV7l8m3iBdbDvqY; domain=.example.com; path=/;
|
185
|
-
HttpOnly
|
186
|
-
X-Request-Id:
|
187
|
-
- c804f5386d84109abb4bdb7969088e53
|
188
|
-
X-Runtime:
|
189
|
-
- '0.038155'
|
190
|
-
body:
|
191
|
-
encoding: UTF-8
|
192
|
-
string: '[]'
|
193
|
-
http_version:
|
194
|
-
recorded_at: Tue, 17 Sep 2013 15:12:16 GMT
|
195
|
-
- request:
|
196
|
-
method: get
|
197
|
-
uri: http://sample.example.com:3000/locomotive/api/content_types.json?auth_token=iaWvtP5PhmnyKypXpLbM
|
198
|
-
body:
|
199
|
-
encoding: US-ASCII
|
200
|
-
string: ''
|
201
|
-
headers: {}
|
202
|
-
response:
|
203
|
-
status:
|
204
|
-
code: 200
|
205
|
-
message: OK
|
206
|
-
headers:
|
207
|
-
Date:
|
208
|
-
- Tue, 17 Sep 2013 15:12:16 GMT
|
209
|
-
Status:
|
210
|
-
- 200 OK
|
211
|
-
Connection:
|
212
|
-
- close
|
213
|
-
Content-Type:
|
214
|
-
- application/json; charset=utf-8
|
215
|
-
X-Ua-Compatible:
|
216
|
-
- IE=Edge
|
217
|
-
Etag:
|
218
|
-
- '"80558e8d8878e660f5cfd6b06152de50"'
|
219
|
-
Cache-Control:
|
220
|
-
- max-age=0, private, must-revalidate
|
221
|
-
Set-Cookie:
|
222
|
-
- _locomotive_session=sJHSyzsJRwo4YIHE6dCFRaFyJ1A; domain=.example.com; path=/;
|
223
|
-
HttpOnly
|
224
|
-
X-Request-Id:
|
225
|
-
- c614511770e53088c96043ba149bd48f
|
226
|
-
X-Runtime:
|
227
|
-
- '0.043328'
|
228
|
-
body:
|
229
|
-
encoding: UTF-8
|
230
|
-
string: '[{"id":"5238712587f643884e000001","_id":"5238712587f643884e000001","created_at":"2013-09-17T15:11:33Z","updated_at":"2013-09-17T15:11:33Z","name":"Products","slug":"products","entries_custom_fields":[{"id":"5238712587f643884e000002","_id":"5238712587f643884e000002","name":"name","label":"name","type":"string","required":true,"localized":true,"unique":false,"position":0},{"id":"5238712587f643884e000003","_id":"5238712587f643884e000003","name":"available","label":"available","type":"boolean","required":false,"localized":false,"unique":false,"position":1}],"description":"My
|
231
|
-
products collection","label_field_name":"name","order_by":"created_at","order_direction":"asc","order_by_field_name":"created_at","public_submission_enabled":false,"public_submission_account_emails":[]}]'
|
232
|
-
http_version:
|
233
|
-
recorded_at: Tue, 17 Sep 2013 15:12:16 GMT
|
234
|
-
- request:
|
235
|
-
method: get
|
236
|
-
uri: http://sample.example.com:3000/locomotive/api/content_types/products/entries.json?auth_token=iaWvtP5PhmnyKypXpLbM
|
237
|
-
body:
|
238
|
-
encoding: US-ASCII
|
239
|
-
string: ''
|
240
|
-
headers: {}
|
241
|
-
response:
|
242
|
-
status:
|
243
|
-
code: 200
|
244
|
-
message: OK
|
245
|
-
headers:
|
246
|
-
Date:
|
247
|
-
- Tue, 17 Sep 2013 15:12:16 GMT
|
248
|
-
Status:
|
249
|
-
- 200 OK
|
250
|
-
Connection:
|
251
|
-
- close
|
252
|
-
Content-Type:
|
253
|
-
- application/json; charset=utf-8
|
254
|
-
X-Ua-Compatible:
|
255
|
-
- IE=Edge
|
256
|
-
Etag:
|
257
|
-
- '"83dfd1167e0b94465530e648860cdcda"'
|
258
|
-
Cache-Control:
|
259
|
-
- max-age=0, private, must-revalidate
|
260
|
-
Set-Cookie:
|
261
|
-
- _locomotive_session=PtfyO6vYHRNr83z51nlhMvK23yQ; domain=.example.com; path=/;
|
262
|
-
HttpOnly
|
263
|
-
X-Request-Id:
|
264
|
-
- 7e8f978f3c500588268395eac2c93659
|
265
|
-
X-Runtime:
|
266
|
-
- '0.050445'
|
267
|
-
body:
|
268
|
-
encoding: UTF-8
|
269
|
-
string: '[{"id":"5238712587f643884e000004","_id":"5238712587f643884e000004","created_at":"2013-09-17T15:11:33Z","updated_at":"2013-09-17T15:11:33Z","_label":"Useless
|
270
|
-
stuff","_slug":"useless-stuff","_position":0,"_visible":true,"content_type_slug":"products","translated_in":["en"],"name":"Useless
|
271
|
-
stuff","available":true}]'
|
272
|
-
http_version:
|
273
|
-
recorded_at: Tue, 17 Sep 2013 15:12:16 GMT
|
274
|
-
- request:
|
275
|
-
method: get
|
276
|
-
uri: http://sample.example.com:3000/locomotive/api/content_types/products/entries/5238712587f643884e000004.json?auth_token=iaWvtP5PhmnyKypXpLbM&locale=en
|
277
|
-
body:
|
278
|
-
encoding: US-ASCII
|
279
|
-
string: ''
|
280
|
-
headers: {}
|
281
|
-
response:
|
282
|
-
status:
|
283
|
-
code: 200
|
284
|
-
message: OK
|
285
|
-
headers:
|
286
|
-
Date:
|
287
|
-
- Tue, 17 Sep 2013 15:12:16 GMT
|
288
|
-
Status:
|
289
|
-
- 200 OK
|
290
|
-
Connection:
|
291
|
-
- close
|
292
|
-
Content-Type:
|
293
|
-
- application/json; charset=utf-8
|
294
|
-
X-Ua-Compatible:
|
295
|
-
- IE=Edge
|
296
|
-
Etag:
|
297
|
-
- '"30d49d7b032f30c6e560befd964e9d1b"'
|
298
|
-
Cache-Control:
|
299
|
-
- max-age=0, private, must-revalidate
|
300
|
-
Set-Cookie:
|
301
|
-
- _locomotive_session=ZZBH3XuOUost_vmm43JBys-KIhg; domain=.example.com; path=/;
|
302
|
-
HttpOnly
|
303
|
-
X-Request-Id:
|
304
|
-
- 3d61f6ee3d2663d4edb1edbe290dfb42
|
305
|
-
X-Runtime:
|
306
|
-
- '0.034323'
|
307
|
-
body:
|
308
|
-
encoding: UTF-8
|
309
|
-
string: '{"id":"5238712587f643884e000004","_id":"5238712587f643884e000004","created_at":"2013-09-17T15:11:33Z","updated_at":"2013-09-17T15:11:33Z","_label":"Useless
|
310
|
-
stuff","_slug":"useless-stuff","_position":0,"_visible":true,"content_type_slug":"products","translated_in":["en"],"name":"Useless
|
311
|
-
stuff","available":true}'
|
312
|
-
http_version:
|
313
|
-
recorded_at: Tue, 17 Sep 2013 15:12:16 GMT
|
314
|
-
- request:
|
315
|
-
method: get
|
316
|
-
uri: http://sample.example.com:3000/locomotive/api/pages.json?auth_token=iaWvtP5PhmnyKypXpLbM
|
317
|
-
body:
|
318
|
-
encoding: US-ASCII
|
319
|
-
string: ''
|
320
|
-
headers: {}
|
321
|
-
response:
|
322
|
-
status:
|
323
|
-
code: 200
|
324
|
-
message: OK
|
325
|
-
headers:
|
326
|
-
Date:
|
327
|
-
- Tue, 17 Sep 2013 15:12:16 GMT
|
328
|
-
Status:
|
329
|
-
- 200 OK
|
330
|
-
Connection:
|
331
|
-
- close
|
332
|
-
Content-Type:
|
333
|
-
- application/json; charset=utf-8
|
334
|
-
X-Ua-Compatible:
|
335
|
-
- IE=Edge
|
336
|
-
Etag:
|
337
|
-
- '"a19c8f4823366aaef7a28e95582c9b2d"'
|
338
|
-
Cache-Control:
|
339
|
-
- max-age=0, private, must-revalidate
|
340
|
-
Set-Cookie:
|
341
|
-
- _locomotive_session=USaWfTUtHpU3_9x1qPCNSXC49H0; domain=.example.com; path=/;
|
342
|
-
HttpOnly
|
343
|
-
X-Request-Id:
|
344
|
-
- 6c6467a58573a93b8e068c44ad2ddece
|
345
|
-
X-Runtime:
|
346
|
-
- '0.045967'
|
347
|
-
body:
|
348
|
-
encoding: UTF-8
|
349
|
-
string: '[{"id":"5238710587f6431df7000007","_id":"5238710587f6431df7000007","created_at":"2013-09-17T15:11:01Z","updated_at":"2013-09-17T15:11:34Z","title":"Home
|
350
|
-
page","slug":"index","position":0,"response_type":"text/html","cache_strategy":"none","redirect":false,"redirect_type":301,"listed":true,"published":true,"templatized":false,"templatized_from_parent":false,"fullpath":"index","localized_fullpaths":{"en":"","es":"es"},"depth":0,"translated_in":["en","es"],"raw_template":"{%
|
351
|
-
block content %}\r\n New content of the home page\r\n{% endblock %}\r\n\r\n","escaped_raw_template":"{%
|
352
|
-
block content %}\r\n New content of the home page\r\n{% endblock %}\r\n\r\n","editable_elements":[]},{"id":"5238712687f643884e000006","_id":"5238712687f643884e000006","created_at":"2013-09-17T15:11:34Z","updated_at":"2013-09-17T15:11:34Z","title":"translated","slug":"translated","parent_id":"5238710587f6431df7000007","position":0,"response_type":"text/html","cache_strategy":"none","redirect":false,"redirect_type":301,"listed":true,"published":true,"templatized":false,"templatized_from_parent":false,"fullpath":"translated","localized_fullpaths":{"en":"translated","es":"es/translated"},"depth":1,"translated_in":["en"],"raw_template":"{{
|
353
|
-
''hello_world'' | translate}}","escaped_raw_template":"{{ 'hello_world'
|
354
|
-
| translate}}","editable_elements":[]},{"id":"5238712687f643884e000008","_id":"5238712687f643884e000008","created_at":"2013-09-17T15:11:34Z","updated_at":"2013-09-17T15:11:34Z","title":"Latest","slug":"latest","parent_id":"5238712687f643884e000007","position":0,"response_type":"text/html","cache_strategy":"none","redirect":false,"redirect_type":301,"listed":true,"published":true,"templatized":false,"templatized_from_parent":false,"fullpath":"products/latest","localized_fullpaths":{"en":"products/latest","es":"es/products/latest"},"depth":2,"translated_in":["en"],"raw_template":"{%
|
355
|
-
extends parent %}\r\n{% block content %}\r\n The name of the latest product
|
356
|
-
is: {{ contents.products.last.name }}\r\n{% endblock %}","escaped_raw_template":"{%
|
357
|
-
extends parent %}\r\n{% block content %}\r\n The name of the latest product
|
358
|
-
is: {{ contents.products.last.name }}\r\n{% endblock %}","editable_elements":[]},{"id":"5238710587f6431df7000008","_id":"5238710587f6431df7000008","created_at":"2013-09-17T15:11:01Z","updated_at":"2013-09-17T15:11:34Z","title":"Page
|
359
|
-
not found","slug":"404","position":1,"response_type":"text/html","cache_strategy":"none","redirect":false,"redirect_type":301,"listed":true,"published":true,"templatized":false,"templatized_from_parent":false,"fullpath":"404","localized_fullpaths":{"en":"404","es":"es/404"},"depth":0,"translated_in":["en","es"],"raw_template":"Content
|
360
|
-
of the 404 page","escaped_raw_template":"Content of the 404 page","editable_elements":[]},{"id":"5238712687f643884e000007","_id":"5238712687f643884e000007","created_at":"2013-09-17T15:11:34Z","updated_at":"2013-09-17T15:11:34Z","title":"Products","slug":"products","parent_id":"5238710587f6431df7000007","position":1,"response_type":"text/html","cache_strategy":"none","redirect":false,"redirect_type":301,"listed":true,"published":true,"templatized":false,"templatized_from_parent":false,"fullpath":"products","localized_fullpaths":{"en":"products","es":"es/products"},"depth":1,"translated_in":["en","es"],"raw_template":"{%
|
361
|
-
extends parent %}","escaped_raw_template":"{% extends parent %}","editable_elements":[],"seo_title":"Search
|
362
|
-
friendly products","meta_keywords":"fancy, products, keywords","meta_description":"Fancy
|
363
|
-
products description"}]'
|
364
|
-
http_version:
|
365
|
-
recorded_at: Tue, 17 Sep 2013 15:12:16 GMT
|
366
|
-
- request:
|
367
|
-
method: get
|
368
|
-
uri: http://sample.example.com:3000/locomotive/api/pages/5238710587f6431df7000007.json?auth_token=iaWvtP5PhmnyKypXpLbM&locale=es
|
369
|
-
body:
|
370
|
-
encoding: US-ASCII
|
371
|
-
string: ''
|
372
|
-
headers: {}
|
373
|
-
response:
|
374
|
-
status:
|
375
|
-
code: 200
|
376
|
-
message: OK
|
377
|
-
headers:
|
378
|
-
Date:
|
379
|
-
- Tue, 17 Sep 2013 15:12:16 GMT
|
380
|
-
Status:
|
381
|
-
- 200 OK
|
382
|
-
Connection:
|
383
|
-
- close
|
384
|
-
Content-Type:
|
385
|
-
- application/json; charset=utf-8
|
386
|
-
X-Ua-Compatible:
|
387
|
-
- IE=Edge
|
388
|
-
Etag:
|
389
|
-
- '"6499def2ece0125f6b4cebb93d09abc9"'
|
390
|
-
Cache-Control:
|
391
|
-
- max-age=0, private, must-revalidate
|
392
|
-
Set-Cookie:
|
393
|
-
- _locomotive_session=os1IdX2Qa7j3cjE7EBjxmPtdlks; domain=.example.com; path=/;
|
394
|
-
HttpOnly
|
395
|
-
X-Request-Id:
|
396
|
-
- d6b9a31f4195e92587826c5a5e7428d7
|
397
|
-
X-Runtime:
|
398
|
-
- '0.063026'
|
399
|
-
body:
|
400
|
-
encoding: UTF-8
|
401
|
-
string: '{"id":"5238710587f6431df7000007","_id":"5238710587f6431df7000007","created_at":"2013-09-17T15:11:01Z","updated_at":"2013-09-17T15:11:34Z","title":"P\u00e1gina
|
402
|
-
de inicio","slug":"index","position":0,"response_type":"text/html","cache_strategy":"none","redirect":false,"redirect_type":301,"listed":true,"published":true,"templatized":false,"templatized_from_parent":false,"fullpath":"index","localized_fullpaths":{"en":"","es":"es"},"depth":0,"translated_in":["en","es"],"raw_template":"New
|
403
|
-
content of the home page\r\n","escaped_raw_template":"New content of the home
|
404
|
-
page\r\n","editable_elements":[]}'
|
405
|
-
http_version:
|
406
|
-
recorded_at: Tue, 17 Sep 2013 15:12:16 GMT
|
407
|
-
- request:
|
408
|
-
method: get
|
409
|
-
uri: http://sample.example.com:3000/locomotive/api/pages/5238710587f6431df7000008.json?auth_token=iaWvtP5PhmnyKypXpLbM&locale=es
|
410
|
-
body:
|
411
|
-
encoding: US-ASCII
|
412
|
-
string: ''
|
413
|
-
headers: {}
|
414
|
-
response:
|
415
|
-
status:
|
416
|
-
code: 200
|
417
|
-
message: OK
|
418
|
-
headers:
|
419
|
-
Date:
|
420
|
-
- Tue, 17 Sep 2013 15:12:16 GMT
|
421
|
-
Status:
|
422
|
-
- 200 OK
|
423
|
-
Connection:
|
424
|
-
- close
|
425
|
-
Content-Type:
|
426
|
-
- application/json; charset=utf-8
|
427
|
-
X-Ua-Compatible:
|
428
|
-
- IE=Edge
|
429
|
-
Etag:
|
430
|
-
- '"d04724071150d907283a4aea3a16f368"'
|
431
|
-
Cache-Control:
|
432
|
-
- max-age=0, private, must-revalidate
|
433
|
-
Set-Cookie:
|
434
|
-
- _locomotive_session=6jSJJJ1yxeA2UbMdjX9DUHVV7PQ; domain=.example.com; path=/;
|
435
|
-
HttpOnly
|
436
|
-
X-Request-Id:
|
437
|
-
- 0f7ab05f0fdcdd19fa113ac048c3b2d2
|
438
|
-
X-Runtime:
|
439
|
-
- '0.055709'
|
440
|
-
body:
|
441
|
-
encoding: UTF-8
|
442
|
-
string: '{"id":"5238710587f6431df7000008","_id":"5238710587f6431df7000008","created_at":"2013-09-17T15:11:01Z","updated_at":"2013-09-17T15:11:34Z","title":"P\u00e1gina
|
443
|
-
no encontrada","slug":"404","position":1,"response_type":"text/html","cache_strategy":"none","redirect":false,"redirect_type":301,"listed":true,"published":true,"templatized":false,"templatized_from_parent":false,"fullpath":"404","localized_fullpaths":{"en":"404","es":"es/404"},"depth":0,"translated_in":["en","es"],"raw_template":"Content
|
444
|
-
of the 404 page","escaped_raw_template":"Content of the 404 page","editable_elements":[]}'
|
445
|
-
http_version:
|
446
|
-
recorded_at: Tue, 17 Sep 2013 15:12:16 GMT
|
447
|
-
- request:
|
448
|
-
method: get
|
449
|
-
uri: http://sample.example.com:3000/locomotive/api/pages/5238712687f643884e000007.json?auth_token=iaWvtP5PhmnyKypXpLbM&locale=es
|
450
|
-
body:
|
451
|
-
encoding: US-ASCII
|
452
|
-
string: ''
|
453
|
-
headers: {}
|
454
|
-
response:
|
455
|
-
status:
|
456
|
-
code: 200
|
457
|
-
message: OK
|
458
|
-
headers:
|
459
|
-
Date:
|
460
|
-
- Tue, 17 Sep 2013 15:12:17 GMT
|
461
|
-
Status:
|
462
|
-
- 200 OK
|
463
|
-
Connection:
|
464
|
-
- close
|
465
|
-
Content-Type:
|
466
|
-
- application/json; charset=utf-8
|
467
|
-
X-Ua-Compatible:
|
468
|
-
- IE=Edge
|
469
|
-
Etag:
|
470
|
-
- '"df564c6fd92a1e7b3d311fc1183d251b"'
|
471
|
-
Cache-Control:
|
472
|
-
- max-age=0, private, must-revalidate
|
473
|
-
Set-Cookie:
|
474
|
-
- _locomotive_session=p-z-i3E95clgJIglGSO9y66eiyw; domain=.example.com; path=/;
|
475
|
-
HttpOnly
|
476
|
-
X-Request-Id:
|
477
|
-
- e6ee7287990b9599c362b0fcfcd0437b
|
478
|
-
X-Runtime:
|
479
|
-
- '0.052470'
|
480
|
-
body:
|
481
|
-
encoding: UTF-8
|
482
|
-
string: '{"id":"5238712687f643884e000007","_id":"5238712687f643884e000007","created_at":"2013-09-17T15:11:34Z","updated_at":"2013-09-17T15:11:34Z","title":"Products","slug":"products","parent_id":"5238710587f6431df7000007","position":1,"response_type":"text/html","cache_strategy":"none","redirect":false,"redirect_type":301,"listed":true,"published":true,"templatized":false,"templatized_from_parent":false,"fullpath":"products","localized_fullpaths":{"en":"products","es":"es/products"},"depth":1,"translated_in":["en","es"],"raw_template":"{%
|
483
|
-
extends parent %}","escaped_raw_template":"{% extends parent %}","editable_elements":[],"seo_title":"Productos
|
484
|
-
SEO","meta_keywords":"palabras, clave, productos","meta_description":"Descripci\u00f3n
|
485
|
-
molona de los productos"}'
|
486
|
-
http_version:
|
487
|
-
recorded_at: Tue, 17 Sep 2013 15:12:17 GMT
|
488
|
-
- request:
|
489
|
-
method: get
|
490
|
-
uri: http://sample.example.com:3000/locomotive/api/theme_assets.json?auth_token=iaWvtP5PhmnyKypXpLbM
|
491
|
-
body:
|
492
|
-
encoding: US-ASCII
|
493
|
-
string: ''
|
494
|
-
headers: {}
|
495
|
-
response:
|
496
|
-
status:
|
497
|
-
code: 200
|
498
|
-
message: OK
|
499
|
-
headers:
|
500
|
-
Date:
|
501
|
-
- Tue, 17 Sep 2013 15:12:17 GMT
|
502
|
-
Status:
|
503
|
-
- 200 OK
|
504
|
-
Connection:
|
505
|
-
- close
|
506
|
-
Content-Type:
|
507
|
-
- application/json; charset=utf-8
|
508
|
-
X-Ua-Compatible:
|
509
|
-
- IE=Edge
|
510
|
-
Etag:
|
511
|
-
- '"d751713988987e9331980363e24189ce"'
|
512
|
-
Cache-Control:
|
513
|
-
- max-age=0, private, must-revalidate
|
514
|
-
Set-Cookie:
|
515
|
-
- _locomotive_session=XdqVrog3Rbgk2OmJFaRYw-DcVmA; domain=.example.com; path=/;
|
516
|
-
HttpOnly
|
517
|
-
X-Request-Id:
|
518
|
-
- c4ac141a9bc254e03bb98bf4eb4414ba
|
519
|
-
X-Runtime:
|
520
|
-
- '0.047978'
|
521
|
-
body:
|
522
|
-
encoding: UTF-8
|
523
|
-
string: '[]'
|
524
|
-
http_version:
|
525
|
-
recorded_at: Tue, 17 Sep 2013 15:12:17 GMT
|
526
|
-
- request:
|
527
|
-
method: get
|
528
|
-
uri: http://sample.example.com:3000/locomotive/api/translations.json?auth_token=iaWvtP5PhmnyKypXpLbM
|
529
|
-
body:
|
530
|
-
encoding: US-ASCII
|
531
|
-
string: ''
|
532
|
-
headers: {}
|
533
|
-
response:
|
534
|
-
status:
|
535
|
-
code: 200
|
536
|
-
message: OK
|
537
|
-
headers:
|
538
|
-
Date:
|
539
|
-
- Tue, 17 Sep 2013 15:12:17 GMT
|
540
|
-
Status:
|
541
|
-
- 200 OK
|
542
|
-
Connection:
|
543
|
-
- close
|
544
|
-
Content-Type:
|
545
|
-
- application/json; charset=utf-8
|
546
|
-
X-Ua-Compatible:
|
547
|
-
- IE=Edge
|
548
|
-
Etag:
|
549
|
-
- '"5c1b51393d2233a4df57efd63547d153"'
|
550
|
-
Cache-Control:
|
551
|
-
- max-age=0, private, must-revalidate
|
552
|
-
Set-Cookie:
|
553
|
-
- _locomotive_session=hl2S9ykpEvEVXdsdeRZidiQnTww; domain=.example.com; path=/;
|
554
|
-
HttpOnly
|
555
|
-
X-Request-Id:
|
556
|
-
- bb32086f3b95d4bf31ff3d7f90e44867
|
557
|
-
X-Runtime:
|
558
|
-
- '0.097767'
|
559
|
-
body:
|
560
|
-
encoding: UTF-8
|
561
|
-
string: '[{"id":"5238712587f643884e000005","_id":"5238712587f643884e000005","created_at":"2013-09-17T15:11:33Z","updated_at":"2013-09-17T15:11:33Z","key":"hello_world","values":{"en":"Hello
|
562
|
-
world!","es":"\u00a1Hola, Mundo!"}}]'
|
563
|
-
http_version:
|
564
|
-
recorded_at: Tue, 17 Sep 2013 15:12:17 GMT
|
565
|
-
- request:
|
566
|
-
method: post
|
567
|
-
uri: http://sample.example.com:3000/locomotive/api/tokens.json?auth_token=iaWvtP5PhmnyKypXpLbM
|
568
|
-
body:
|
569
|
-
encoding: UTF-8
|
570
|
-
string: email=admin%40locomotivecms.com&password=locomotive
|
571
|
-
headers: {}
|
572
|
-
response:
|
573
|
-
status:
|
574
|
-
code: 200
|
575
|
-
message: OK
|
576
|
-
headers:
|
577
|
-
Date:
|
578
|
-
- Tue, 17 Sep 2013 15:12:28 GMT
|
579
|
-
Status:
|
580
|
-
- 200 OK
|
581
|
-
Connection:
|
582
|
-
- close
|
583
|
-
Location:
|
584
|
-
- http://sample.example.com:3000/locomotive/
|
585
|
-
Content-Type:
|
586
|
-
- application/json; charset=utf-8
|
587
|
-
X-Ua-Compatible:
|
588
|
-
- IE=Edge
|
589
|
-
Etag:
|
590
|
-
- '"d1a90b45e031fb4f87663184c2a67dbd"'
|
591
|
-
Cache-Control:
|
592
|
-
- max-age=0, private, must-revalidate
|
593
|
-
Set-Cookie:
|
594
|
-
- _locomotive_session=bkPZH81b3iow644MLCcIS1qf5r0; domain=.example.com; path=/;
|
595
|
-
HttpOnly
|
596
|
-
X-Request-Id:
|
597
|
-
- 5d8899400ec6f3e4ebe69c8e264fb52b
|
598
|
-
X-Runtime:
|
599
|
-
- '0.040288'
|
600
|
-
body:
|
601
|
-
encoding: UTF-8
|
602
|
-
string: '{"token":"iaWvtP5PhmnyKypXpLbM"}'
|
603
|
-
http_version:
|
604
|
-
recorded_at: Tue, 17 Sep 2013 15:12:28 GMT
|
605
|
-
recorded_with: VCR 2.5.0
|