locomotivecms_coal 1.0.0.rc1 → 1.0.0.rc2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: aff31f15a22c2acfc6143964f04adc305cb78866
4
- data.tar.gz: d4a4f954933fe0f8df28cc07a6ce2d4a2809a83a
3
+ metadata.gz: f623088771075ccca2ad61259e5170f61f75c44e
4
+ data.tar.gz: 173c0034dacc30872ba8e2b3c0ffbc3b8e294712
5
5
  SHA512:
6
- metadata.gz: dd1eda0840c268ca473156602d10d7a3cd7c5b1823e3f9312bc8ca9b1dc3b766e7851bad8e304645e6c69c564316abe3bdaeaec6770df4bc2785cd0eb6e6d1a6
7
- data.tar.gz: 3cec4549cf778fdc345b1ffbd3ea95a8ef7091a7732ce86270ebcb96efed470c3b726b083ff82b0d60f14dba85374dfe11f94015566a67528a1eee89a8750732
6
+ metadata.gz: 55c008cc84d80cdd9152ee0e544336d9a3251fd5284b2983715b723b2b8e1457505b92160aed65a3d146cc5bc0e4e7ad9a0e71ee39609a6225530cb6bdf75177
7
+ data.tar.gz: 4e708dbc271c7c7f595674fb53b68feab67e23ba050585a9b3f961ed63cf4e3fd699602ac6bbdb2dd24403018cd705e01d68dde7d8e794ffb4d2c8173cbc10cf
data/Gemfile CHANGED
@@ -21,5 +21,5 @@ group :test do
21
21
  end
22
22
 
23
23
  platform :ruby do
24
- ruby '2.2.2'
24
+ ruby '2.2.3'
25
25
  end
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- locomotivecms_coal (1.0.0.rc1)
4
+ locomotivecms_coal (1.0.0.rc2)
5
5
  activesupport (~> 4.2.3)
6
6
  faraday (~> 0.9.1)
7
7
  faraday_middleware (~> 0.10.0)
@@ -9,7 +9,7 @@ PATH
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- activesupport (4.2.4)
12
+ activesupport (4.2.5)
13
13
  i18n (~> 0.7)
14
14
  json (~> 1.7, >= 1.7.7)
15
15
  minitest (~> 5.1)
@@ -34,7 +34,7 @@ GEM
34
34
  docile (1.1.5)
35
35
  domain_name (0.5.24)
36
36
  unf (>= 0.0.5, < 1.0.0)
37
- faraday (0.9.1)
37
+ faraday (0.9.2)
38
38
  multipart-post (>= 1.2, < 3)
39
39
  faraday_middleware (0.10.0)
40
40
  faraday (>= 0.7.4, < 0.10)
@@ -47,7 +47,7 @@ GEM
47
47
  rspec (>= 2.0, < 4.0)
48
48
  method_source (0.8.2)
49
49
  mime-types (2.6.2)
50
- minitest (5.8.1)
50
+ minitest (5.8.2)
51
51
  multi_json (1.11.2)
52
52
  multipart-post (2.0.0)
53
53
  netrc (0.10.3)
@@ -21,6 +21,7 @@ module Locomotive::Coal
21
21
  if klass = case status.to_i
22
22
  when 401 then Locomotive::Coal::UnauthorizedError
23
23
  when 404 then Locomotive::Coal::UnknownResourceError
24
+ when 413 then Locomotive::Coal::FileTooBigError
24
25
  when 422 then Locomotive::Coal::InvalidResourceError
25
26
  when 429 then Locomotive::Coal::TooManyRequestsError
26
27
  when 500 then Locomotive::Coal::ServerSideError
@@ -46,6 +47,17 @@ module Locomotive::Coal
46
47
  class ServerSideError < Error; end
47
48
  class TimeoutError < Error; end
48
49
 
50
+
51
+ class FileTooBigError < Error
52
+
53
+ private
54
+
55
+ def build_message
56
+ 'File too big for the server'
57
+ end
58
+
59
+ end
60
+
49
61
  class InvalidResourceError < Error
50
62
 
51
63
  private
@@ -3,6 +3,6 @@
3
3
  # 1.0.0-alpha < 1.0.0-alpha.1 < 1.0.0-alpha.beta < 1.0.0-beta < 1.0.0-beta.2 < 1.0.0-beta.11 < 1.0.0-rc.1 < 1.0.0
