poptart 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/version.rb +1 -1
- data/spec/requests/answering_survey_questions_spec.rb +2 -2
- data/spec/vcr/answering/survey_questions_answers_a_survey_question.yml +3674 -719
- data/spec/vcr/answering/survey_questions_creates_and_returns_a_random_question_survey.yml +106 -77
- data/spec/vcr/answering/survey_questions_creates_and_returns_an_empty_survey.yml +34 -35
- data/spec/vcr/answering/survey_questions_finds_survey_question_for_id.yml +104 -78
- data/spec/vcr/poptart/root/returns_survey_links.yml +5 -5
- data/spec/vcr/user/management_creates_a_user.yml +20 -20
- data/spec/vcr/user/management_returns_a_user.yml +40 -40
- metadata +2 -14
- data/spec/vcr/poptart/user/answers_a_survey_question.yml +0 -1580
- data/spec/vcr/poptart/user/creates_a_user.yml +0 -135
- data/spec/vcr/poptart/user/creates_and_returns_a_random_question_survey.yml +0 -341
- data/spec/vcr/poptart/user/creates_and_returns_an_empty_survey.yml +0 -272
- data/spec/vcr/poptart/user/finds_survey_question_for_id.yml +0 -327
- data/spec/vcr/poptart/user/returns_a_user.yml +0 -267
@@ -37,13 +37,13 @@ http_interactions:
|
|
37
37
|
Cache-Control:
|
38
38
|
- max-age=0, private, must-revalidate
|
39
39
|
X-Request-Id:
|
40
|
-
-
|
40
|
+
- df0f3b6d-aeeb-42af-a214-5af9095da328
|
41
41
|
X-Runtime:
|
42
|
-
- '0.
|
42
|
+
- '0.004978'
|
43
43
|
Server:
|
44
|
-
- WEBrick/1.3.1 (Ruby/2.1.
|
44
|
+
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
45
45
|
Date:
|
46
|
-
-
|
46
|
+
- Sat, 05 Jul 2014 21:24:17 GMT
|
47
47
|
Content-Length:
|
48
48
|
- '305'
|
49
49
|
Connection:
|
@@ -68,7 +68,7 @@ http_interactions:
|
|
68
68
|
}
|
69
69
|
}
|
70
70
|
http_version:
|
71
|
-
recorded_at:
|
71
|
+
recorded_at: Sat, 05 Jul 2014 21:24:17 GMT
|
72
72
|
- request:
|
73
73
|
method: post
|
74
74
|
uri: http://localhost:3000/api/users
|
@@ -102,42 +102,41 @@ http_interactions:
|
|
102
102
|
Content-Type:
|
103
103
|
- application/json; charset=utf-8
|
104
104
|
Etag:
|
105
|
-
- '"
|
105
|
+
- '"2772170e3956529c7198f466680c1a23"'
|
106
106
|
Cache-Control:
|
107
107
|
- max-age=0, private, must-revalidate
|
108
108
|
X-Request-Id:
|
109
|
-
-
|
109
|
+
- 8310ee2c-16be-49ad-acec-81fa8d7ea25a
|
110
110
|
X-Runtime:
|
111
|
-
- '0.
|
111
|
+
- '0.006521'
|
112
112
|
Server:
|
113
|
-
- WEBrick/1.3.1 (Ruby/2.1.
|
113
|
+
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
114
114
|
Date:
|
115
|
-
-
|
115
|
+
- Sat, 05 Jul 2014 21:24:17 GMT
|
116
116
|
Content-Length:
|
117
|
-
- '
|
117
|
+
- '132'
|
118
118
|
Connection:
|
119
119
|
- Keep-Alive
|
120
120
|
body:
|
121
121
|
encoding: UTF-8
|
122
122
|
string: |-
|
123
123
|
{
|
124
|
-
"id":
|
124
|
+
"id": 325,
|
125
125
|
"external_user_id": 42,
|
126
|
-
"token": "38d7d61cc18a56e2c3319db6aa17d8695215db9a8b37a160b3458ba3f2bdd28b8bd25abfea8c133941623bc358e0e2ee42313d598e07a97ac889449279d7b61d",
|
127
126
|
"_links": {
|
128
127
|
"self": {
|
129
|
-
"href": "http://localhost:3000/api/users/
|
128
|
+
"href": "http://localhost:3000/api/users/325"
|
130
129
|
}
|
131
130
|
}
|
132
131
|
}
|
133
132
|
http_version:
|
134
|
-
recorded_at:
|
133
|
+
recorded_at: Sat, 05 Jul 2014 21:24:17 GMT
|
135
134
|
- request:
|
136
135
|
method: post
|
137
136
|
uri: http://localhost:3000/api/surveys?random=true
|
138
137
|
body:
|
139
138
|
encoding: UTF-8
|
140
|
-
string: '{"survey":{"user_id":
|
139
|
+
string: '{"survey":{"user_id":325}}'
|
141
140
|
headers:
|
142
141
|
User-Agent:
|
143
142
|
- Faraday v0.9.0
|
@@ -165,166 +164,193 @@ http_interactions:
|
|
165
164
|
Content-Type:
|
166
165
|
- application/json; charset=utf-8
|
167
166
|
Etag:
|
168
|
-
- '"
|
167
|
+
- '"80ca94882419640dffc7637d1dd6721b"'
|
169
168
|
Cache-Control:
|
170
169
|
- max-age=0, private, must-revalidate
|
171
170
|
X-Request-Id:
|
172
|
-
-
|
171
|
+
- 5a9e667a-1c6a-42d0-908e-8cf5977e2d4e
|
173
172
|
X-Runtime:
|
174
|
-
- '0.
|
173
|
+
- '0.044858'
|
175
174
|
Server:
|
176
|
-
- WEBrick/1.3.1 (Ruby/2.1.
|
175
|
+
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
177
176
|
Date:
|
178
|
-
-
|
177
|
+
- Sat, 05 Jul 2014 21:24:17 GMT
|
179
178
|
Content-Length:
|
180
|
-
- '
|
179
|
+
- '4407'
|
181
180
|
Connection:
|
182
181
|
- Keep-Alive
|
183
182
|
body:
|
184
183
|
encoding: UTF-8
|
185
184
|
string: |-
|
186
185
|
{
|
187
|
-
"id":
|
188
|
-
"user_id":
|
186
|
+
"id": 275,
|
187
|
+
"user_id": 325,
|
188
|
+
"_links": {
|
189
|
+
"self": {
|
190
|
+
"href": "http://localhost:3000/api/surveys/275"
|
191
|
+
},
|
192
|
+
"submit": {
|
193
|
+
"href": "http://localhost:3000/api/surveys/275/survey_questions"
|
194
|
+
}
|
195
|
+
},
|
189
196
|
"survey_questions": [
|
190
197
|
{
|
191
|
-
"id":
|
192
|
-
"text": "
|
193
|
-
"type": "
|
198
|
+
"id": 1001,
|
199
|
+
"text": "How do you feel right now?",
|
200
|
+
"type": "range",
|
194
201
|
"responses": [
|
195
|
-
"
|
196
|
-
"
|
202
|
+
"0",
|
203
|
+
"10"
|
197
204
|
],
|
205
|
+
"answer": null,
|
198
206
|
"freeform": false,
|
199
207
|
"_links": {
|
200
208
|
"self": {
|
201
|
-
"href": "http://localhost:3000/api/surveys/
|
209
|
+
"href": "http://localhost:3000/api/surveys/275/survey_questions/1001"
|
202
210
|
},
|
203
211
|
"survey": {
|
204
|
-
"href": "http://localhost:3000/api/surveys/
|
212
|
+
"href": "http://localhost:3000/api/surveys/275"
|
205
213
|
},
|
206
214
|
"create": {
|
207
|
-
"href": "http://localhost:3000/api/surveys/
|
215
|
+
"href": "http://localhost:3000/api/surveys/275/survey_questions"
|
208
216
|
},
|
209
217
|
"submit": {
|
210
|
-
"href": "http://localhost:3000/api/surveys/
|
218
|
+
"href": "http://localhost:3000/api/surveys/275/survey_questions/1001"
|
211
219
|
}
|
212
220
|
}
|
213
221
|
},
|
214
222
|
{
|
215
|
-
"id":
|
223
|
+
"id": 1002,
|
216
224
|
"text": "To what extent is what you're doing interesting?",
|
217
225
|
"type": "range",
|
218
226
|
"responses": [
|
219
227
|
"0",
|
220
228
|
"10"
|
221
229
|
],
|
230
|
+
"answer": null,
|
222
231
|
"freeform": false,
|
223
232
|
"_links": {
|
224
233
|
"self": {
|
225
|
-
"href": "http://localhost:3000/api/surveys/
|
234
|
+
"href": "http://localhost:3000/api/surveys/275/survey_questions/1002"
|
226
235
|
},
|
227
236
|
"survey": {
|
228
|
-
"href": "http://localhost:3000/api/surveys/
|
237
|
+
"href": "http://localhost:3000/api/surveys/275"
|
229
238
|
},
|
230
239
|
"create": {
|
231
|
-
"href": "http://localhost:3000/api/surveys/
|
240
|
+
"href": "http://localhost:3000/api/surveys/275/survey_questions"
|
232
241
|
},
|
233
242
|
"submit": {
|
234
|
-
"href": "http://localhost:3000/api/surveys/
|
243
|
+
"href": "http://localhost:3000/api/surveys/275/survey_questions/1002"
|
235
244
|
}
|
236
245
|
}
|
237
246
|
},
|
238
247
|
{
|
239
|
-
"id":
|
240
|
-
"text": "
|
241
|
-
"type": "
|
248
|
+
"id": 1003,
|
249
|
+
"text": "To what extent are you focused on what you are doing?",
|
250
|
+
"type": "range",
|
242
251
|
"responses": [
|
243
|
-
"
|
244
|
-
"
|
245
|
-
"Neither full nor hungry",
|
246
|
-
"Somewhat full",
|
247
|
-
"Very full"
|
252
|
+
"0",
|
253
|
+
"10"
|
248
254
|
],
|
255
|
+
"answer": null,
|
249
256
|
"freeform": false,
|
250
257
|
"_links": {
|
251
258
|
"self": {
|
252
|
-
"href": "http://localhost:3000/api/surveys/
|
259
|
+
"href": "http://localhost:3000/api/surveys/275/survey_questions/1003"
|
253
260
|
},
|
254
261
|
"survey": {
|
255
|
-
"href": "http://localhost:3000/api/surveys/
|
262
|
+
"href": "http://localhost:3000/api/surveys/275"
|
256
263
|
},
|
257
264
|
"create": {
|
258
|
-
"href": "http://localhost:3000/api/surveys/
|
265
|
+
"href": "http://localhost:3000/api/surveys/275/survey_questions"
|
259
266
|
},
|
260
267
|
"submit": {
|
261
|
-
"href": "http://localhost:3000/api/surveys/
|
268
|
+
"href": "http://localhost:3000/api/surveys/275/survey_questions/1003"
|
262
269
|
}
|
263
270
|
}
|
264
271
|
},
|
265
272
|
{
|
266
|
-
"id":
|
267
|
-
"text": "
|
273
|
+
"id": 1004,
|
274
|
+
"text": "Beyond any work you've already done today, how many additional hours do you expect to work today?",
|
268
275
|
"type": "multiple",
|
269
276
|
"responses": [
|
270
|
-
"
|
271
|
-
"
|
272
|
-
"
|
273
|
-
"
|
277
|
+
"0 (none)",
|
278
|
+
"Less than 1 hour",
|
279
|
+
"1-2 hours",
|
280
|
+
"2-3 hours",
|
281
|
+
"3-4 hours",
|
282
|
+
"4-5 hours",
|
283
|
+
"5-6 hours"
|
274
284
|
],
|
285
|
+
"answer": null,
|
275
286
|
"freeform": false,
|
276
287
|
"_links": {
|
277
288
|
"self": {
|
278
|
-
"href": "http://localhost:3000/api/surveys/
|
289
|
+
"href": "http://localhost:3000/api/surveys/275/survey_questions/1004"
|
279
290
|
},
|
280
291
|
"survey": {
|
281
|
-
"href": "http://localhost:3000/api/surveys/
|
292
|
+
"href": "http://localhost:3000/api/surveys/275"
|
282
293
|
},
|
283
294
|
"create": {
|
284
|
-
"href": "http://localhost:3000/api/surveys/
|
295
|
+
"href": "http://localhost:3000/api/surveys/275/survey_questions"
|
285
296
|
},
|
286
297
|
"submit": {
|
287
|
-
"href": "http://localhost:3000/api/surveys/
|
298
|
+
"href": "http://localhost:3000/api/surveys/275/survey_questions/1004"
|
288
299
|
}
|
289
300
|
}
|
290
301
|
},
|
291
302
|
{
|
292
|
-
"id":
|
293
|
-
"text": "
|
303
|
+
"id": 1005,
|
304
|
+
"text": "To what extent do you feel accepted by the person/people you are interacting with?",
|
294
305
|
"type": "range",
|
295
306
|
"responses": [
|
296
307
|
"0",
|
297
308
|
"10"
|
298
309
|
],
|
310
|
+
"answer": null,
|
299
311
|
"freeform": false,
|
300
312
|
"_links": {
|
301
313
|
"self": {
|
302
|
-
"href": "http://localhost:3000/api/surveys/
|
314
|
+
"href": "http://localhost:3000/api/surveys/275/survey_questions/1005"
|
303
315
|
},
|
304
316
|
"survey": {
|
305
|
-
"href": "http://localhost:3000/api/surveys/
|
317
|
+
"href": "http://localhost:3000/api/surveys/275"
|
306
318
|
},
|
307
319
|
"create": {
|
308
|
-
"href": "http://localhost:3000/api/surveys/
|
320
|
+
"href": "http://localhost:3000/api/surveys/275/survey_questions"
|
309
321
|
},
|
310
322
|
"submit": {
|
311
|
-
"href": "http://localhost:3000/api/surveys/
|
323
|
+
"href": "http://localhost:3000/api/surveys/275/survey_questions/1005"
|
312
324
|
}
|
313
325
|
}
|
314
|
-
}
|
315
|
-
],
|
316
|
-
"_links": {
|
317
|
-
"self": {
|
318
|
-
"href": "http://localhost:3000/api/surveys/192"
|
319
|
-
},
|
320
|
-
"submit": {
|
321
|
-
"href": "http://localhost:3000/api/surveys/192/survey_questions"
|
322
326
|
},
|
323
|
-
|
324
|
-
"
|
327
|
+
{
|
328
|
+
"id": 1006,
|
329
|
+
"text": "How well did you sleep last night?",
|
330
|
+
"type": "range",
|
331
|
+
"responses": [
|
332
|
+
"0",
|
333
|
+
"10"
|
334
|
+
],
|
335
|
+
"answer": null,
|
336
|
+
"freeform": false,
|
337
|
+
"_links": {
|
338
|
+
"self": {
|
339
|
+
"href": "http://localhost:3000/api/surveys/275/survey_questions/1006"
|
340
|
+
},
|
341
|
+
"survey": {
|
342
|
+
"href": "http://localhost:3000/api/surveys/275"
|
343
|
+
},
|
344
|
+
"create": {
|
345
|
+
"href": "http://localhost:3000/api/surveys/275/survey_questions"
|
346
|
+
},
|
347
|
+
"submit": {
|
348
|
+
"href": "http://localhost:3000/api/surveys/275/survey_questions/1006"
|
349
|
+
}
|
350
|
+
}
|
325
351
|
}
|
326
|
-
|
352
|
+
]
|
327
353
|
}
|
328
354
|
http_version:
|
329
|
-
recorded_at:
|
355
|
+
recorded_at: Sat, 05 Jul 2014 21:24:17 GMT
|
330
356
|
recorded_with: VCR 2.6.0
|
@@ -37,13 +37,13 @@ http_interactions:
|
|
37
37
|
Cache-Control:
|
38
38
|
- max-age=0, private, must-revalidate
|
39
39
|
X-Request-Id:
|
40
|
-
-
|
40
|
+
- e35836d2-7df9-47d2-93bf-9dda2b812a1d
|
41
41
|
X-Runtime:
|
42
|
-
- '0.
|
42
|
+
- '0.005407'
|
43
43
|
Server:
|
44
|
-
- WEBrick/1.3.1 (Ruby/2.1.
|
44
|
+
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
45
45
|
Date:
|
46
|
-
-
|
46
|
+
- Sat, 05 Jul 2014 20:53:45 GMT
|
47
47
|
Content-Length:
|
48
48
|
- '305'
|
49
49
|
Connection:
|
@@ -68,5 +68,5 @@ http_interactions:
|
|
68
68
|
}
|
69
69
|
}
|
70
70
|
http_version:
|
71
|
-
recorded_at:
|
71
|
+
recorded_at: Sat, 05 Jul 2014 20:53:45 GMT
|
72
72
|
recorded_with: VCR 2.6.0
|
@@ -37,13 +37,13 @@ http_interactions:
|
|
37
37
|
Cache-Control:
|
38
38
|
- max-age=0, private, must-revalidate
|
39
39
|
X-Request-Id:
|
40
|
-
-
|
40
|
+
- 898e38a1-897f-410c-af3d-f6e03b91077e
|
41
41
|
X-Runtime:
|
42
|
-
- '0.
|
42
|
+
- '0.006426'
|
43
43
|
Server:
|
44
|
-
- WEBrick/1.3.1 (Ruby/2.1.
|
44
|
+
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
45
45
|
Date:
|
46
|
-
-
|
46
|
+
- Sat, 05 Jul 2014 20:53:45 GMT
|
47
47
|
Content-Length:
|
48
48
|
- '305'
|
49
49
|
Connection:
|
@@ -68,7 +68,7 @@ http_interactions:
|
|
68
68
|
}
|
69
69
|
}
|
70
70
|
http_version:
|
71
|
-
recorded_at:
|
71
|
+
recorded_at: Sat, 05 Jul 2014 20:53:45 GMT
|
72
72
|
- request:
|
73
73
|
method: post
|
74
74
|
uri: http://localhost:3000/api/users
|
@@ -102,34 +102,34 @@ http_interactions:
|
|
102
102
|
Content-Type:
|
103
103
|
- application/json; charset=utf-8
|
104
104
|
Etag:
|
105
|
-
- '"
|
105
|
+
- '"21c883f613a98fe45d77853939ab5433"'
|
106
106
|
Cache-Control:
|
107
107
|
- max-age=0, private, must-revalidate
|
108
108
|
X-Request-Id:
|
109
|
-
-
|
109
|
+
- 761753a3-e498-423e-a65b-6b701ab8d2ad
|
110
110
|
X-Runtime:
|
111
|
-
- '0.
|
111
|
+
- '0.007596'
|
112
112
|
Server:
|
113
|
-
- WEBrick/1.3.1 (Ruby/2.1.
|
113
|
+
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
114
114
|
Date:
|
115
|
-
-
|
115
|
+
- Sat, 05 Jul 2014 20:53:45 GMT
|
116
116
|
Content-Length:
|
117
|
-
- '
|
117
|
+
- '398'
|
118
118
|
Connection:
|
119
119
|
- Keep-Alive
|
120
120
|
body:
|
121
121
|
encoding: UTF-8
|
122
122
|
string: |-
|
123
123
|
{
|
124
|
-
"id":
|
125
|
-
"
|
126
|
-
"
|
127
|
-
"
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
124
|
+
"id": 256,
|
125
|
+
"first_name": null,
|
126
|
+
"last_name": null,
|
127
|
+
"api_token": "b5e1645f407f56abf047dc0604d89bb0bf159113401166cb3f997a57c4bff42e",
|
128
|
+
"created_at": "2014-07-05T20:53:45.909Z",
|
129
|
+
"updated_at": "2014-07-05T20:53:45.909Z",
|
130
|
+
"token": "ffbe8dd1740492dbb48e5b82483e2193c8c1ae7a8b21c05f437933c835d8ae47f53a6bf0b425f2d87e9d30d3712f38c4df7832c74b6b85f3c46ada4a691cb048",
|
131
|
+
"external_user_id": 42
|
132
132
|
}
|
133
133
|
http_version:
|
134
|
-
recorded_at:
|
134
|
+
recorded_at: Sat, 05 Jul 2014 20:53:45 GMT
|
135
135
|
recorded_with: VCR 2.6.0
|
@@ -37,13 +37,13 @@ http_interactions:
|
|
37
37
|
Cache-Control:
|
38
38
|
- max-age=0, private, must-revalidate
|
39
39
|
X-Request-Id:
|
40
|
-
-
|
40
|
+
- 29f523c8-1576-495f-a3b2-9dee947162ed
|
41
41
|
X-Runtime:
|
42
|
-
- '0.
|
42
|
+
- '0.004554'
|
43
43
|
Server:
|
44
|
-
- WEBrick/1.3.1 (Ruby/2.1.
|
44
|
+
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
45
45
|
Date:
|
46
|
-
-
|
46
|
+
- Sat, 05 Jul 2014 20:53:45 GMT
|
47
47
|
Content-Length:
|
48
48
|
- '305'
|
49
49
|
Connection:
|
@@ -68,7 +68,7 @@ http_interactions:
|
|
68
68
|
}
|
69
69
|
}
|
70
70
|
http_version:
|
71
|
-
recorded_at:
|
71
|
+
recorded_at: Sat, 05 Jul 2014 20:53:45 GMT
|
72
72
|
- request:
|
73
73
|
method: post
|
74
74
|
uri: http://localhost:3000/api/users
|
@@ -102,36 +102,36 @@ http_interactions:
|
|
102
102
|
Content-Type:
|
103
103
|
- application/json; charset=utf-8
|
104
104
|
Etag:
|
105
|
-
- '"
|
105
|
+
- '"a97ffbe2de4c35a2b0700216029737e1"'
|
106
106
|
Cache-Control:
|
107
107
|
- max-age=0, private, must-revalidate
|
108
108
|
X-Request-Id:
|
109
|
-
-
|
109
|
+
- 910605aa-fb88-41bc-93cd-5e38675251e3
|
110
110
|
X-Runtime:
|
111
|
-
- '0.
|
111
|
+
- '0.008499'
|
112
112
|
Server:
|
113
|
-
- WEBrick/1.3.1 (Ruby/2.1.
|
113
|
+
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
114
114
|
Date:
|
115
|
-
-
|
115
|
+
- Sat, 05 Jul 2014 20:53:45 GMT
|
116
116
|
Content-Length:
|
117
|
-
- '
|
117
|
+
- '398'
|
118
118
|
Connection:
|
119
119
|
- Keep-Alive
|
120
120
|
body:
|
121
121
|
encoding: UTF-8
|
122
122
|
string: |-
|
123
123
|
{
|
124
|
-
"id":
|
125
|
-
"
|
126
|
-
"
|
127
|
-
"
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
124
|
+
"id": 257,
|
125
|
+
"first_name": null,
|
126
|
+
"last_name": null,
|
127
|
+
"api_token": "b5e1645f407f56abf047dc0604d89bb0bf159113401166cb3f997a57c4bff42e",
|
128
|
+
"created_at": "2014-07-05T20:53:45.942Z",
|
129
|
+
"updated_at": "2014-07-05T20:53:45.942Z",
|
130
|
+
"token": "ffbe8dd1740492dbb48e5b82483e2193c8c1ae7a8b21c05f437933c835d8ae47f53a6bf0b425f2d87e9d30d3712f38c4df7832c74b6b85f3c46ada4a691cb048",
|
131
|
+
"external_user_id": 43
|
132
132
|
}
|
133
133
|
http_version:
|
134
|
-
recorded_at:
|
134
|
+
recorded_at: Sat, 05 Jul 2014 20:53:45 GMT
|
135
135
|
- request:
|
136
136
|
method: get
|
137
137
|
uri: http://localhost:3000/
|
@@ -169,13 +169,13 @@ http_interactions:
|
|
169
169
|
Cache-Control:
|
170
170
|
- max-age=0, private, must-revalidate
|
171
171
|
X-Request-Id:
|
172
|
-
-
|
172
|
+
- c7b9f71c-7ff7-4727-93de-43c27e65c06a
|
173
173
|
X-Runtime:
|
174
|
-
- '0.
|
174
|
+
- '0.004586'
|
175
175
|
Server:
|
176
|
-
- WEBrick/1.3.1 (Ruby/2.1.
|
176
|
+
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
177
177
|
Date:
|
178
|
-
-
|
178
|
+
- Sat, 05 Jul 2014 20:53:45 GMT
|
179
179
|
Content-Length:
|
180
180
|
- '305'
|
181
181
|
Connection:
|
@@ -200,7 +200,7 @@ http_interactions:
|
|
200
200
|
}
|
201
201
|
}
|
202
202
|
http_version:
|
203
|
-
recorded_at:
|
203
|
+
recorded_at: Sat, 05 Jul 2014 20:53:45 GMT
|
204
204
|
- request:
|
205
205
|
method: get
|
206
206
|
uri: http://localhost:3000/api/users/43
|
@@ -234,34 +234,34 @@ http_interactions:
|
|
234
234
|
Content-Type:
|
235
235
|
- application/json; charset=utf-8
|
236
236
|
Etag:
|
237
|
-
- '"
|
237
|
+
- '"a97ffbe2de4c35a2b0700216029737e1"'
|
238
238
|
Cache-Control:
|
239
239
|
- max-age=0, private, must-revalidate
|
240
240
|
X-Request-Id:
|
241
|
-
-
|
241
|
+
- 413205fb-c481-48d9-995b-978b81f85500
|
242
242
|
X-Runtime:
|
243
|
-
- '0.
|
243
|
+
- '0.011983'
|
244
244
|
Server:
|
245
|
-
- WEBrick/1.3.1 (Ruby/2.1.
|
245
|
+
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
246
246
|
Date:
|
247
|
-
-
|
247
|
+
- Sat, 05 Jul 2014 20:53:45 GMT
|
248
248
|
Content-Length:
|
249
|
-
- '
|
249
|
+
- '398'
|
250
250
|
Connection:
|
251
251
|
- Keep-Alive
|
252
252
|
body:
|
253
253
|
encoding: UTF-8
|
254
254
|
string: |-
|
255
255
|
{
|
256
|
-
"id":
|
257
|
-
"
|
258
|
-
"
|
259
|
-
"
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
256
|
+
"id": 257,
|
257
|
+
"first_name": null,
|
258
|
+
"last_name": null,
|
259
|
+
"api_token": "b5e1645f407f56abf047dc0604d89bb0bf159113401166cb3f997a57c4bff42e",
|
260
|
+
"created_at": "2014-07-05T20:53:45.942Z",
|
261
|
+
"updated_at": "2014-07-05T20:53:45.942Z",
|
262
|
+
"token": "ffbe8dd1740492dbb48e5b82483e2193c8c1ae7a8b21c05f437933c835d8ae47f53a6bf0b425f2d87e9d30d3712f38c4df7832c74b6b85f3c46ada4a691cb048",
|
263
|
+
"external_user_id": 43
|
264
264
|
}
|
265
265
|
http_version:
|
266
|
-
recorded_at:
|
266
|
+
recorded_at: Sat, 05 Jul 2014 20:53:45 GMT
|
267
267
|
recorded_with: VCR 2.6.0
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: poptart
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Austen Ito
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-07-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -213,12 +213,6 @@ files:
|
|
213
213
|
- spec/vcr/answering/survey_questions_creates_and_returns_an_empty_survey.yml
|
214
214
|
- spec/vcr/answering/survey_questions_finds_survey_question_for_id.yml
|
215
215
|
- spec/vcr/poptart/root/returns_survey_links.yml
|
216
|
-
- spec/vcr/poptart/user/answers_a_survey_question.yml
|
217
|
-
- spec/vcr/poptart/user/creates_a_user.yml
|
218
|
-
- spec/vcr/poptart/user/creates_and_returns_a_random_question_survey.yml
|
219
|
-
- spec/vcr/poptart/user/creates_and_returns_an_empty_survey.yml
|
220
|
-
- spec/vcr/poptart/user/finds_survey_question_for_id.yml
|
221
|
-
- spec/vcr/poptart/user/returns_a_user.yml
|
222
216
|
- spec/vcr/user/management_creates_a_user.yml
|
223
217
|
- spec/vcr/user/management_returns_a_user.yml
|
224
218
|
- tags
|
@@ -256,11 +250,5 @@ test_files:
|
|
256
250
|
- spec/vcr/answering/survey_questions_creates_and_returns_an_empty_survey.yml
|
257
251
|
- spec/vcr/answering/survey_questions_finds_survey_question_for_id.yml
|
258
252
|
- spec/vcr/poptart/root/returns_survey_links.yml
|
259
|
-
- spec/vcr/poptart/user/answers_a_survey_question.yml
|
260
|
-
- spec/vcr/poptart/user/creates_a_user.yml
|
261
|
-
- spec/vcr/poptart/user/creates_and_returns_a_random_question_survey.yml
|
262
|
-
- spec/vcr/poptart/user/creates_and_returns_an_empty_survey.yml
|
263
|
-
- spec/vcr/poptart/user/finds_survey_question_for_id.yml
|
264
|
-
- spec/vcr/poptart/user/returns_a_user.yml
|
265
253
|
- spec/vcr/user/management_creates_a_user.yml
|
266
254
|
- spec/vcr/user/management_returns_a_user.yml
|