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,36 @@ http_interactions:
22
22
  headers:
23
23
  Content-Type:
24
24
  - application/json
25
- Content-Length:
26
- - '32'
27
25
  Etag:
28
- - W/"6be06530def9720d4d9c14c9278d2f4b"
26
+ - W/"157eb61d395f237526d11950bbc5a1fa"
29
27
  Cache-Control:
30
28
  - max-age=0, private, must-revalidate
31
29
  X-Request-Id:
32
- - f128dcb9-64fb-40b8-a0bb-d86ca8c78067
30
+ - a10b22de-e062-47bb-8f2f-0d1f77970776
33
31
  X-Runtime:
34
- - '0.012847'
35
- Connection:
36
- - keep-alive
37
- Server:
38
- - thin
32
+ - '0.021796'
33
+ Content-Length:
34
+ - '32'
39
35
  body:
40
36
  encoding: UTF-8
41
- string: '{"token":"7BAa-6gXVc3f4XPVaCuu"}'
37
+ string: '{"token":"v6XDp282UyPDeM6DgA-S"}'
42
38
  http_version:
43
- recorded_at: Thu, 07 May 2015 14:28:18 GMT
39
+ recorded_at: Wed, 29 Jul 2015 15:36:36 GMT
44
40
  - request:
45
41
  method: get
46
- uri: http://localhost:3000/locomotive/sample/api/v3/pages.json
42
+ uri: http://localhost:3000/locomotive/sample/api/v3/pages.json?auth_token=v6XDp282UyPDeM6DgA-S
47
43
  body:
48
- encoding: UTF-8
49
- string: auth_token=7BAa-6gXVc3f4XPVaCuu
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
- - 7BAa-6gXVc3f4XPVaCuu
57
- Content-Type:
58
- - application/x-www-form-urlencoded
52
+ - v6XDp282UyPDeM6DgA-S
53
+ X-Locomotive-Locale:
54
+ - en
59
55
  Accept-Encoding:
60
56
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
61
57
  User-Agent:
@@ -67,89 +63,79 @@ http_interactions:
67
63
  headers:
68
64
  Content-Type:
69
65
  - application/json
70
- Content-Length:
71
- - '1242'
72
66
  Etag:
73
- - W/"9743ede061b6ec1cdf772baad610baf5"
67
+ - W/"9ddc04a072b2f761fef7325fcfc6a928"
74
68
  Cache-Control:
75
69
  - max-age=0, private, must-revalidate
76
70
  X-Request-Id:
77
- - 8a058bf8-e706-41aa-a4f0-b8b05f747ef3
71
+ - 1d0f843a-f7db-4828-aef2-45c30bc6a921
78
72
  X-Runtime:
79
- - '0.020903'
80
- Connection:
81
- - keep-alive
82
- Server:
83
- - thin
73
+ - '0.024209'
74
+ Content-Length:
75
+ - '1238'
84
76
  body:
85
77
  encoding: UTF-8