4
4
  module Locomotive
5
5
  module Coal
6
- VERSION = '1.0.0.rc1'
6
+ VERSION = '1.0.0.rc2'
7
7
  end
8
8
  end
@@ -23,23 +23,23 @@ http_interactions:
23
23
  Content-Type:
24
24
  - application/json
25
25
  Etag:
26
- - W/"3b6ceb0d2ba232a8d48dd0dc8f702ef4"
26
+ - W/"120917583ae3f64355d682b690f7cb40"
27
27
  Cache-Control:
28
28
  - max-age=0, private, must-revalidate
29
29
  X-Request-Id:
30
- - 59c588e9-d44c-4288-9ff8-5797795137ee
30
+ - 563b037a-95ba-4ba9-847e-98262d3fc998
31
31
  X-Runtime:
32
- - '0.014395'
32
+ - '0.016689'
33
33
  Content-Length:
34
34
  - '32'
35
35
  body:
36
36
  encoding: UTF-8
37
- string: '{"token":"xM_3r1zn2aQAinPFqSvd"}'
37
+ string: '{"token":"E2aoXzMxkFsLnCcmCcc_"}'
38
38
  http_version:
39
- recorded_at: Tue, 11 Aug 2015 13:12:34 GMT
39
+ recorded_at: Sat, 21 Nov 2015 22:31:01 GMT
40
40
  - request:
41
41
  method: get
42
- uri: http://localhost:3000/locomotive/api/v3/sites.json?auth_token=xM_3r1zn2aQAinPFqSvd
42
+ uri: http://localhost:3000/locomotive/api/v3/translations.json?auth_token=E2aoXzMxkFsLnCcmCcc_
43
43
  body:
44
44
  encoding: US-ASCII
45
45
  string: ''
@@ -49,7 +49,9 @@ http_interactions:
49
49
  X-Locomotive-Account-Email:
50
50
  - admin@locomotivecms.com
51
51
  X-Locomotive-Account-Token:
52
- - xM_3r1zn2aQAinPFqSvd
52
+ - E2aoXzMxkFsLnCcmCcc_
53
+ X-Locomotive-Site-Handle:
54
+ - sample
53
55
  Accept-Encoding:
54
56
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
55
57
  User-Agent:
@@ -62,24 +64,23 @@ http_interactions:
62
64
  Content-Type:
63
65
  - application/json
64
66
  Etag:
65
- - W/"e98c3f1e3ad87ab3eb5f6a4ca52de628"
67
+ - W/"d751713988987e9331980363e24189ce"
66
68
  Cache-Control:
67
69
  - max-age=0, private, must-revalidate
68
70
  X-Request-Id:
69
- - 10523d85-ba59-4bc2-93f5-f810fbf1d63e
71
+ - 2c9d7aea-563d-47c0-9d1b-6d1bf383d928
70
72
  X-Runtime:
71
- - '0.025750'
73
+ - '0.024363'
72
74
  Content-Length:
73
- - '1114'
75
+ - '2'
74
76
  body:
75
77
  encoding: UTF-8
76
- string: '[{"_id":"55c9f4a387f6432a1e000002","created_at":"2015-08-11T13:12:03Z","updated_at":"2015-08-11T13:12:04Z","name":"LocomotiveCMS","handle":"www","seo_title":null,"meta_keywords":null,"meta_description":null,"robots_txt":null,"locales":["en"],"domains":["www.example.com"],"memberships":[{"_id":"55c9f4a487f6432a1e000005","created_at":null,"updated_at":null,"role":"admin","account_id":"55c9f4a387f6432a1e000000","name":"Admin","role_name":"Administrator","email":"admin@locomotivecms.com"}],"timezone":"UTC","picture_url":null,"picture_thumbnail_url":null},{"_id":"55c9f4a487f6432a1e000006","created_at":"2015-08-11T13:12:04Z","updated_at":"2015-08-11T13:12:34Z","name":"John
77
- Doe","handle":"sample","seo_title":null,"meta_keywords":null,"meta_description":null,"robots_txt":null,"locales":["en"],"domains":["sample.example.com"],"memberships":[{"_id":"55c9f4a487f6432a1e000009","created_at":null,"updated_at":null,"role":"admin","account_id":"55c9f4a387f6432a1e000000","name":"Admin","role_name":"Administrator","email":"admin@locomotivecms.com"}],"timezone":"UTC","picture_url":null,"picture_thumbnail_url":null}]'
78
+ string: "[]"
78
79
  http_version:
79
- recorded_at: Tue, 11 Aug 2015 13:12:35 GMT
80
+ recorded_at: Sat, 21 Nov 2015 22:31:01 GMT
80
81
  - request:
81
82
  method: get
82
- uri: http://localhost:3000/locomotive/api/v3/version.json?auth_token=xM_3r1zn2aQAinPFqSvd&email=admin@locomotivecms.com&handle=&password=locomotive&token=xM_3r1zn2aQAinPFqSvd
83
+ uri: http://localhost:3000/locomotive/api/v3/theme_assets.json?auth_token=E2aoXzMxkFsLnCcmCcc_
83
84
  body:
84
85
  encoding: US-ASCII
85
86
  string: ''
@@ -89,7 +90,9 @@ http_interactions:
89
90
  X-Locomotive-Account-Email:
90
91
  - admin@locomotivecms.com
91
92
  X-Locomotive-Account-Token:
92
- - xM_3r1zn2aQAinPFqSvd
93
+ - E2aoXzMxkFsLnCcmCcc_
94
+ X-Locomotive-Site-Handle:
95
+ - sample
93
96
  Accept-Encoding:
94
97
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
95
98
  User-Agent:
@@ -102,60 +105,66 @@ http_interactions:
102
105
  Content-Type:
103
106
  - application/json
104
107
  Etag:
105
- - W/"4f482497f0c1e5f67e0c6bc908159a8b"
108
+ - W/"d751713988987e9331980363e24189ce"
106
109
  Cache-Control:
107
110
  - max-age=0, private, must-revalidate
108
111
  X-Request-Id:
109
- - 9c6d68a3-6dc0-4fec-a59c-c8367e437831
112
+ - 4f4a42ff-65a9-4b52-b5fe-a3b2f7d07a79
110
113
  X-Runtime:
111
- - '0.011870'
114
+ - '0.022396'
112
115
  Content-Length:
113
- - '26'
116
+ - '2'
114
117
  body:
115
118
  encoding: UTF-8
116
- string: '{"engine":"3.0.0-alpha.3"}'
119
+ string: "[]"
117
120
  http_version:
118
- recorded_at: Tue, 11 Aug 2015 13:12:35 GMT
121
+ recorded_at: Sat, 21 Nov 2015 22:31:01 GMT
119
122
  - request:
120
- method: post
121
- uri: http://www.example.com:3000/locomotive/api/v3/tokens.json
123
+ method: get
124
+ uri: http://localhost:3000/locomotive/api/v3/snippets.json?auth_token=E2aoXzMxkFsLnCcmCcc_
122
125
  body:
123
- encoding: UTF-8
124
- string: email=admin%40locomotivecms.com&password=locomotive
126
+ encoding: US-ASCII
127
+ string: ''
125
128
  headers:
126
129
  Accept:
127
130
  - application/json
128
- Content-Type:
129
- - application/x-www-form-urlencoded
131
+ X-Locomotive-Account-Email:
132
+ - admin@locomotivecms.com
133
+ X-Locomotive-Account-Token:
134
+ - E2aoXzMxkFsLnCcmCcc_
135
+ X-Locomotive-Site-Handle:
136
+ - sample
137
+ X-Locomotive-Locale:
138
+ - ''
130
139
  Accept-Encoding:
131
140
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
132
141
  User-Agent:
133
142
  - Ruby
134
143
  response:
135
144
  status:
136
- code: 201
137
- message: Created
145
+ code: 200
146
+ message: OK
138
147
  headers:
139
148
  Content-Type:
140
149
  - application/json
141
150
  Etag:
142
- - W/"3b6ceb0d2ba232a8d48dd0dc8f702ef4"
151
+ - W/"d751713988987e9331980363e24189ce"
143
152
  Cache-Control:
144
153
  - max-age=0, private, must-revalidate
145
154
  X-Request-Id:
146
- - f5f8b833-5f1d-432b-81d2-e843afd79f9e
155
+ - 9c2b1a33-ce62-4cc8-8b5e-d6e0a7c3a2fa
147
156
  X-Runtime:
148
- - '0.018178'
157
+ - '0.025010'
149
158
  Content-Length:
150
- - '32'
159
+ - '2'
151
160
  body:
152
161
  encoding: UTF-8
153
- string: '{"token":"xM_3r1zn2aQAinPFqSvd"}'
162
+ string: "[]"
154
163
  http_version:
155
- recorded_at: Tue, 11 Aug 2015 13:12:35 GMT
164
+ recorded_at: Sat, 21 Nov 2015 22:31:01 GMT
156
165
  - request:
157
166
  method: get
158
- uri: http://www.example.com:3000/locomotive/api/v3/sites.json?auth_token=xM_3r1zn2aQAinPFqSvd
167
+ uri: http://localhost:3000/locomotive/api/v3/my_account.json?auth_token=E2aoXzMxkFsLnCcmCcc_
159
168
  body:
160
169
  encoding: US-ASCII
161
170
  string: ''
@@ -165,7 +174,7 @@ http_interactions:
165
174
  X-Locomotive-Account-Email:
166
175
  - admin@locomotivecms.com
167
176
  X-Locomotive-Account-Token:
168
- - xM_3r1zn2aQAinPFqSvd
177
+ - E2aoXzMxkFsLnCcmCcc_
169
178
  Accept-Encoding:
170
179
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
171
180
  User-Agent:
@@ -178,24 +187,24 @@ http_interactions:
178
187
  Content-Type:
179
188
  - application/json
180
189
  Etag:
181
- - W/"e98c3f1e3ad87ab3eb5f6a4ca52de628"
190
+ - W/"aa5b3af2d3ff7e0d53fd68d1d077876d"
182
191
  Cache-Control:
183
192
  - max-age=0, private, must-revalidate
184
193
  X-Request-Id:
185
- - 73104d8b-983d-4416-8952-c6c99330ed26
194
+ - 730e4b17-7029-4dd0-a64b-b148b029e140
186
195
  X-Runtime:
187
- - '0.023492'
196
+ - '0.018450'
188
197
  Content-Length:
189
- - '1114'
198
+ - '264'
190
199
  body:
191
200
  encoding: UTF-8
192
- string: '[{"_id":"55c9f4a387f6432a1e000002","created_at":"2015-08-11T13:12:03Z","updated_at":"2015-08-11T13:12:04Z","name":"LocomotiveCMS","handle":"www","seo_title":null,"meta_keywords":null,"meta_description":null,"robots_txt":null,"locales":["en"],"domains":["www.example.com"],"memberships":[{"_id":"55c9f4a487f6432a1e000005","created_at":null,"updated_at":null,"role":"admin","account_id":"55c9f4a387f6432a1e000000","name":"Admin","role_name":"Administrator","email":"admin@locomotivecms.com"}],"timezone":"UTC","picture_url":null,"picture_thumbnail_url":null},{"_id":"55c9f4a487f6432a1e000006","created_at":"2015-08-11T13:12:04Z","updated_at":"2015-08-11T13:12:34Z","name":"John
193
- Doe","handle":"sample","seo_title":null,"meta_keywords":null,"meta_description":null,"robots_txt":null,"locales":["en"],"domains":["sample.example.com"],"memberships":[{"_id":"55c9f4a487f6432a1e000009","created_at":null,"updated_at":null,"role":"admin","account_id":"55c9f4a387f6432a1e000000","name":"Admin","role_name":"Administrator","email":"admin@locomotivecms.com"}],"timezone":"UTC","picture_url":null,"picture_thumbnail_url":null}]'
201
+ string: '{"_id":"5650f08c87f6436c94000000","created_at":"2015-11-21T22:30:36Z","updated_at":"2015-11-21T22:30:57Z","name":"John
202
+ Doe","email":"admin@locomotivecms.com","locale":"en","api_key":"d49cd50f6f0d2b163f48fc73cb249f0244c37074","super_admin":false,"local_admin":true}'
194
203
  http_version:
195
- recorded_at: Tue, 11 Aug 2015 13:12:35 GMT
204
+ recorded_at: Sat, 21 Nov 2015 22:31:01 GMT
196
205
  - request:
197
206
  method: get
