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.
@@ -1,272 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: http://localhost:3000/
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- User-Agent:
11
- - Faraday v0.9.0
12
- Content-Type:
13
- - application/json
14
- Api-Token:
15
- - testing
16
- Accept-Encoding:
17
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
- Accept:
19
- - "*/*"
20
- response:
21
- status:
22
- code: 200
23
- message: 'OK '
24
- headers:
25
- X-Frame-Options:
26
- - SAMEORIGIN
27
- X-Xss-Protection:
28
- - 1; mode=block
29
- X-Content-Type-Options:
30
- - nosniff
31
- X-Ua-Compatible:
32
- - chrome=1
33
- Content-Type:
34
- - application/json; charset=utf-8
35
- Etag:
36
- - '"a723ac88b99a06c255a3384c2d01f4fb"'
37
- Cache-Control:
38
- - max-age=0, private, must-revalidate
39
- X-Request-Id:
40
- - d2ad7a6c-1b86-465e-8c8c-f0383c543a4e
41
- X-Runtime:
42
- - '0.010319'
43
- Server:
44
- - WEBrick/1.3.1 (Ruby/2.1.1/2014-02-24)
45
- Date:
46
- - Sun, 25 May 2014 18:41:14 GMT
47
- Content-Length:
48
- - '305'
49
- Connection:
50
- - Keep-Alive
51
- body:
52
- encoding: UTF-8
53
- string: |-
54
- {
55
- "_links": {
56
- "self": {
57
- "href": "http://localhost:3000/api"
58
- },
59
- "surveys": {
60
- "href": "http://localhost:3000/api/surveys"
61
- },
62
- "users": {
63
- "href": "http://localhost:3000/api/users"
64
- },
65
- "questions": {
66
- "href": "http://localhost:3000/api/questions"
67
- }
68
- }
69
- }
70
- http_version:
71
- recorded_at: Sun, 25 May 2014 18:41:14 GMT
72
- - request:
73
- method: post
74
- uri: http://localhost:3000/api/users
75
- body:
76
- encoding: UTF-8
77
- string: '{"user":{"external_user_id":42}}'
78
- headers:
79
- User-Agent:
80
- - Faraday v0.9.0
81
- Content-Type:
82
- - application/json
83
- Api-Token:
84
- - testing
85
- Accept-Encoding:
86
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
87
- Accept:
88
- - "*/*"
89
- response:
90
- status:
91
- code: 201
92
- message: 'Created '
93
- headers:
94
- X-Frame-Options:
95
- - SAMEORIGIN
96
- X-Xss-Protection:
97
- - 1; mode=block
98
- X-Content-Type-Options:
99
- - nosniff
100
- X-Ua-Compatible:
101
- - chrome=1
102
- Content-Type:
103
- - application/json; charset=utf-8
104
- Etag:
105
- - '"01b4bdb0272b6befd440f6706360e255"'
106
- Cache-Control:
107
- - max-age=0, private, must-revalidate
108
- X-Request-Id:
109
- - 8088bd31-5b24-4f7c-b68a-b3d916c91b6d
110
- X-Runtime:
111
- - '0.009351'
112
- Server:
113
- - WEBrick/1.3.1 (Ruby/2.1.1/2014-02-24)
114
- Date:
115
- - Sun, 25 May 2014 18:41:14 GMT
116
- Content-Length:
117
- - '275'
118
- Connection:
119
- - Keep-Alive
120
- body:
121
- encoding: UTF-8
122
- string: |-
123
- {
124
- "id": 220,
125
- "external_user_id": 42,
126
- "token": "b1bdb39c61259ee38af9d5f1333af8adb04b818358ce7427d4a49b20b4e9470803ec7aaeebe8d2cb38e48a74007c0c98d582c954ec52ad6f5948ba7da7feb216",
127
- "_links": {
128
- "self": {
129
- "href": "http://localhost:3000/api/users/220"
130
- }
131
- }
132
- }
133
- http_version:
134
- recorded_at: Sun, 25 May 2014 18:41:14 GMT
135
- - request:
136
- method: get
137
- uri: http://localhost:3000/
138
- body:
139
- encoding: US-ASCII
140
- string: ''
141
- headers:
142
- User-Agent:
143
- - Faraday v0.9.0
144
- Content-Type:
145
- - application/json
146
- Api-Token:
147
- - testing
148
- Accept-Encoding:
149
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
150
- Accept:
151
- - "*/*"
152
- response:
153
- status:
154
- code: 200
155
- message: 'OK '
156
- headers:
157
- X-Frame-Options:
158
- - SAMEORIGIN
159
- X-Xss-Protection:
160
- - 1; mode=block
161
- X-Content-Type-Options:
162
- - nosniff
163
- X-Ua-Compatible:
164
- - chrome=1
165
- Content-Type:
166
- - application/json; charset=utf-8
167
- Etag:
168
- - '"a723ac88b99a06c255a3384c2d01f4fb"'
169
- Cache-Control:
170
- - max-age=0, private, must-revalidate
171
- X-Request-Id:
172
- - 2866d72f-5fba-4027-8bbf-a2606302029e
173
- X-Runtime:
174
- - '0.007995'
175
- Server:
176
- - WEBrick/1.3.1 (Ruby/2.1.1/2014-02-24)
177
- Date:
178
- - Sun, 25 May 2014 18:41:14 GMT
179
- Content-Length:
180
- - '305'
181
- Connection:
182
- - Keep-Alive
183
- body:
184
- encoding: UTF-8
185
- string: |-
186
- {
187
- "_links": {
188
- "self": {
189
- "href": "http://localhost:3000/api"
190
- },
191
- "surveys": {
192
- "href": "http://localhost:3000/api/surveys"
193
- },
194
- "users": {
195
- "href": "http://localhost:3000/api/users"
196
- },
197
- "questions": {
198
- "href": "http://localhost:3000/api/questions"
199
- }
200
- }
201
- }
202
- http_version:
203
- recorded_at: Sun, 25 May 2014 18:41:14 GMT
204
- - request:
205
- method: post
206
- uri: http://localhost:3000/api/surveys
207
- body:
208
- encoding: UTF-8
209
- string: '{"survey":{"user_id":220}}'
210
- headers:
211
- User-Agent:
212
- - Faraday v0.9.0
213
- Content-Type:
214
- - application/json
215
- Api-Token:
216
- - testing
217
- Accept-Encoding:
218
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
219
- Accept:
220
- - "*/*"
221
- response:
222
- status:
223
- code: 201
224
- message: 'Created '
225
- headers:
226
- X-Frame-Options:
227
- - SAMEORIGIN
228
- X-Xss-Protection:
229
- - 1; mode=block
230
- X-Content-Type-Options:
231
- - nosniff
232
- X-Ua-Compatible:
233
- - chrome=1
234
- Content-Type:
235
- - application/json; charset=utf-8
236
- Etag:
237
- - '"c1b7d66dc568dca7ce42520a21d93a98"'
238
- Cache-Control:
239
- - max-age=0, private, must-revalidate
240
- X-Request-Id:
241
- - 7918e1c0-06af-461e-b11e-2ba27a7269c9
242
- X-Runtime:
243
- - '0.012650'
244
- Server:
245
- - WEBrick/1.3.1 (Ruby/2.1.1/2014-02-24)
246
- Date:
247
- - Sun, 25 May 2014 18:41:14 GMT
248
- Content-Length:
249
- - '250'
250
- Connection:
251
- - Keep-Alive
252
- body:
253
- encoding: UTF-8
254
- string: |-
255
- {
256
- "id": 164,
257
- "user_id": 220,
258
- "survey_questions": [
259
-
260
- ],
261
- "_links": {
262
- "self": {
263
- "href": "http://localhost:3000/api/surveys/164"
264
- },
265
- "submit": {
266
- "href": "http://localhost:3000/api/surveys/164/survey_questions"
267
- }
268
- }
269
- }
270
- http_version:
271
- recorded_at: Sun, 25 May 2014 18:41:14 GMT
272
- recorded_with: VCR 2.6.0
@@ -1,327 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: http://localhost:3000/
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- User-Agent:
11
- - Faraday v0.9.0
12
- Content-Type:
13
- - application/json
14
- Api-Token:
15
- - testing
16
- Accept-Encoding:
17
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
18
- Accept:
19
- - "*/*"
20
- response:
21
- status:
22
- code: 200
23
- message: 'OK '
24
- headers:
25
- X-Frame-Options:
26
- - SAMEORIGIN
27
- X-Xss-Protection:
28
- - 1; mode=block
29
- X-Content-Type-Options:
30
- - nosniff
31
- X-Ua-Compatible:
32
- - chrome=1
33
- Content-Type:
34
- - application/json; charset=utf-8
35
- Etag:
36
- - '"a723ac88b99a06c255a3384c2d01f4fb"'
37
- Cache-Control:
38
- - max-age=0, private, must-revalidate
39
- X-Request-Id:
40
- - 15d8781f-3e26-488c-8e32-bddc7b82869b
41
- X-Runtime:
42
- - '0.007689'
43
- Server:
44
- - WEBrick/1.3.1 (Ruby/2.1.1/2014-02-24)
45
- Date:
46
- - Sun, 25 May 2014 18:41:15 GMT
47
- Content-Length:
48
- - '305'
49
- Connection:
50
- - Keep-Alive
51
- body:
52
- encoding: UTF-8
53
- string: |-
54
- {
55
- "_links": {
56
- "self": {
57
- "href": "http://localhost:3000/api"
58
- },
59
- "surveys": {
60
- "href": "http://localhost:3000/api/surveys"
61
- },
62
- "users": {
63
- "href": "http://localhost:3000/api/users"
64
- },
65
- "questions": {
66
- "href": "http://localhost:3000/api/questions"
67
- }
68
- }
69
- }
70
- http_version:
71
- recorded_at: Sun, 25 May 2014 18:41:15 GMT
72
- - request:
73
- method: post
74
- uri: http://localhost:3000/api/users
75
- body:
76
- encoding: UTF-8
77
- string: '{"user":{"external_user_id":42}}'
78
- headers:
79
- User-Agent:
80
- - Faraday v0.9.0
81
- Content-Type:
82
- - application/json
83
- Api-Token:
84
- - testing
85
- Accept-Encoding:
86
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
87
- Accept:
88
- - "*/*"
89
- response:
90
- status:
91
- code: 201
92
- message: 'Created '
93
- headers:
94
- X-Frame-Options:
95
- - SAMEORIGIN
96
- X-Xss-Protection:
97
- - 1; mode=block
98
- X-Content-Type-Options:
99
- - nosniff
100
- X-Ua-Compatible:
101
- - chrome=1
102
- Content-Type:
103
- - application/json; charset=utf-8
104
- Etag:
105
- - '"e86604dc344ef65ec27c85b8a6cd476a"'
106
- Cache-Control:
107
- - max-age=0, private, must-revalidate
108
- X-Request-Id:
109
- - 897fbaca-4907-42d1-8924-9c80e41d9569
110
- X-Runtime:
111
- - '0.009208'
112
- Server:
113
- - WEBrick/1.3.1 (Ruby/2.1.1/2014-02-24)
114
- Date:
115
- - Sun, 25 May 2014 18:41:15 GMT
116
- Content-Length:
117
- - '275'
118
- Connection:
119
- - Keep-Alive
120
- body:
121
- encoding: UTF-8
122
- string: |-
123
- {
124
- "id": 224,
125
- "external_user_id": 42,
126
- "token": "18719e066be2c3fed7aaff620736e9971b44fe9ae7972fc6dbb07dc76a5eb14d8ea12b1a123120c726824eea390588af5b6f1255ee7ab5eed99faeb05f4a6e1b",
127
- "_links": {
128
- "self": {
129
- "href": "http://localhost:3000/api/users/224"
130
- }
131
- }
132
- }
133
- http_version:
134
- recorded_at: Sun, 25 May 2014 18:41:15 GMT
135
- - request:
136
- method: post
137
- uri: http://localhost:3000/api/surveys?random=true
138
- body:
139
- encoding: UTF-8
140
- string: '{"survey":{"user_id":224}}'
141
- headers:
142
- User-Agent:
143
- - Faraday v0.9.0
144
- Content-Type:
145
- - application/json
146
- Api-Token:
147
- - testing
148
- Accept-Encoding:
149
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
150
- Accept:
151
- - "*/*"
152
- response:
153
- status:
154
- code: 201
155
- message: 'Created '
156
- headers:
157
- X-Frame-Options:
158
- - SAMEORIGIN
159
- X-Xss-Protection:
160
- - 1; mode=block
161
- X-Content-Type-Options:
162
- - nosniff
163
- X-Ua-Compatible:
164
- - chrome=1
165
- Content-Type:
166
- - application/json; charset=utf-8
167
- Etag:
168
- - '"39977ed0179f14cbc93b3e6f74a29558"'
169
- Cache-Control:
170
- - max-age=0, private, must-revalidate
171
- X-Request-Id:
172
- - 5b636e37-0007-4503-bfc1-6ec5c3642f87
173
- X-Runtime:
174
- - '0.064231'
175
- Server:
176
- - WEBrick/1.3.1 (Ruby/2.1.1/2014-02-24)
177
- Date:
178
- - Sun, 25 May 2014 18:41:15 GMT
179
- Content-Length:
180
- - '3736'
181
- Connection:
182
- - Keep-Alive
183
- body:
184
- encoding: UTF-8
185
- string: |-
186
- {
187
- "id": 168,
188
- "user_id": 224,
189
- "survey_questions": [
190
- {
191
- "id": 563,
192
- "text": "To what extent are you being productive?",
193
- "type": "range",
194
- "responses": [
195
- "0",
196
- "10"
197
- ],
198
- "freeform": false,
199
- "_links": {
200
- "self": {
201
- "href": "http://localhost:3000/api/surveys/168/survey_questions/563"
202
- },
203
- "survey": {
204
- "href": "http://localhost:3000/api/surveys/168"
205
- },
206
- "create": {
207
- "href": "http://localhost:3000/api/surveys/168/survey_questions"
208
- },
209
- "submit": {
210
- "href": "http://localhost:3000/api/surveys/168/survey_questions/563"
211
- }
212
- }
213
- },
214
- {
215
- "id": 564,
216
- "text": "Have you surprised someone with a gift (including small gifts) in the last week?",
217
- "type": "boolean",
218
- "responses": [
219
- "t",
220
- "f"
221
- ],
222
- "freeform": false,
223
- "_links": {
224
- "self": {
225
- "href": "http://localhost:3000/api/surveys/168/survey_questions/564"
226
- },
227
- "survey": {
228
- "href": "http://localhost:3000/api/surveys/168"
229
- },
230
- "create": {
231
- "href": "http://localhost:3000/api/surveys/168/survey_questions"
232
- },
233
- "submit": {
234
- "href": "http://localhost:3000/api/surveys/168/survey_questions/564"
235
- }
236
- }
237
- },
238
- {
239
- "id": 565,
240
- "text": "To what extent do you expect good things to happen in the future?",
241
- "type": "range",
242
- "responses": [
243
- "0",
244
- "10"
245
- ],
246
- "freeform": false,
247
- "_links": {
248
- "self": {
249
- "href": "http://localhost:3000/api/surveys/168/survey_questions/565"
250
- },
251
- "survey": {
252
- "href": "http://localhost:3000/api/surveys/168"
253
- },
254
- "create": {
255
- "href": "http://localhost:3000/api/surveys/168/survey_questions"
256
- },
257
- "submit": {
258
- "href": "http://localhost:3000/api/surveys/168/survey_questions/565"
259
- }
260
- }
261
- },
262
- {
263
- "id": 566,
264
- "text": "Have you taken any over-the-counter pain medication in the past 24 hours?",
265
- "type": "boolean",
266
- "responses": [
267
- "t",
268
- "f"
269
- ],
270
- "freeform": false,
271
- "_links": {
272
- "self": {
273
- "href": "http://localhost:3000/api/surveys/168/survey_questions/566"
274
- },
275
- "survey": {
276
- "href": "http://localhost:3000/api/surveys/168"
277
- },
278
- "create": {
279
- "href": "http://localhost:3000/api/surveys/168/survey_questions"
280
- },
281
- "submit": {
282
- "href": "http://localhost:3000/api/surveys/168/survey_questions/566"
283
- }
284
- }
285
- },
286
- {
287
- "id": 567,
288
- "text": "Are you judging or evaluating what you are doing right now (i.e. at the moment just before you were notified?)",
289
- "type": "multiple",
290
- "responses": [
291
- "f",
292
- "Yes - Negatively",
293
- "Yes - Neutrally",
294
- "Yes - Positively"
295
- ],
296
- "freeform": false,
297
- "_links": {
298
- "self": {
299
- "href": "http://localhost:3000/api/surveys/168/survey_questions/567"
300
- },
301
- "survey": {
302
- "href": "http://localhost:3000/api/surveys/168"
303
- },
304
- "create": {
305
- "href": "http://localhost:3000/api/surveys/168/survey_questions"
306
- },
307
- "submit": {
308
- "href": "http://localhost:3000/api/surveys/168/survey_questions/567"
309
- }
310
- }
311
- }
312
- ],
313
- "_links": {
314
- "self": {
315
- "href": "http://localhost:3000/api/surveys/168"
316
- },
317
- "submit": {
318
- "href": "http://localhost:3000/api/surveys/168/survey_questions"
319
- },
320
- "next": {
321
- "href": "http://localhost:3000/api/surveys/168/survey_questions/563"
322
- }
323
- }
324
- }
325
- http_version:
326
- recorded_at: Sun, 25 May 2014 18:41:15 GMT
327
- recorded_with: VCR 2.6.0