86
- string: '[{"_id":"554b767464696416f0060000","created_at":"2015-05-07T14:28:04Z","updated_at":"2015-05-07T14:28:04Z","title":"Home
87
- page","parent_id":null,"position":0,"handle":null,"depth":0,"response_type":"text/html","listed":true,"published":true,"translated_in":["en"],"slug":"index","fullpath":"index","localized_fullpaths":{"en":""},"redirect":false,"redirect_url":null,"redirect_type":301,"templatized":false,"templatized_from_parent":false,"content_type":null,"is_layout":false,"allow_layout":true,"template":"Content
88
- of the home page","editable_elements":[],"seo_title":null,"meta_keywords":null,"meta_description":null},{"_id":"554b767464696416f0070000","created_at":"2015-05-07T14:28:04Z","updated_at":"2015-05-07T14:28:04Z","title":"Page
89
- not found","parent_id":null,"position":1,"handle":null,"depth":0,"response_type":"text/html","listed":true,"published":true,"translated_in":["en"],"slug":"404","fullpath":"404","localized_fullpaths":{"en":"404"},"redirect":false,"redirect_url":null,"redirect_type":301,"templatized":false,"templatized_from_parent":false,"content_type":null,"is_layout":false,"allow_layout":true,"template":"Content
78
+ string: '[{"_id":"55b8f2ea4469646440000007","created_at":"2015-07-29T15:36:10Z","updated_at":"2015-07-29T15:36:10Z","title":"Home
79
+ page","parent_id":null,"position":0,"handle":null,"depth":0,"response_type":"text/html","listed":true,"published":true,"translated_in":["en"],"slug":"index","fullpath":"index","localized_fullpaths":{"en":""},"redirect":false,"redirect_url":"","redirect_type":301,"templatized":false,"templatized_from_parent":false,"content_type":null,"is_layout":false,"allow_layout":true,"template":"Content
80
+ of the home page","editable_elements":[],"seo_title":null,"meta_keywords":null,"meta_description":null},{"_id":"55b8f2ea4469646440000008","created_at":"2015-07-29T15:36:10Z","updated_at":"2015-07-29T15:36:10Z","title":"Page
81
+ not found","parent_id":null,"position":1,"handle":null,"depth":0,"response_type":"text/html","listed":true,"published":true,"translated_in":["en"],"slug":"404","fullpath":"404","localized_fullpaths":{"en":"404"},"redirect":false,"redirect_url":"","redirect_type":301,"templatized":false,"templatized_from_parent":false,"content_type":null,"is_layout":false,"allow_layout":true,"template":"Content
90
82
  of the 404 page","editable_elements":[],"seo_title":null,"meta_keywords":null,"meta_description":null}]'
91
83
  http_version:
92
- recorded_at: Thu, 07 May 2015 14:28:18 GMT
84
+ recorded_at: Wed, 29 Jul 2015 15:36:36 GMT
93
85
  - request:
94
- method: post
95
- uri: http://localhost:3000/locomotive/sample/api/v3/pages.json
86
+ method: get
87
+ uri: http://localhost:3000/locomotive/sample/api/v3/pages/fullpaths.json?auth_token=v6XDp282UyPDeM6DgA-S
96
88
  body:
97
- encoding: UTF-8
98
- string: auth_token=7BAa-6gXVc3f4XPVaCuu&page%5Bparent%5D=index&page%5Bslug%5D=about-us&page%5Btemplate%5D=Locomotive+rocks%21&page%5Btitle%5D=About+us
89
+ encoding: US-ASCII
90
+ string: ''
99
91
  headers:
100
92
  Accept:
101
93
  - application/json
102
94
  X-Locomotive-Account-Email:
103
95
  - admin@locomotivecms.com
104
96
  X-Locomotive-Account-Token:
105
- - 7BAa-6gXVc3f4XPVaCuu
106
- Content-Type:
107
- - application/x-www-form-urlencoded
97
+ - v6XDp282UyPDeM6DgA-S
98
+ X-Locomotive-Locale:
99
+ - en
108
100
  Accept-Encoding:
109
101
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
110
102
  User-Agent:
111
103
  - Ruby
112
104
  response:
113
105
  status:
114
- code: 201
115
- message: Created
106
+ code: 200
107
+ message: OK
116
108
  headers:
117
109
  Content-Type:
118
110
  - application/json
119
- Content-Length:
120
- - '661'
121
111
  Etag:
122
- - W/"31d77daada1869a598f86f882854eb6b"
112
+ - W/"a7a760b25ac15a18e96074f99f1fefdb"
123
113
  Cache-Control:
124
114
  - max-age=0, private, must-revalidate
125
115
  X-Request-Id:
126
- - 9bc6f4be-2455-4705-bad0-9a9dbb8d4c73
116
+ - 37883fc1-dc43-4e0f-a014-82df89af3832
127
117
  X-Runtime:
128
- - '0.079593'
129
- Connection:
130
- - keep-alive
131
- Server:
132
- - thin
118
+ - '0.021907'
119
+ Content-Length:
120
+ - '107'
133
121
  body:
