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,706 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: post
|
5
|
-
uri: http://staging.example.com:3000/locomotive/api/tokens.json?auth_token=iaWvtP5PhmnyKypXpLbM
|
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:17 GMT
|
17
|
-
Status:
|
18
|
-
- 200 OK
|
19
|
-
Connection:
|
20
|
-
- close
|
21
|
-
Location:
|
22
|
-
- http://staging.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=Z-0l0Y8-g8TGAAe1oM1Peib5vLI; domain=.example.com; path=/;
|
33
|
-
HttpOnly
|
34
|
-
X-Request-Id:
|
35
|
-
- 9bfd90daafdb585129b8767665ae3baf
|
36
|
-
X-Runtime:
|
37
|
-
- '0.045476'
|
38
|
-
body:
|
39
|
-
encoding: UTF-8
|
40
|
-
string: '{"token":"iaWvtP5PhmnyKypXpLbM"}'
|
41
|
-
http_version:
|
42
|
-
recorded_at: Tue, 17 Sep 2013 15:12:17 GMT
|
43
|
-
- request:
|
44
|
-
method: get
|
45
|
-
uri: http://staging.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: 404
|
53
|
-
message: Not Found
|
54
|
-
headers:
|
55
|
-
Date:
|
56
|
-
- Tue, 17 Sep 2013 15:12:17 GMT
|
57
|
-
Status:
|
58
|
-
- 404 Not Found
|
59
|
-
Connection:
|
60
|
-
- close
|
61
|
-
Content-Type:
|
62
|
-
- application/json; charset=utf-8
|
63
|
-
X-Ua-Compatible:
|
64
|
-
- IE=Edge
|
65
|
-
Cache-Control:
|
66
|
-
- no-cache
|
67
|
-
Set-Cookie:
|
68
|
-
- _locomotive_session=Rp9eJOJH2fQswGRhc4CBMHxfbu0; domain=.example.com; path=/;
|
69
|
-
HttpOnly
|
70
|
-
X-Request-Id:
|
71
|
-
- dd091f0b3577e5d46a711bae143998b7
|
72
|
-
X-Runtime:
|
73
|
-
- '0.043115'
|
74
|
-
body:
|
75
|
-
encoding: UTF-8
|
76
|
-
string: '{"error":"No site found"}'
|
77
|
-
http_version:
|
78
|
-
recorded_at: Tue, 17 Sep 2013 15:12:17 GMT
|
79
|
-
- request:
|
80
|
-
method: post
|
81
|
-
uri: http://staging.example.com:3000/locomotive/api/sites.json?auth_token=iaWvtP5PhmnyKypXpLbM
|
82
|
-
body:
|
83
|
-
encoding: UTF-8
|
84
|
-
string: site[name]=locomotive&site[locales][]=en&site[locales][]=es&site[subdomain]=staging&site[domains][]=staging.example.com&site[timezone]=UTC&locale=en
|
85
|
-
headers: {}
|
86
|
-
response:
|
87
|
-
status:
|
88
|
-
code: 200
|
89
|
-
message: OK
|
90
|
-
headers:
|
91
|
-
Date:
|
92
|
-
- Tue, 17 Sep 2013 15:12:17 GMT
|
93
|
-
Status:
|
94
|
-
- 200 OK
|
95
|
-
Connection:
|
96
|
-
- close
|
97
|
-
Location:
|
98
|
-
- http://staging.example.com:3000/locomotive/sites/5238715187f643884e000009
|
99
|
-
Content-Type:
|
100
|
-
- application/json; charset=utf-8
|
101
|
-
X-Ua-Compatible:
|
102
|
-
- IE=Edge
|
103
|
-
Etag:
|
104
|
-
- '"6e842a0747f262a4d0a4822653b5ed6b"'
|
105
|
-
Cache-Control:
|
106
|
-
- max-age=0, private, must-revalidate
|
107
|
-
Set-Cookie:
|
108
|
-
- _locomotive_session=Gx_CGBcDBH6JtUqjNMwW7yzAJvI; domain=.example.com; path=/;
|
109
|
-
HttpOnly
|
110
|
-
X-Request-Id:
|
111
|
-
- c27e7b1289cb931ee423f2f41be31c41
|
112
|
-
X-Runtime:
|
113
|
-
- '0.112822'
|
114
|
-
body:
|
115
|
-
encoding: UTF-8
|
116
|
-
string: '{"id":"5238715187f643884e000009","_id":"5238715187f643884e000009","created_at":"2013-09-17T15:12:17Z","updated_at":"2013-09-17T15:12:17Z","name":"locomotive","locales":["en","es"],"timezone":"UTC","subdomain":"staging","domains":["staging.example.com"],"domains_without_subdomain":[],"domain_name":"example.com","memberships":[{"id":"5238715187f643884e00000a","_id":"5238715187f643884e00000a","role":"admin","role_name":"Administrator","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:17 GMT
|
119
|
-
- request:
|
120
|
-
method: put
|
121
|
-
uri: http://staging.example.com:3000/locomotive/api/sites/5238715187f643884e000009.json?auth_token=iaWvtP5PhmnyKypXpLbM
|
122
|
-
body:
|
123
|
-
encoding: UTF-8
|
124
|
-
string: site[name]=locomotive&site[locales][]=en&site[locales][]=es&site[subdomain]=staging&site[domains][]=staging.example.com&site[timezone]=UTC&locale=es
|
125
|
-
headers: {}
|
126
|
-
response:
|
127
|
-
status:
|
128
|
-
code: 200
|
129
|
-
message: OK
|
130
|
-
headers:
|
131
|
-
Date:
|
132
|
-
- Tue, 17 Sep 2013 15:12:17 GMT
|
133
|
-
Status:
|
134
|
-
- 200 OK
|
135
|
-
Connection:
|
136
|
-
- close
|
137
|
-
Location:
|
138
|
-
- http://staging.example.com:3000/locomotive/sites/5238715187f643884e000009
|
139
|
-
Content-Type:
|
140
|
-
- application/json; charset=utf-8
|
141
|
-
X-Ua-Compatible:
|
142
|
-
- IE=Edge
|
143
|
-
Etag:
|
144
|
-
- '"3eb7da00847216261731645a56548946"'
|
145
|
-
Cache-Control:
|
146
|
-
- max-age=0, private, must-revalidate
|
147
|
-
Set-Cookie:
|
148
|
-
- _locomotive_session=yg3-tVy93jxvaLadUomxmcAe92w; domain=.example.com; path=/;
|
149
|
-
HttpOnly
|
150
|
-
X-Request-Id:
|
151
|
-
- c30fd870f8a85f1044735304e5cb7f20
|
152
|
-
X-Runtime:
|
153
|
-
- '0.059894'
|
154
|
-
body:
|
155
|
-
encoding: UTF-8
|
156
|
-
string: '{"id":"5238715187f643884e000009","_id":"5238715187f643884e000009","created_at":"2013-09-17T15:12:17Z","updated_at":"2013-09-17T15:12:17Z","name":"locomotive","locales":["en","es"],"timezone":"UTC","subdomain":"staging","domains":["staging.example.com"],"domains_without_subdomain":[],"domain_name":"example.com","memberships":[{"id":"5238715187f643884e00000a","_id":"5238715187f643884e00000a","role":"admin","role_name":"Administrador","can_update":false,"grant_admin":true,"account_id":"5238710587f6431df7000001","name":"Admin","email":"admin@locomotivecms.com"}]}'
|
157
|
-
http_version:
|
158
|
-
recorded_at: Tue, 17 Sep 2013 15:12:17 GMT
|
159
|
-
- request:
|
160
|
-
method: get
|
161
|
-
uri: http://staging.example.com:3000/locomotive/api/snippets.json?auth_token=iaWvtP5PhmnyKypXpLbM
|
162
|
-
body:
|
163
|
-
encoding: US-ASCII
|
164
|
-
string: ''
|
165
|
-
headers: {}
|
166
|
-
response:
|
167
|
-
status:
|
168
|
-
code: 200
|
169
|
-
message: OK
|
170
|
-
headers:
|
171
|
-
Date:
|
172
|
-
- Tue, 17 Sep 2013 15:12:17 GMT
|
173
|
-
Status:
|
174
|
-
- 200 OK
|
175
|
-
Connection:
|
176
|
-
- close
|
177
|
-
Content-Type:
|
178
|
-
- application/json; charset=utf-8
|
179
|
-
X-Ua-Compatible:
|
180
|
-
- IE=Edge
|
181
|
-
Etag:
|
182
|
-
- '"d751713988987e9331980363e24189ce"'
|
183
|
-
Cache-Control:
|
184
|
-
- max-age=0, private, must-revalidate
|
185
|
-
Set-Cookie:
|
186
|
-
- _locomotive_session=wAQkE4eOIgzOei0g94jrWerXqa0; domain=.example.com; path=/;
|
187
|
-
HttpOnly
|
188
|
-
X-Request-Id:
|
189
|
-
- 754f7e964a75adc660be5322941548a6
|
190
|
-
X-Runtime:
|
191
|
-
- '0.049819'
|
192
|
-
body:
|
193
|
-
encoding: UTF-8
|
194
|
-
string: '[]'
|
195
|
-
http_version:
|
196
|
-
recorded_at: Tue, 17 Sep 2013 15:12:17 GMT
|
197
|
-
- request:
|
198
|
-
method: get
|
199
|
-
uri: http://staging.example.com:3000/locomotive/api/content_types.json?auth_token=iaWvtP5PhmnyKypXpLbM
|
200
|
-
body:
|
201
|
-
encoding: US-ASCII
|
202
|
-
string: ''
|
203
|
-
headers: {}
|
204
|
-
response:
|
205
|
-
status:
|
206
|
-
code: 200
|
207
|
-
message: OK
|
208
|
-
headers:
|
209
|
-
Date:
|
210
|
-
- Tue, 17 Sep 2013 15:12:17 GMT
|
211
|
-
Status:
|
212
|
-
- 200 OK
|
213
|
-
Connection:
|
214
|
-
- close
|
215
|
-
Content-Type:
|
216
|
-
- application/json; charset=utf-8
|
217
|
-
X-Ua-Compatible:
|
218
|
-
- IE=Edge
|
219
|
-
Etag:
|
220
|
-
- '"d751713988987e9331980363e24189ce"'
|
221
|
-
Cache-Control:
|
222
|
-
- max-age=0, private, must-revalidate
|
223
|
-
Set-Cookie:
|
224
|
-
- _locomotive_session=G6KyKliXRWljgrWcsfJNwUqS53I; domain=.example.com; path=/;
|
225
|
-
HttpOnly
|
226
|
-
X-Request-Id:
|
227
|
-
- ee4a1a0bfa53662f5df0cd1df98f7406
|
228
|
-
X-Runtime:
|
229
|
-
- '0.147143'
|
230
|
-
body:
|
231
|
-
encoding: UTF-8
|
232
|
-
string: '[]'
|
233
|
-
http_version:
|
234
|
-
recorded_at: Tue, 17 Sep 2013 15:12:17 GMT
|
235
|
-
- request:
|
236
|
-
method: post
|
237
|
-
uri: http://staging.example.com:3000/locomotive/api/content_types.json?auth_token=iaWvtP5PhmnyKypXpLbM
|
238
|
-
body:
|
239
|
-
encoding: UTF-8
|
240
|
-
string: content_type[name]=Products&content_type[description]=My%20products%20collection&content_type[slug]=products&content_type[label_field_name]=name&content_type[order_by]=created_at&content_type[order_direction]=asc&content_type[entries_custom_fields][][label]=name&content_type[entries_custom_fields][][name]=name&content_type[entries_custom_fields][][type]=string&content_type[entries_custom_fields][][position]=0&content_type[entries_custom_fields][][required]=true&content_type[entries_custom_fields][][unique]=false&content_type[entries_custom_fields][][localized]=true&content_type[entries_custom_fields][][label]=available&content_type[entries_custom_fields][][name]=available&content_type[entries_custom_fields][][type]=boolean&content_type[entries_custom_fields][][position]=1&content_type[entries_custom_fields][][required]=false&content_type[entries_custom_fields][][unique]=false&content_type[entries_custom_fields][][localized]=false
|
241
|
-
headers: {}
|
242
|
-
response:
|
243
|
-
status:
|
244
|
-
code: 200
|
245
|
-
message: OK
|
246
|
-
headers:
|
247
|
-
Date:
|
248
|
-
- Tue, 17 Sep 2013 15:12:17 GMT
|
249
|
-
Status:
|
250
|
-
- 200 OK
|
251
|
-
Connection:
|
252
|
-
- close
|
253
|
-
Location:
|
254
|
-
- http://staging.example.com:3000/locomotive/api/content_types
|
255
|
-
Content-Type:
|
256
|
-
- application/json; charset=utf-8
|
257
|
-
X-Ua-Compatible:
|
258
|
-
- IE=Edge
|
259
|
-
Etag:
|
260
|
-
- '"9a10d6bde4c6dff5872887e673ba38b3"'
|
261
|
-
Cache-Control:
|
262
|
-
- max-age=0, private, must-revalidate
|
263
|
-
Set-Cookie:
|
264
|
-
- _locomotive_session=5IDxw38JgWhqxItM_MrQCWQR2UY; domain=.example.com; path=/;
|
265
|
-
HttpOnly
|
266
|
-
X-Request-Id:
|
267
|
-
- d392666c93ef648db15a29ce57bf2cec
|
268
|
-
X-Runtime:
|
269
|
-
- '0.078165'
|
270
|
-
body:
|
271
|
-
encoding: UTF-8
|
272
|
-
string: '{"id":"5238715187f643884e00000d","_id":"5238715187f643884e00000d","created_at":"2013-09-17T15:12:17Z","updated_at":"2013-09-17T15:12:17Z","name":"Products","slug":"products","entries_custom_fields":[{"id":"5238715187f643884e00000e","_id":"5238715187f643884e00000e","name":"name","label":"name","type":"string","required":true,"localized":true,"unique":false,"position":0},{"id":"5238715187f643884e00000f","_id":"5238715187f643884e00000f","name":"available","label":"available","type":"boolean","required":false,"localized":false,"unique":false,"position":1}],"description":"My
|
273
|
-
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":[]}'
|
274
|
-
http_version:
|
275
|
-
recorded_at: Tue, 17 Sep 2013 15:12:17 GMT
|
276
|
-
- request:
|
277
|
-
method: get
|
278
|
-
uri: http://staging.example.com:3000/locomotive/api/pages.json?auth_token=iaWvtP5PhmnyKypXpLbM
|
279
|
-
body:
|
280
|
-
encoding: US-ASCII
|
281
|
-
string: ''
|
282
|
-
headers: {}
|
283
|
-
response:
|
284
|
-
status:
|
285
|
-
code: 200
|
286
|
-
message: OK
|
287
|
-
headers:
|
288
|
-
Date:
|
289
|
-
- Tue, 17 Sep 2013 15:12:17 GMT
|
290
|
-
Status:
|
291
|
-
- 200 OK
|
292
|
-
Connection:
|
293
|
-
- close
|
294
|
-
Content-Type:
|
295
|
-
- application/json; charset=utf-8
|
296
|
-
X-Ua-Compatible:
|
297
|
-
- IE=Edge
|
298
|
-
Etag:
|
299
|
-
- '"2bf034a4556fe3479a16e76573df955d"'
|
300
|
-
Cache-Control:
|
301
|
-
- max-age=0, private, must-revalidate
|
302
|
-
Set-Cookie:
|
303
|
-
- _locomotive_session=71tt9yea19R8HhQ0mshLgX28FkI; domain=.example.com; path=/;
|
304
|
-
HttpOnly
|
305
|
-
X-Request-Id:
|
306
|
-
- a0018dd556aa887384361d1cc04c0cb9
|
307
|
-
X-Runtime:
|
308
|
-
- '0.048914'
|
309
|
-
body:
|
310
|
-
encoding: UTF-8
|
311
|
-
string: '[{"id":"5238715187f643884e00000b","_id":"5238715187f643884e00000b","created_at":"2013-09-17T15:12:17Z","updated_at":"2013-09-17T15:12:17Z","title":"Home
|
312
|
-
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":"Content
|
313
|
-
of the home page","escaped_raw_template":"Content of the home page","editable_elements":[]},{"id":"5238715187f643884e00000c","_id":"5238715187f643884e00000c","created_at":"2013-09-17T15:12:17Z","updated_at":"2013-09-17T15:12:17Z","title":"Page
|
314
|
-
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
|
315
|
-
of the 404 page","escaped_raw_template":"Content of the 404 page","editable_elements":[]}]'
|
316
|
-
http_version:
|
317
|
-
recorded_at: Tue, 17 Sep 2013 15:12:17 GMT
|
318
|
-
- request:
|
319
|
-
method: put
|
320
|
-
uri: http://staging.example.com:3000/locomotive/api/pages/5238715187f643884e00000b.json?auth_token=iaWvtP5PhmnyKypXpLbM
|
321
|
-
body:
|
322
|
-
encoding: UTF-8
|
323
|
-
string: page[title]=Home%20page&page[redirect_type]=301&page[listed]=true&page[templatized]=false&page[published]=true&page[cache_strategy]=none&page[response_type]=text%2Fhtml&page[position]=0&page[raw_template]=%7B%25%20block%20content%20%25%7D%0D%0A%20%20New%20content%20of%20the%20home%20page%0D%0A%7B%25%20endblock%20%25%7D%0D%0A%0D%0A&locale=en
|
324
|
-
headers: {}
|
325
|
-
response:
|
326
|
-
status:
|
327
|
-
code: 200
|
328
|
-
message: OK
|
329
|
-
headers:
|
330
|
-
Date:
|
331
|
-
- Tue, 17 Sep 2013 15:12:18 GMT
|
332
|
-
Status:
|
333
|
-
- 200 OK
|
334
|
-
Connection:
|
335
|
-
- close
|
336
|
-
X-Message:
|
337
|
-
- '"Page%20was%20successfully%20updated."'
|
338
|
-
X-Message-Type:
|
339
|
-
- notice
|
340
|
-
Location:
|
341
|
-
- http://staging.example.com:3000/locomotive/api/pages
|
342
|
-
Content-Type:
|
343
|
-
- application/json; charset=utf-8
|
344
|
-
X-Ua-Compatible:
|
345
|
-
- IE=Edge
|
346
|
-
Etag:
|
347
|
-
- '"7526fea703475e13c5673d3b3dc74174"'
|
348
|
-
Cache-Control:
|
349
|
-
- max-age=0, private, must-revalidate
|
350
|
-
Set-Cookie:
|
351
|
-
- _locomotive_session=YZ0YkOmt0avCCj2MAzcSd2chOfg; domain=.example.com; path=/;
|
352
|
-
HttpOnly
|
353
|
-
X-Request-Id:
|
354
|
-
- 3206f59d583d6efc01637f9dcbc9cc43
|
355
|
-
X-Runtime:
|
356
|
-
- '0.072984'
|
357
|
-
body:
|
358
|
-
encoding: UTF-8
|
359
|
-
string: '{"id":"5238715187f643884e00000b","_id":"5238715187f643884e00000b","created_at":"2013-09-17T15:12:17Z","updated_at":"2013-09-17T15:12:18Z","title":"Home
|
360
|
-
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,"template_changed":true,"translated_in":["en","es"],"raw_template":"{%
|
361
|
-
block content %}\r\n New content of the home page\r\n{% endblock %}\r\n\r\n","escaped_raw_template":"{%
|
362
|
-
block content %}\r\n New content of the home page\r\n{% endblock %}\r\n\r\n","editable_elements":[]}'
|
363
|
-
http_version:
|
364
|
-
recorded_at: Tue, 17 Sep 2013 15:12:18 GMT
|
365
|
-
- request:
|
366
|
-
method: put
|
367
|
-
uri: http://staging.example.com:3000/locomotive/api/pages/5238715187f643884e00000c.json?auth_token=iaWvtP5PhmnyKypXpLbM
|
368
|
-
body:
|
369
|
-
encoding: UTF-8
|
370
|
-
string: page[title]=Page%20not%20found&page[redirect_type]=301&page[listed]=true&page[templatized]=false&page[published]=true&page[cache_strategy]=none&page[response_type]=text%2Fhtml&page[position]=1&page[raw_template]=Content%20of%20the%20404%20page&locale=en
|
371
|
-
headers: {}
|
372
|
-
response:
|
373
|
-
status:
|
374
|
-
code: 200
|
375
|
-
message: OK
|
376
|
-
headers:
|
377
|
-
Date:
|
378
|
-
- Tue, 17 Sep 2013 15:12:18 GMT
|
379
|
-
Status:
|
380
|
-
- 200 OK
|
381
|
-
Connection:
|
382
|
-
- close
|
383
|
-
X-Message:
|
384
|
-
- '"Page%20was%20successfully%20updated."'
|
385
|
-
X-Message-Type:
|
386
|
-
- notice
|
387
|
-
Location:
|
388
|
-
- http://staging.example.com:3000/locomotive/api/pages
|
389
|
-
Content-Type:
|
390
|
-
- application/json; charset=utf-8
|
391
|
-
X-Ua-Compatible:
|
392
|
-
- IE=Edge
|
393
|
-
Etag:
|
394
|
-
- '"eb0485fd501236dec0f261e70555721f"'
|
395
|
-
Cache-Control:
|
396
|
-
- max-age=0, private, must-revalidate
|
397
|
-
Set-Cookie:
|
398
|
-
- _locomotive_session=oUJqosgKMmzIMweOoAkLOEyRZGg; domain=.example.com; path=/;
|
399
|
-
HttpOnly
|
400
|
-
X-Request-Id:
|
401
|
-
- 23024c6f75ac4b4db106e1b277f7e90b
|
402
|
-
X-Runtime:
|
403
|
-
- '0.053845'
|
404
|
-
body:
|
405
|
-
encoding: UTF-8
|
406
|
-
string: '{"id":"5238715187f643884e00000c","_id":"5238715187f643884e00000c","created_at":"2013-09-17T15:12:17Z","updated_at":"2013-09-17T15:12:17Z","title":"Page
|
407
|
-
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
|
408
|
-
of the 404 page","escaped_raw_template":"Content of the 404 page","editable_elements":[]}'
|
409
|
-
http_version:
|
410
|
-
recorded_at: Tue, 17 Sep 2013 15:12:18 GMT
|
411
|
-
- request:
|
412
|
-
method: post
|
413
|
-
uri: http://staging.example.com:3000/locomotive/api/pages.json?auth_token=iaWvtP5PhmnyKypXpLbM
|
414
|
-
body:
|
415
|
-
encoding: UTF-8
|
416
|
-
string: page[title]=translated&page[slug]=translated&page[redirect_type]=301&page[listed]=true&page[templatized]=false&page[published]=true&page[cache_strategy]=none&page[response_type]=text%2Fhtml&page[position]=0&page[parent_id]=5238715187f643884e00000b&page[raw_template]=%7B%7B%20'hello_world'%20%7C%20translate%7D%7D
|
417
|
-
headers: {}
|
418
|
-
response:
|
419
|
-
status:
|
420
|
-
code: 200
|
421
|
-
message: OK
|
422
|
-
headers:
|
423
|
-
Date:
|
424
|
-
- Tue, 17 Sep 2013 15:12:18 GMT
|
425
|
-
Status:
|
426
|
-
- 200 OK
|
427
|
-
Connection:
|
428
|
-
- close
|
429
|
-
Location:
|
430
|
-
- http://staging.example.com:3000/locomotive/api/pages
|
431
|
-
Content-Type:
|
432
|
-
- application/json; charset=utf-8
|
433
|
-
X-Ua-Compatible:
|
434
|
-
- IE=Edge
|
435
|
-
Etag:
|
436
|
-
- '"d613d3737207cda34c54e60662bc4eb8"'
|
437
|
-
Cache-Control:
|
438
|
-
- max-age=0, private, must-revalidate
|
439
|
-
Set-Cookie:
|
440
|
-
- _locomotive_session=TO2vsghCeuN0qN5J9TeGn-hZPhY; domain=.example.com; path=/;
|
441
|
-
HttpOnly
|
442
|
-
X-Request-Id:
|
443
|
-
- 21538f3846598a0746027c05379040a6
|
444
|
-
X-Runtime:
|
445
|
-
- '0.068711'
|
446
|
-
body:
|
447
|
-
encoding: UTF-8
|
448
|
-
string: '{"id":"5238715287f643884e000010","_id":"5238715287f643884e000010","created_at":"2013-09-17T15:12:18Z","updated_at":"2013-09-17T15:12:18Z","title":"translated","slug":"translated","parent_id":"5238715187f643884e00000b","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,"template_changed":true,"translated_in":["en"],"raw_template":"{{
|
449
|
-
''hello_world'' | translate}}","escaped_raw_template":"{{ 'hello_world'
|
450
|
-
| translate}}","editable_elements":[]}'
|
451
|
-
http_version:
|
452
|
-
recorded_at: Tue, 17 Sep 2013 15:12:18 GMT
|
453
|
-
- request:
|
454
|
-
method: post
|
455
|
-
uri: http://staging.example.com:3000/locomotive/api/pages.json?auth_token=iaWvtP5PhmnyKypXpLbM
|
456
|
-
body:
|
457
|
-
encoding: UTF-8
|
458
|
-
string: page[title]=Products&page[slug]=products&page[redirect_type]=301&page[listed]=true&page[templatized]=false&page[published]=true&page[cache_strategy]=none&page[response_type]=text%2Fhtml&page[position]=1&page[seo_title]=Search%20friendly%20products&page[meta_keywords]=fancy%2C%20products%2C%20keywords&page[meta_description]=Fancy%20products%20description&page[parent_id]=5238715187f643884e00000b&page[raw_template]=%7B%25%20extends%20parent%20%25%7D
|
459
|
-
headers: {}
|
460
|
-
response:
|
461
|
-
status:
|
462
|
-
code: 200
|
463
|
-
message: OK
|
464
|
-
headers:
|
465
|
-
Date:
|
466
|
-
- Tue, 17 Sep 2013 15:12:18 GMT
|
467
|
-
Status:
|
468
|
-
- 200 OK
|
469
|
-
Connection:
|
470
|
-
- close
|
471
|
-
Location:
|
472
|
-
- http://staging.example.com:3000/locomotive/api/pages
|
473
|
-
Content-Type:
|
474
|
-
- application/json; charset=utf-8
|
475
|
-
X-Ua-Compatible:
|
476
|
-
- IE=Edge
|
477
|
-
Etag:
|
478
|
-
- '"507502849fe4cc6de4a4c3b2869c3fa0"'
|
479
|
-
Cache-Control:
|
480
|
-
- max-age=0, private, must-revalidate
|
481
|
-
Set-Cookie:
|
482
|
-
- _locomotive_session=77kG6mysN41mNG60lcZWlKhzpD0; domain=.example.com; path=/;
|
483
|
-
HttpOnly
|
484
|
-
X-Request-Id:
|
485
|
-
- 58d6d16ff658cea0ab4d90293d5fa2d5
|
486
|
-
X-Runtime:
|
487
|
-
- '0.069076'
|
488
|
-
body:
|
489
|
-
encoding: UTF-8
|
490
|
-
string: '{"id":"5238715287f643884e000011","_id":"5238715287f643884e000011","created_at":"2013-09-17T15:12:18Z","updated_at":"2013-09-17T15:12:18Z","title":"Products","slug":"products","parent_id":"5238715187f643884e00000b","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,"template_changed":true,"translated_in":["en"],"raw_template":"{%
|
491
|
-
extends parent %}","escaped_raw_template":"{% extends parent %}","editable_elements":[],"seo_title":"Search
|
492
|
-
friendly products","meta_keywords":"fancy, products, keywords","meta_description":"Fancy
|
493
|
-
products description"}'
|
494
|
-
http_version:
|
495
|
-
recorded_at: Tue, 17 Sep 2013 15:12:18 GMT
|
496
|
-
- request:
|
497
|
-
method: post
|
498
|
-
uri: http://staging.example.com:3000/locomotive/api/pages.json?auth_token=iaWvtP5PhmnyKypXpLbM
|
499
|
-
body:
|
500
|
-
encoding: UTF-8
|
501
|
-
string: page[title]=Latest&page[slug]=latest&page[redirect_type]=301&page[listed]=true&page[templatized]=false&page[published]=true&page[cache_strategy]=none&page[response_type]=text%2Fhtml&page[position]=0&page[parent_id]=5238715287f643884e000011&page[raw_template]=%7B%25%20extends%20parent%20%25%7D%0D%0A%7B%25%20block%20content%20%25%7D%0D%0A%20%20The%20name%20of%20the%20latest%20product%20is%3A%20%7B%7B%20contents.products.last.name%20%7D%7D%0D%0A%7B%25%20endblock%20%25%7D
|
502
|
-
headers: {}
|
503
|
-
response:
|
504
|
-
status:
|
505
|
-
code: 200
|
506
|
-
message: OK
|
507
|
-
headers:
|
508
|
-
Date:
|
509
|
-
- Tue, 17 Sep 2013 15:12:18 GMT
|
510
|
-
Status:
|
511
|
-
- 200 OK
|
512
|
-
Connection:
|
513
|
-
- close
|
514
|
-
Location:
|
515
|
-
- http://staging.example.com:3000/locomotive/api/pages
|
516
|
-
Content-Type:
|
517
|
-
- application/json; charset=utf-8
|
518
|
-
X-Ua-Compatible:
|
519
|
-
- IE=Edge
|
520
|
-
Etag:
|
521
|
-
- '"8c34a4badd6911f6574462b6b1c305ae"'
|
522
|
-
Cache-Control:
|
523
|
-
- max-age=0, private, must-revalidate
|
524
|
-
Set-Cookie:
|
525
|
-
- _locomotive_session=hnwRvwirurzAcWZbZrsRGCXjqHw; domain=.example.com; path=/;
|
526
|
-
HttpOnly
|
527
|
-
X-Request-Id:
|
528
|
-
- 257eb9dbe9a49b96344cdd66e0727a73
|
529
|
-
X-Runtime:
|
530
|
-
- '0.069259'
|
531
|
-
body:
|
532
|
-
encoding: UTF-8
|
533
|
-
string: '{"id":"5238715287f643884e000012","_id":"5238715287f643884e000012","created_at":"2013-09-17T15:12:18Z","updated_at":"2013-09-17T15:12:18Z","title":"Latest","slug":"latest","parent_id":"5238715287f643884e000011","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,"template_changed":true,"translated_in":["en"],"raw_template":"{%
|
534
|
-
extends parent %}\r\n{% block content %}\r\n The name of the latest product
|
535
|
-
is: {{ contents.products.last.name }}\r\n{% endblock %}","escaped_raw_template":"{%
|
536
|
-
extends parent %}\r\n{% block content %}\r\n The name of the latest product
|
537
|
-
is: {{ contents.products.last.name }}\r\n{% endblock %}","editable_elements":[]}'
|
538
|
-
http_version:
|
539
|
-
recorded_at: Tue, 17 Sep 2013 15:12:18 GMT
|
540
|
-
- request:
|
541
|
-
method: put
|
542
|
-
uri: http://staging.example.com:3000/locomotive/api/pages/5238715187f643884e00000b.json?auth_token=iaWvtP5PhmnyKypXpLbM
|
543
|
-
body:
|
544
|
-
encoding: UTF-8
|
545
|
-
string: page[title]=P%C3%A1gina%20de%20inicio&page[redirect_type]=301&page[listed]=true&page[templatized]=false&page[published]=true&page[cache_strategy]=none&page[response_type]=text%2Fhtml&page[position]=0&page[raw_template]=New%20content%20of%20the%20home%20page%0D%0A&locale=es
|
546
|
-
headers: {}
|
547
|
-
response:
|
548
|
-
status:
|
549
|
-
code: 200
|
550
|
-
message: OK
|
551
|
-
headers:
|
552
|
-
Date:
|
553
|
-
- Tue, 17 Sep 2013 15:12:18 GMT
|
554
|
-
Status:
|
555
|
-
- 200 OK
|
556
|
-
Connection:
|
557
|
-
- close
|
558
|
-
Location:
|
559
|
-
- http://staging.example.com:3000/locomotive/api/pages
|
560
|
-
Content-Type:
|
561
|
-
- application/json; charset=utf-8
|
562
|
-
X-Ua-Compatible:
|
563
|
-
- IE=Edge
|
564
|
-
Etag:
|
565
|
-
- '"6fadabcb1299382b31a7a76b19c3bdec"'
|
566
|
-
Cache-Control:
|
567
|
-
- max-age=0, private, must-revalidate
|
568
|
-
Set-Cookie:
|
569
|
-
- _locomotive_session=xMkk4AIEl8Y92IYN6WraIpDQ1-4; domain=.example.com; path=/;
|
570
|
-
HttpOnly
|
571
|
-
X-Request-Id:
|
572
|
-
- 408a7e2b3c9ffca5242184458aafd900
|
573
|
-
X-Runtime:
|
574
|
-
- '0.112108'
|
575
|
-
body:
|
576
|
-
encoding: UTF-8
|
577
|
-
string: '{"id":"5238715187f643884e00000b","_id":"5238715187f643884e00000b","created_at":"2013-09-17T15:12:17Z","updated_at":"2013-09-17T15:12:18Z","title":"P\u00e1gina
|
578
|
-
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,"template_changed":true,"translated_in":["en","es"],"raw_template":"New
|
579
|
-
content of the home page\r\n","escaped_raw_template":"New content of the home
|
580
|
-
page\r\n","editable_elements":[]}'
|
581
|
-
http_version:
|
582
|
-
recorded_at: Tue, 17 Sep 2013 15:12:18 GMT
|
583
|
-
- request:
|
584
|
-
method: put
|
585
|
-
uri: http://staging.example.com:3000/locomotive/api/pages/5238715187f643884e00000c.json?auth_token=iaWvtP5PhmnyKypXpLbM
|
586
|
-
body:
|
587
|
-
encoding: UTF-8
|
588
|
-
string: page[title]=P%C3%A1gina%20no%20encontrada&page[redirect_type]=301&page[listed]=true&page[templatized]=false&page[published]=true&page[cache_strategy]=none&page[response_type]=text%2Fhtml&page[position]=1&page[raw_template]=Content%20of%20the%20404%20page&locale=es
|
589
|
-
headers: {}
|
590
|
-
response:
|
591
|
-
status:
|
592
|
-
code: 200
|
593
|
-
message: OK
|
594
|
-
headers:
|
595
|
-
Date:
|
596
|
-
- Tue, 17 Sep 2013 15:12:18 GMT
|
597
|
-
Status:
|
598
|
-
- 200 OK
|
599
|
-
Connection:
|
600
|
-
- close
|
601
|
-
Location:
|
602
|
-
- http://staging.example.com:3000/locomotive/api/pages
|
603
|
-
Content-Type:
|
604
|
-
- application/json; charset=utf-8
|
605
|
-
X-Ua-Compatible:
|
606
|
-
- IE=Edge
|
607
|
-
Etag:
|
608
|
-
- '"951c07cfeb3a3b0b3a5962b7bf5684b8"'
|
609
|
-
Cache-Control:
|
610
|
-
- max-age=0, private, must-revalidate
|
611
|
-
Set-Cookie:
|
612
|
-
- _locomotive_session=LLgP_cxmWw_vR6lgaKBcJMCUFQM; domain=.example.com; path=/;
|
613
|
-
HttpOnly
|
614
|
-
X-Request-Id:
|
615
|
-
- d826f8392060b1dbd39e13d918f83547
|
616
|
-
X-Runtime:
|
617
|
-
- '0.048381'
|
618
|
-
body:
|
619
|
-
encoding: UTF-8
|
620
|
-
string: '{"id":"5238715187f643884e00000c","_id":"5238715187f643884e00000c","created_at":"2013-09-17T15:12:17Z","updated_at":"2013-09-17T15:12:18Z","title":"P\u00e1gina
|
621
|
-
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,"template_changed":true,"translated_in":["en","es"],"raw_template":"Content
|
622
|
-
of the 404 page","escaped_raw_template":"Content of the 404 page","editable_elements":[]}'
|
623
|
-
http_version:
|
624
|
-
recorded_at: Tue, 17 Sep 2013 15:12:18 GMT
|
625
|
-
- request:
|
626
|
-
method: put
|
627
|
-
uri: http://staging.example.com:3000/locomotive/api/pages/5238715287f643884e000011.json?auth_token=iaWvtP5PhmnyKypXpLbM
|
628
|
-
body:
|
629
|
-
encoding: UTF-8
|
630
|
-
string: page[title]=Products&page[slug]=products&page[listed]=true&page[templatized]=false&page[published]=true&page[cache_strategy]=none&page[response_type]=text%2Fhtml&page[position]=1&page[seo_title]=Productos%20SEO&page[meta_keywords]=palabras%2C%20clave%2C%20productos&page[meta_description]=Descripci%C3%B3n%20molona%20de%20los%20productos&page[raw_template]=%7B%25%20extends%20parent%20%25%7D&locale=es
|
631
|
-
headers: {}
|
632
|
-
response:
|
633
|
-
status:
|
634
|
-
code: 200
|
635
|
-
message: OK
|
636
|
-
headers:
|
637
|
-
Date:
|
638
|
-
- Tue, 17 Sep 2013 15:12:18 GMT
|
639
|
-
Status:
|
640
|
-
- 200 OK
|
641
|
-
Connection:
|
642
|
-
- close
|
643
|
-
Location:
|
644
|
-
- http://staging.example.com:3000/locomotive/api/pages
|
645
|
-
Content-Type:
|
646
|
-
- application/json; charset=utf-8
|
647
|
-
X-Ua-Compatible:
|
648
|
-
- IE=Edge
|
649
|
-
Etag:
|
650
|
-
- '"adbbc177679aebab4f5442b46c975ab7"'
|
651
|
-
Cache-Control:
|
652
|
-
- max-age=0, private, must-revalidate
|
653
|
-
Set-Cookie:
|
654
|
-
- _locomotive_session=iVFImXwU4LRxxvm21taLtcQDkzE; domain=.example.com; path=/;
|
655
|
-
HttpOnly
|
656
|
-
X-Request-Id:
|
657
|
-
- 08b1dd7febf52138996b81a0e8d162ed
|
658
|
-
X-Runtime:
|
659
|
-
- '0.068407'
|
660
|
-
body:
|
661
|
-
encoding: UTF-8
|
662
|
-
string: '{"id":"5238715287f643884e000011","_id":"5238715287f643884e000011","created_at":"2013-09-17T15:12:18Z","updated_at":"2013-09-17T15:12:18Z","title":"Products","slug":"products","parent_id":"5238715187f643884e00000b","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,"template_changed":true,"translated_in":["en","es"],"raw_template":"{%
|
663
|
-
extends parent %}","escaped_raw_template":"{% extends parent %}","editable_elements":[],"seo_title":"Productos
|
664
|
-
SEO","meta_keywords":"palabras, clave, productos","meta_description":"Descripci\u00f3n
|
665
|
-
molona de los productos"}'
|
666
|
-
http_version:
|
667
|
-
recorded_at: Tue, 17 Sep 2013 15:12:18 GMT
|
668
|
-
- request:
|
669
|
-
method: get
|
670
|
-
uri: http://staging.example.com:3000/locomotive/api/theme_assets.json?auth_token=iaWvtP5PhmnyKypXpLbM
|
671
|
-
body:
|
672
|
-
encoding: US-ASCII
|
673
|
-
string: ''
|
674
|
-
headers: {}
|
675
|
-
response:
|
676
|
-
status:
|
677
|
-
code: 200
|
678
|
-
message: OK
|
679
|
-
headers:
|
680
|
-
Date:
|
681
|
-
- Tue, 17 Sep 2013 15:12:18 GMT
|
682
|
-
Status:
|
683
|
-
- 200 OK
|
684
|
-
Connection:
|
685
|
-
- close
|
686
|
-
Content-Type:
|
687
|
-
- application/json; charset=utf-8
|
688
|
-
X-Ua-Compatible:
|
689
|
-
- IE=Edge
|
690
|
-
Etag:
|
691
|
-
- '"d751713988987e9331980363e24189ce"'
|
692
|
-
Cache-Control:
|
693
|
-
- max-age=0, private, must-revalidate
|
694
|
-
Set-Cookie:
|
695
|
-
- _locomotive_session=-t4DtKkjHS5nXFQ1qzDVjuudB50; domain=.example.com; path=/;
|
696
|
-
HttpOnly
|
697
|
-
X-Request-Id:
|
698
|
-
- 7e14bbedcd12063d6114acef640780d6
|
699
|
-
X-Runtime:
|
700
|
-
- '0.035893'
|
701
|
-
body:
|
702
|
-
encoding: UTF-8
|
703
|
-
string: '[]'
|
704
|
-
http_version:
|
705
|
-
recorded_at: Tue, 17 Sep 2013 15:12:18 GMT
|
706
|
-
recorded_with: VCR 2.5.0
|