198
- uri: http://localhost:3000/locomotive/api/v3/my_account.json?auth_token=xM_3r1zn2aQAinPFqSvd
207
+ uri: http://localhost:3000/locomotive/api/v3/version.json?auth_token=E2aoXzMxkFsLnCcmCcc_&email=admin@locomotivecms.com&handle&password=locomotive&token=E2aoXzMxkFsLnCcmCcc_
199
208
  body:
200
209
  encoding: US-ASCII
201
210
  string: ''
@@ -205,7 +214,7 @@ http_interactions:
205
214
  X-Locomotive-Account-Email:
206
215
  - admin@locomotivecms.com
207
216
  X-Locomotive-Account-Token:
208
- - xM_3r1zn2aQAinPFqSvd
217
+ - E2aoXzMxkFsLnCcmCcc_
209
218
  Accept-Encoding:
210
219
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
211
220
  User-Agent:
@@ -218,66 +227,60 @@ http_interactions:
218
227
  Content-Type:
219
228
  - application/json
220
229
  Etag:
221
- - W/"5d81ea9f3bdc8f0d8d64e6987d114b29"
230
+ - W/"a29b8ca75f03b52361cf5f1f8ebf001a"
222
231
  Cache-Control:
223
232
  - max-age=0, private, must-revalidate
224
233
  X-Request-Id:
225
- - 075f9471-a109-4c39-bcd6-554672c3e8ef
234
+ - b4b489bf-7d9d-4afe-b4af-e59d5ad0de30
226
235
  X-Runtime:
227
- - '0.015601'
236
+ - '0.044076'
228
237
  Content-Length:
229
- - '261'
238
+ - '22'
230
239
  body:
231
240
  encoding: UTF-8
232
- string: '{"_id":"55c9f4a387f6432a1e000000","created_at":"2015-08-11T13:12:03Z","updated_at":"2015-08-11T13:12:03Z","name":"Admin","email":"admin@locomotivecms.com","locale":"en","api_key":"d49cd50f6f0d2b163f48fc73cb249f0244c37074","super_admin":false,"local_admin":true}'
241
+ string: '{"engine":"3.0.0.rc3"}'
233
242
  http_version:
234
- recorded_at: Tue, 11 Aug 2015 13:12:35 GMT
243
+ recorded_at: Sat, 21 Nov 2015 22:31:01 GMT
235
244
  - request:
236
- method: get
237
- uri: http://localhost:3000/locomotive/api/v3/snippets.json?auth_token=xM_3r1zn2aQAinPFqSvd
245
+ method: post
246
+ uri: http://www.example.com:3000/locomotive/api/v3/tokens.json
238
247
  body:
239
- encoding: US-ASCII
240
- string: ''
248
+ encoding: UTF-8
249
+ string: email=admin%40locomotivecms.com&password=locomotive
241
250
  headers:
242
251
  Accept:
243
252
  - application/json
244
- X-Locomotive-Account-Email:
245
- - admin@locomotivecms.com
246
- X-Locomotive-Account-Token:
247
- - xM_3r1zn2aQAinPFqSvd
248
- X-Locomotive-Site-Handle:
249
- - sample
250
- X-Locomotive-Locale:
251
- - ''
253
+ Content-Type:
254
+ - application/x-www-form-urlencoded
252
255
  Accept-Encoding:
253
256
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
254
257
  User-Agent:
255
258
  - Ruby
256
259
  response:
257
260
  status:
258
- code: 200
259
- message: OK
261
+ code: 201
262
+ message: Created
260
263
  headers:
261
264
  Content-Type:
262
265
  - application/json
263
266
  Etag:
264
- - W/"d751713988987e9331980363e24189ce"
267
+ - W/"120917583ae3f64355d682b690f7cb40"
265
268
  Cache-Control:
266
269
  - max-age=0, private, must-revalidate
267
270
  X-Request-Id:
268
- - aa3d08aa-2ed1-4780-986b-a246c8e3ff90
271
+ - 59981259-cff3-4b83-bc7f-49b2d4ab3596
269
272
  X-Runtime:
270
- - '0.031246'
273
+ - '0.016983'
271
274
  Content-Length:
272
- - '2'
275
+ - '32'
273
276
  body:
274
277
  encoding: UTF-8
275
- string: "[]"
278
+ string: '{"token":"E2aoXzMxkFsLnCcmCcc_"}'
276
279
  http_version:
277
- recorded_at: Tue, 11 Aug 2015 13:12:35 GMT
280
+ recorded_at: Sat, 21 Nov 2015 22:31:01 GMT
278
281
  - request:
279
282
  method: get
280
- uri: http://localhost:3000/locomotive/api/v3/theme_assets.json?auth_token=xM_3r1zn2aQAinPFqSvd
283
+ uri: http://www.example.com:3000/locomotive/api/v3/sites.json?auth_token=E2aoXzMxkFsLnCcmCcc_
281
284
  body:
282
285
  encoding: US-ASCII
283
286
  string: ''
@@ -287,9 +290,7 @@ http_interactions:
287
290
  X-Locomotive-Account-Email:
288
291
  - admin@locomotivecms.com
289
292
  X-Locomotive-Account-Token:
290
- - xM_3r1zn2aQAinPFqSvd
291
- X-Locomotive-Site-Handle:
292
- - sample
293
+ - E2aoXzMxkFsLnCcmCcc_
293
294
  Accept-Encoding:
294
295
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
295
296
  User-Agent:
@@ -302,23 +303,26 @@ http_interactions:
302
303
  Content-Type:
303
304
  - application/json
304
305
  Etag:
305
- - W/"d751713988987e9331980363e24189ce"
306
+ - W/"ab03a9f4d3dea863ce5151f3c1615c68"
306
307
  Cache-Control:
307
308
  - max-age=0, private, must-revalidate
308
309
  X-Request-Id:
309
- - a861cc5a-dfaa-480e-b4e9-9a74c7ce91e5
310
+ - 96107ad0-fbfb-4936-ab0f-ba1fa6a97b29
310
311
  X-Runtime:
311
- - '0.040103'
312
+ - '0.052228'
312
313
  Content-Length:
313
- - '2'
314
+ - '1548'
314
315
  body:
315
316
  encoding: UTF-8
316
- string: "[]"
317
+ string: '[{"_id":"5650f08c87f6436c94000002","created_at":"2015-11-21T22:30:36Z","updated_at":"2015-11-21T22:30:36Z","name":"LocomotiveCMS","handle":"www","seo_title":null,"meta_keywords":null,"meta_description":null,"robots_txt":null,"cache_enabled":false,"locales":["en"],"domains":["www.example.com"],"memberships":[{"_id":"5650f08c87f6436c94000005","created_at":null,"updated_at":null,"role":"admin","account_id":"5650f08c87f6436c94000000","name":"John
318
+ Doe","role_name":"Administrator","email":"admin@locomotivecms.com"}],"timezone":"UTC","picture_url":null,"content_version":1448145036,"template_version":1448145036,"picture_thumbnail_url":null,"preview_url":"http://www.example.com:3000/locomotive/www/preview","sign_in_url":"http://www.example.com:3000/locomotive/sign_in"},{"_id":"5650f08c87f6436c94000006","created_at":"2015-11-21T22:30:36Z","updated_at":"2015-11-21T22:31:01Z","name":"Sample
319
+ site","handle":"sample","seo_title":null,"meta_keywords":null,"meta_description":null,"robots_txt":null,"cache_enabled":false,"locales":["en"],"domains":["sample.example.com"],"memberships":[{"_id":"5650f08c87f6436c94000009","created_at":null,"updated_at":null,"role":"admin","account_id":"5650f08c87f6436c94000000","name":"John
320
+ Doe","role_name":"Administrator","email":"admin@locomotivecms.com"}],"timezone":"UTC","picture_url":null,"content_version":1448145061,"template_version":1448145061,"picture_thumbnail_url":null,"preview_url":"http://www.example.com:3000/locomotive/sample/preview","sign_in_url":"http://www.example.com:3000/locomotive/sign_in"}]'
317
321
  http_version:
318
- recorded_at: Tue, 11 Aug 2015 13:12:35 GMT
322
+ recorded_at: Sat, 21 Nov 2015 22:31:01 GMT
319
323
  - request:
320
324
  method: get
321
- uri: http://localhost:3000/locomotive/api/v3/translations.json?auth_token=xM_3r1zn2aQAinPFqSvd
325
+ uri: http://localhost:3000/locomotive/api/v3/sites.json?auth_token=E2aoXzMxkFsLnCcmCcc_
322
326
  body:
323
327
  encoding: US-ASCII
324
328
  string: ''
@@ -328,9 +332,7 @@ http_interactions:
328
332
  X-Locomotive-Account-Email:
329
333
  - admin@locomotivecms.com
330
334
  X-Locomotive-Account-Token:
331
- - xM_3r1zn2aQAinPFqSvd
332
- X-Locomotive-Site-Handle:
333
- - sample
335
+ - E2aoXzMxkFsLnCcmCcc_
334
336
  Accept-Encoding:
335
337
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
336
338
  User-Agent:
@@ -343,53 +345,21 @@ http_interactions:
343
345
  Content-Type:
344
346
  - application/json
345
347
  Etag:
346
- - W/"d751713988987e9331980363e24189ce"
348
+ - W/"c57af570058b42e9dc527096fba1f9ff"
347
349
  Cache-Control:
348
350
  - max-age=0, private, must-revalidate
349
351
  X-Request-Id:
350
- - e1df8afd-b02b-428e-8459-4f228dc57456
352
+ - b0711a74-6e7c-4504-ba08-add55f08ef4a
351
353
  X-Runtime:
352
- - '0.046831'
354
+ - '0.054612'
353
355
  Content-Length:
354
- - '2'
355
- body:
356
- encoding: UTF-8
357
- string: "[]"
358
- http_version:
359
- recorded_at: Tue, 11 Aug 2015 13:12:35 GMT
360
- - request:
361
- method: post
362
- uri: http://localhost:3000/tokens.json
363
- body:
364
- encoding: UTF-8
365
- string: email=admin%40locomotivecms.com&password=locomotive
366
- headers:
367
- Accept:
368
- - application/json
369
- Content-Type:
370
- - application/x-www-form-urlencoded
371
- Accept-Encoding:
372
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
373
- User-Agent:
374
- - Ruby
375
- response:
376
- status:
377
- code: 404
378
- message: Not Found
379
- headers:
380
- Content-Type:
381
- - text/html
382
- Cache-Control:
383
- - no-cache
384
- X-Request-Id:
385
- - 2b70fa6c-5d9c-42f3-b0f8-45ea224f63bb
386
- X-Runtime:
387
- - '0.015924'
388
- Transfer-Encoding:
389
- - chunked
356
+ - '1524'
390
357
  body:
391
358
  encoding: UTF-8
392
- string: Hi, we are sorry but no site was found.
359
+ string: '[{"_id":"5650f08c87f6436c94000002","created_at":"2015-11-21T22:30:36Z","updated_at":"2015-11-21T22:30:36Z","name":"LocomotiveCMS","handle":"www","seo_title":null,"meta_keywords":null,"meta_description":null,"robots_txt":null,"cache_enabled":false,"locales":["en"],"domains":["www.example.com"],"memberships":[{"_id":"5650f08c87f6436c94000005","created_at":null,"updated_at":null,"role":"admin","account_id":"5650f08c87f6436c94000000","name":"John
360
+ Doe","role_name":"Administrator","email":"admin@locomotivecms.com"}],"timezone":"UTC","picture_url":null,"content_version":1448145036,"template_version":1448145036,"picture_thumbnail_url":null,"preview_url":"http://localhost:3000/locomotive/www/preview","sign_in_url":"http://localhost:3000/locomotive/sign_in"},{"_id":"5650f08c87f6436c94000006","created_at":"2015-11-21T22:30:36Z","updated_at":"2015-11-21T22:31:01Z","name":"Sample
361
+ site","handle":"sample","seo_title":null,"meta_keywords":null,"meta_description":null,"robots_txt":null,"cache_enabled":false,"locales":["en"],"domains":["sample.example.com"],"memberships":[{"_id":"5650f08c87f6436c94000009","created_at":null,"updated_at":null,"role":"admin","account_id":"5650f08c87f6436c94000000","name":"John
362
+ Doe","role_name":"Administrator","email":"admin@locomotivecms.com"}],"timezone":"UTC","picture_url":null,"content_version":1448145061,"template_version":1448145061,"picture_thumbnail_url":null,"preview_url":"http://localhost:3000/locomotive/sample/preview","sign_in_url":"http://localhost:3000/locomotive/sign_in"}]'
393
363
  http_version:
394
- recorded_at: Wed, 12 Aug 2015 22:47:38 GMT
364
+ recorded_at: Sat, 21 Nov 2015 22:31:01 GMT
395
365
  recorded_with: VCR 2.9.3