134
122
  encoding: UTF-8
135
- string: '{"_id":"554b76826469641460040000","created_at":"2015-05-07T14:28:18Z","updated_at":"2015-05-07T14:28:18Z","title":"About
136
- us","parent_id":{"$oid":"554b767464696416f0060000"},"position":0,"handle":null,"depth":1,"response_type":"text/html","listed":true,"published":false,"translated_in":["en"],"slug":"about-us","fullpath":"about-us","localized_fullpaths":{"en":"about-us"},"redirect":false,"redirect_url":null,"redirect_type":301,"templatized":false,"templatized_from_parent":false,"content_type":null,"is_layout":false,"allow_layout":true,"template":"{%
137
- extends ''parent'' %}","editable_elements":[],"seo_title":null,"meta_keywords":null,"meta_description":null}'
123
+ string: '[{"_id":"55b8f2ea4469646440000007","fullpath":"index"},{"_id":"55b8f2ea4469646440000008","fullpath":"404"}]'
138
124
  http_version:
139
- recorded_at: Thu, 07 May 2015 14:28:18 GMT
125
+ recorded_at: Wed, 29 Jul 2015 15:36:36 GMT
140
126
  - request:
141
- method: put
142
- uri: http://localhost:3000/locomotive/sample/api/v3/pages/554b76826469641460040000.json
127
+ method: post
128
+ uri: http://localhost:3000/locomotive/sample/api/v3/pages.json
143
129
  body:
144
130
  encoding: UTF-8
145
- string: auth_token=7BAa-6gXVc3f4XPVaCuu&page%5Btemplate%5D=Locomotive+rocks.+period
131
+ string: auth_token=v6XDp282UyPDeM6DgA-S&page%5Bparent%5D=index&page%5Bslug%5D=about-us&page%5Btemplate%5D=Locomotive+rocks%21&page%5Btitle%5D=About+us
146
132
  headers:
147
133
  Accept:
148
134
  - application/json
149
135
  X-Locomotive-Account-Email:
150
136
  - admin@locomotivecms.com
151
137
  X-Locomotive-Account-Token:
152
- - 7BAa-6gXVc3f4XPVaCuu
138
+ - v6XDp282UyPDeM6DgA-S
153
139
  Content-Type:
154
140
  - application/x-www-form-urlencoded
155
141
  Accept-Encoding:
@@ -158,45 +144,43 @@ http_interactions:
158
144
  - Ruby
159
145
  response:
160
146
  status:
161
- code: 200
162
- message: OK
147
+ code: 201
148
+ message: Created
163
149
  headers:
164
150
  Content-Type:
165
151
  - application/json
166
- Content-Length:
167
- - '663'
168
152
  Etag:
169
- - W/"c09dfe97c855fbd373aa489d002c864d"
153
+ - W/"01f3b40a6084cec14b10231fa141c446"
170
154
  Cache-Control:
171
155
  - max-age=0, private, must-revalidate
172
156
  X-Request-Id:
173
- - 4ef2af25-ed77-42b7-bd37-4a32996e73af
157
+ - 48de2bc4-7ebd-42ff-b937-103c9c563d5a
174
158
  X-Runtime:
175
- - '0.038725'
176
- Connection:
177
- - keep-alive
178
- Server:
179
- - thin
159
+ - '0.054169'
160
+ Content-Length:
161
+ - '645'
180
162
  body:
181
163
  encoding: UTF-8
182
- string: '{"_id":"554b76826469641460040000","created_at":"2015-05-07T14:28:18Z","updated_at":"2015-05-07T14:28:18Z","title":"About
183
- us","parent_id":{"$oid":"554b767464696416f0060000"},"position":0,"handle":null,"depth":1,"response_type":"text/html","listed":true,"published":false,"translated_in":["en"],"slug":"about-us","fullpath":"about-us","localized_fullpaths":{"en":"about-us"},"redirect":false,"redirect_url":null,"redirect_type":301,"templatized":false,"templatized_from_parent":false,"content_type":null,"is_layout":false,"allow_layout":true,"template":"Locomotive
184
- rocks. period","editable_elements":[],"seo_title":null,"meta_keywords":null,"meta_description":null}'
164
+ string: '{"_id":"55b8f304446964641a00000c","created_at":"2015-07-29T15:36:36Z","updated_at":"2015-07-29T15:36:36Z","title":"About
165
+ us","parent_id":"55b8f2ea4469646440000007","position":0,"handle":null,"depth":1,"response_type":"text/html","listed":true,"published":false,"translated_in":["en"],"slug":"about-us","fullpath":"about-us","localized_fullpaths":{"en":"about-us"},"redirect":false,"redirect_url":"","redirect_type":301,"templatized":false,"templatized_from_parent":false,"content_type":null,"is_layout":false,"allow_layout":true,"template":"Locomotive
166
+ rocks!","editable_elements":[],"seo_title":null,"meta_keywords":null,"meta_description":null}'
185
167
  http_version:
186
- recorded_at: Thu, 07 May 2015 14:28:18 GMT
168
+ recorded_at: Wed, 29 Jul 2015 15:36:36 GMT
187
169
  - request:
188
- method: delete
189
- uri: http://localhost:3000/locomotive/sample/api/v3/pages/554b76826469641460040000.json
170
+ method: put
171
+ uri: http://localhost:3000/locomotive/sample/api/v3/pages/55b8f304446964641a00000c.json
190
172
  body:
191
173
  encoding: UTF-8
192
- string: auth_token=7BAa-6gXVc3f4XPVaCuu
174
+ string: auth_token=v6XDp282UyPDeM6DgA-S&page%5Btemplate%5D=Locomotive+rocks.+period
193
175
  headers:
194
176
  Accept:
195
177
  - application/json
196
178
  X-Locomotive-Account-Email:
197
179
  - admin@locomotivecms.com
198
180
  X-Locomotive-Account-Token:
199
- - 7BAa-6gXVc3f4XPVaCuu
181
+ - v6XDp282UyPDeM6DgA-S
182
+ X-Locomotive-Locale:
183
+ - en
200
184
  Content-Type:
201
185
  - application/x-www-form-urlencoded
202
186
  Accept-Encoding:
@@ -210,44 +194,36 @@ http_interactions:
210
194
  headers:
211
195
  Content-Type:
212
196
  - application/json
213
- Content-Length:
214
- - '663'
215
197
  Etag:
216
- - W/"c09dfe97c855fbd373aa489d002c864d"
198
+ - W/"1d1522b9b01d363093ecf72c2f1043f0"
217
199
  Cache-Control:
218
200
  - max-age=0, private, must-revalidate
219
201
  X-Request-Id:
220
- - e2a720db-1592-4638-9baa-a4b714dc13f1
202
+ - d25e879a-57c4-4add-a73c-a13421a55bcc
221
203
  X-Runtime:
222
- - '0.046890'
223
- Connection:
224
- - keep-alive
225
- Server:
226
- - thin
204
+ - '0.033759'
205
+ Content-Length:
206
+ - '652'
227
207
  body:
228
208
  encoding: UTF-8
229
- string: '{"_id":"554b76826469641460040000","created_at":"2015-05-07T14:28:18Z","updated_at":"2015-05-07T14:28:18Z","title":"About
230
- us","parent_id":{"$oid":"554b767464696416f0060000"},"position":0,"handle":null,"depth":1,"response_type":"text/html","listed":true,"published":false,"translated_in":["en"],"slug":"about-us","fullpath":"about-us","localized_fullpaths":{"en":"about-us"},"redirect":false,"redirect_url":null,"redirect_type":301,"templatized":false,"templatized_from_parent":false,"content_type":null,"is_layout":false,"allow_layout":true,"template":"Locomotive
209
+ string: '{"_id":"55b8f304446964641a00000c","created_at":"2015-07-29T15:36:36Z","updated_at":"2015-07-29T15:36:36Z","title":"About
210
+ us","parent_id":"55b8f2ea4469646440000007","position":0,"handle":null,"depth":1,"response_type":"text/html","listed":true,"published":false,"translated_in":["en"],"slug":"about-us","fullpath":"about-us","localized_fullpaths":{"en":"about-us"},"redirect":false,"redirect_url":"","redirect_type":301,"templatized":false,"templatized_from_parent":false,"content_type":null,"is_layout":false,"allow_layout":true,"template":"Locomotive
231
211
  rocks. period","editable_elements":[],"seo_title":null,"meta_keywords":null,"meta_description":null}'
232
212
  http_version:
233
- recorded_at: Thu, 07 May 2015 14:28:18 GMT
213
+ recorded_at: Wed, 29 Jul 2015 15:36:36 GMT
234
214
  - request:
235
- method: get
236
- uri: http://localhost:3000/locomotive/sample/api/v3/pages/fullpaths.json
215
+ method: delete
216
+ uri: http://localhost:3000/locomotive/sample/api/v3/pages/55b8f304446964641a00000c.json?auth_token=v6XDp282UyPDeM6DgA-S
237
217
  body:
238
- encoding: UTF-8
239
- string: auth_token=7BAa-6gXVc3f4XPVaCuu
218
+ encoding: US-ASCII
219
+ string: ''
240
220
  headers:
241
221
  Accept:
242
222
  - application/json
243
223
  X-Locomotive-Account-Email:
244
224
  - admin@locomotivecms.com
245
225
  X-Locomotive-Account-Token:
246
- - 7BAa-6gXVc3f4XPVaCuu
247
- X-Locomotive-Locale:
248
- - en
249
- Content-Type:
250
- - application/x-www-form-urlencoded
226
+ - v6XDp282UyPDeM6DgA-S
251
227
  Accept-Encoding:
252
228
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
253
229
  User-Agent:
@@ -259,23 +235,21 @@ http_interactions:
259
235
  headers:
260
236
  Content-Type:
261
237
  - application/json
262
- Content-Length:
263
- - '107'
264
238
  Etag:
265
- - W/"424257c89737e2736dce6359507c20e1"
239
+ - W/"1d1522b9b01d363093ecf72c2f1043f0"
266
240
  Cache-Control:
267
241
  - max-age=0, private, must-revalidate
268
242
  X-Request-Id:
269
- - 3264e9e8-8bc5-4f2f-a667-17b6f7eb1a0b
243
+ - 32cbdcc3-758e-4298-9f14-d65caffa835c
270
244
  X-Runtime:
271
- - '0.946854'
272
- Connection:
273
- - keep-alive
274
- Server:
275
- - thin
245
+ - '0.049873'
246
+ Content-Length:
247
+ - '652'
276
248
  body:
277
249
  encoding: UTF-8
278
- string: '[{"_id":"554b767464696416f0060000","fullpath":"index"},{"_id":"554b767464696416f0070000","fullpath":"404"}]'
250
+ string: '{"_id":"55b8f304446964641a00000c","created_at":"2015-07-29T15:36:36Z","updated_at":"2015-07-29T15:36:36Z","title":"About
251
+ us","parent_id":"55b8f2ea4469646440000007","position":0,"handle":null,"depth":1,"response_type":"text/html","listed":true,"published":false,"translated_in":["en"],"slug":"about-us","fullpath":"about-us","localized_fullpaths":{"en":"about-us"},"redirect":false,"redirect_url":"","redirect_type":301,"templatized":false,"templatized_from_parent":false,"content_type":null,"is_layout":false,"allow_layout":true,"template":"Locomotive
252
+ rocks. period","editable_elements":[],"seo_title":null,"meta_keywords":null,"meta_description":null}'
279
253
  http_version:
280
- recorded_at: Mon, 11 May 2015 19:36:55 GMT
254
+ recorded_at: Wed, 29 Jul 2015 15:36:36 GMT
281
255
  recorded_with: VCR 2.9.3
@@ -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/"6ba0e226b40adfde2d656d9027a1335f"
26
+ - W/"157eb61d395f237526d11950bbc5a1fa"
29
27
  Cache-Control:
30
28
  - max-age=0, private, must-revalidate
31
29
  X-Request-Id:
32
- - 55fa53e7-0e78-4353-ba72-cde1ccc36bff
30
+ - e1d916af-ece8-40ab-89a0-91fec9678281
33
31
  X-Runtime:
34
- - '0.039202'
35
- Connection:
36
- - keep-alive
37
- Server:
38
- - thin
32
+ - '0.018525'
33
+ Content-Length:
34
+ - '32'
39
35
  body:
40
36
  encoding: UTF-8
41
- string: '{"token":"Z9s7W_-BXyGQsDPFsorr"}'
37
+ string: '{"token":"v6XDp282UyPDeM6DgA-S"}'
42
38
  http_version:
43
- recorded_at: Mon, 04 May 2015 13:51:28 GMT
39
+ recorded_at: Wed, 29 Jul 2015 15:36:34 GMT
44
40
  - request:
45
41
  method: get
46
- uri: http://localhost:3000/locomotive/api/v3/sites.json
42
+ uri: http://localhost:3000/locomotive/api/v3/sites.json?auth_token=v6XDp282UyPDeM6DgA-S
47
43
  body:
48
- encoding: UTF-8
49
- string: auth_token=Z9s7W_-BXyGQsDPFsorr
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
- - Z9s7W_-BXyGQsDPFsorr
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,39 +61,37 @@ http_interactions:
67
61
  headers:
68
62
  Content-Type:
69
63
  - application/json
70
- Content-Length:
71
- - '1021'
72
64
  Etag:
73
- - W/"7447d8e7cdca76d1abcbb9df74b1cab8"
65
+ - W/"6eeec342423fe5777a3bdb54452c56c3"
74
66
  Cache-Control:
75
67
  - max-age=0, private, must-revalidate
76
68
  X-Request-Id:
77
- - 0798d382-b16c-42c0-a00d-d4116b953af6
69
+ - 3c30096b-fb59-43c3-843e-0c2cc371e6b0
78
70
  X-Runtime:
79
- - '0.037419'
80
- Connection:
81
- - keep-alive
82
- Server:
83
- - thin
71
+ - '0.027518'
72
+ Content-Length:
73
+ - '1120'
84
74
  body:
85
75
  encoding: UTF-8
86
- string: '[{"_id":"554779596469644d44010000","created_at":"2015-05-04T13:51:21Z","updated_at":"2015-05-04T13:51:21Z","name":"LocomotiveCMS","handle":"www","seo_title":null,"meta_keywords":null,"meta_description":null,"robots_txt":null,"locales":["en"],"domains":["www.example.com"],"memberships":[{"_id":"554779596469644d44040000","created_at":null,"updated_at":null,"role":"admin","account_id":"554779596469644d44000000","name":"Admin","role_name":"Administrator","email":"admin@locomotivecms.com"}],"timezone":"UTC"},{"_id":"554779596469644d44050000","created_at":"2015-05-04T13:51:21Z","updated_at":"2015-05-04T13:51:21Z","name":"Sample
87
- site","handle":"sample","seo_title":null,"meta_keywords":null,"meta_description":null,"robots_txt":null,"locales":["en"],"domains":["sample.example.com"],"memberships":[{"_id":"554779596469644d44080000","created_at":null,"updated_at":null,"role":"admin","account_id":"554779596469644d44000000","name":"Admin","role_name":"Administrator","email":"admin@locomotivecms.com"}],"timezone":"UTC"}]'
76
+ string: '[{"_id":"55b8f2ea4469646440000002","created_at":"2015-07-29T15:36:10Z","updated_at":"2015-07-29T15:36:10Z","name":"LocomotiveCMS","handle":"www","seo_title":null,"meta_keywords":null,"meta_description":null,"robots_txt":null,"locales":["en"],"domains":["www.example.com"],"memberships":[{"_id":"55b8f2ea4469646440000005","created_at":null,"updated_at":null,"role":"admin","account_id":"55b8f2ea4469646440000000","name":"John
77
+ Doe","role_name":"Administrator","email":"admin@locomotivecms.com"}],"timezone":"UTC","picture_url":null,"picture_thumbnail_url":null},{"_id":"55b8f2ea4469646440000006","created_at":"2015-07-29T15:36:10Z","updated_at":"2015-07-29T15:36:34Z","name":"John
78
+ Doe","handle":"sample","seo_title":null,"meta_keywords":null,"meta_description":null,"robots_txt":null,"locales":["en"],"domains":["sample.example.com"],"memberships":[{"_id":"55b8f2ea4469646440000009","created_at":null,"updated_at":null,"role":"admin","account_id":"55b8f2ea4469646440000000","name":"John
79
+ Doe","role_name":"Administrator","email":"admin@locomotivecms.com"}],"timezone":"UTC","picture_url":null,"picture_thumbnail_url":null}]'
88
80
  http_version:
89
- recorded_at: Mon, 04 May 2015 13:51:28 GMT
81
+ recorded_at: Wed, 29 Jul 2015 15:36:34 GMT
90
82
  - request:
91
83
  method: post
92
84
  uri: http://localhost:3000/locomotive/api/v3/sites.json
93
85
  body:
94
86
  encoding: UTF-8
95
- string: auth_token=Z9s7W_-BXyGQsDPFsorr&site%5Bhandle%5D=acme&site%5Blocales%5D%5B%5D=en&site%5Bname%5D=Acme
87
+ string: auth_token=v6XDp282UyPDeM6DgA-S&site%5Bhandle%5D=acme&site%5Blocales%5D%5B%5D=en&site%5Bname%5D=Acme
96
88
  headers:
97
89
  Accept:
98
90
  - application/json
99
91
  X-Locomotive-Account-Email:
100
92
  - admin@locomotivecms.com
101
93
  X-Locomotive-Account-Token:
102
- - Z9s7W_-BXyGQsDPFsorr
94
+ - v6XDp282UyPDeM6DgA-S
103
95
  Content-Type:
104
96
  - application/x-www-form-urlencoded
105
97
  Accept-Encoding:
@@ -113,40 +105,35 @@ http_interactions:
113
105
  headers:
114
106
  Content-Type:
115
107
  - application/json
116
- Content-Length:
117
- - '482'
118
108
  Etag:
119
- - W/"9ab618d5bc9a66e66ff55a4198096ffc"
109
+ - W/"f825eb243163965cd70aaa8ba669b1f1"
120
110
  Cache-Control:
121
111
  - max-age=0, private, must-revalidate
122
112
  X-Request-Id:
123
- - de7f0ba4-53dc-4f96-98b7-d178e4c601dd
113
+ - 5b0caa6f-bd2c-4cb6-99b2-516b5f3cab6d
124
114
  X-Runtime:
125
- - '0.081937'
126
- Connection:
127
- - keep-alive
128
- Server:
129
- - thin
115
+ - '0.172455'
116
+ Content-Length:
117
+ - '533'
130
118
  body:
131
119
  encoding: UTF-8
132
- string: '{"_id":"554779606469643251250300","created_at":"2015-05-04T13:51:28Z","updated_at":"2015-05-04T13:51:28Z","name":"Acme","handle":"acme","seo_title":null,"meta_keywords":null,"meta_description":null,"robots_txt":null,"locales":["en"],"domains":[],"memberships":[{"_id":"554779606469643251260300","created_at":null,"updated_at":null,"role":"admin","account_id":"554779596469644d44000000","name":"Admin","role_name":"Administrator","email":"admin@locomotivecms.com"}],"timezone":"UTC"}'
120
+ string: '{"_id":"55b8f303446964641a000003","created_at":"2015-07-29T15:36:35Z","updated_at":"2015-07-29T15:36:35Z","name":"Acme","handle":"acme","seo_title":null,"meta_keywords":null,"meta_description":null,"robots_txt":null,"locales":["en"],"domains":[],"memberships":[{"_id":"55b8f303446964641a000004","created_at":null,"updated_at":null,"role":"admin","account_id":"55b8f2ea4469646440000000","name":"John
121
+ Doe","role_name":"Administrator","email":"admin@locomotivecms.com"}],"timezone":"UTC","picture_url":null,"picture_thumbnail_url":null}'
133
122
  http_version:
134
- recorded_at: Mon, 04 May 2015 13:51:28 GMT
123
+ recorded_at: Wed, 29 Jul 2015 15:36:35 GMT
135
124
  - request:
136
125
  method: delete
137
- uri: http://localhost:3000/locomotive/api/v3/sites/554779606469643251250300.json
126
+ uri: http://localhost:3000/locomotive/api/v3/sites/55b8f303446964641a000003.json?auth_token=v6XDp282UyPDeM6DgA-S
138
127
  body:
139
- encoding: UTF-8
140
- string: auth_token=Z9s7W_-BXyGQsDPFsorr
128
+ encoding: US-ASCII
129
+ string: ''
141
130
  headers:
142
131
  Accept:
143
132
  - application/json
144
133
  X-Locomotive-Account-Email:
145
134
  - admin@locomotivecms.com
146
135
  X-Locomotive-Account-Token:
147
- - Z9s7W_-BXyGQsDPFsorr
148
- Content-Type:
149
- - application/x-www-form-urlencoded
136
+ - v6XDp282UyPDeM6DgA-S
150
137
  Accept-Encoding:
151
138
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
152
139
  User-Agent:
@@ -158,23 +145,20 @@ http_interactions:
158
145
  headers:
159
146
  Content-Type:
160
147
  - application/json
161
- Content-Length:
162
- - '482'
163
148
  Etag:
164
- - W/"9ab618d5bc9a66e66ff55a4198096ffc"
149
+ - W/"f825eb243163965cd70aaa8ba669b1f1"
165
150
  Cache-Control:
166
151
  - max-age=0, private, must-revalidate
167
152
  X-Request-Id:
168
- - 101dcbef-6d1f-411e-b3cc-ba34ee6ba351
153
+ - 26885055-03da-4592-b8c3-cbe6ae7a73c0
169
154
  X-Runtime:
170
- - '0.081414'
171
- Connection:
172
- - keep-alive
173
- Server:
174
- - thin
155
+ - '0.184265'
156
+ Content-Length:
157
+ - '533'
175
158
  body:
176
159
  encoding: UTF-8
177
- string: '{"_id":"554779606469643251250300","created_at":"2015-05-04T13:51:28Z","updated_at":"2015-05-04T13:51:28Z","name":"Acme","handle":"acme","seo_title":null,"meta_keywords":null,"meta_description":null,"robots_txt":null,"locales":["en"],"domains":[],"memberships":[{"_id":"554779606469643251260300","created_at":null,"updated_at":null,"role":"admin","account_id":"554779596469644d44000000","name":"Admin","role_name":"Administrator","email":"admin@locomotivecms.com"}],"timezone":"UTC"}'
160
+ string: '{"_id":"55b8f303446964641a000003","created_at":"2015-07-29T15:36:35Z","updated_at":"2015-07-29T15:36:35Z","name":"Acme","handle":"acme","seo_title":null,"meta_keywords":null,"meta_description":null,"robots_txt":null,"locales":["en"],"domains":[],"memberships":[{"_id":"55b8f303446964641a000004","created_at":null,"updated_at":null,"role":"admin","account_id":"55b8f2ea4469646440000000","name":"John
161
+ Doe","role_name":"Administrator","email":"admin@locomotivecms.com"}],"timezone":"UTC","picture_url":null,"picture_thumbnail_url":null}'
178
162
  http_version:
179
- recorded_at: Mon, 04 May 2015 13:51:28 GMT
163
+ recorded_at: Wed, 29 Jul 2015 15:36:35 GMT
180
164
  recorded_with: VCR 2.9.3