poptart 0.0.10 → 0.0.11

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.
@@ -1954,6 +1954,10 @@ http_interactions:
1954
1954
  - application/json
1955
1955
  Api-Token:
1956
1956
  - testing
1957
+ User-Token:
1958
+ - cd13490902b4944acf6af4d6e8505c8e44b68e841dbfca133523f68b941587b7
1959
+ Service-User-Id:
1960
+ - 8104645e99aeda86d54dd596af7d3d91ed7909493bcf2e0e6291270d4303a471
1957
1961
  Accept-Encoding:
1958
1962
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
1959
1963
  Accept:
@@ -1974,17 +1978,17 @@ http_interactions:
1974
1978
  Content-Type:
1975
1979
  - application/json; charset=utf-8
1976
1980
  Etag:
1977
- - '"627191e4146cdc30e988ff0a96e0753a"'
1981
+ - '"e48bb14918621084eedcbd78d0e769ab"'
1978
1982
  Cache-Control:
1979
1983
  - max-age=0, private, must-revalidate
1980
1984
  X-Request-Id:
1981
- - 41b3878c-6281-456d-90fc-aff17addc771
1985
+ - 5997a526-259a-4b7c-b7eb-d0eb789d7a9c
1982
1986
  X-Runtime:
1983
- - '0.006398'
1987
+ - '0.006767'
1984
1988
  Server:
1985
1989
  - WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
1986
1990
  Date:
1987
- - Sun, 05 Oct 2014 12:53:40 GMT
1991
+ - Sat, 18 Oct 2014 17:30:43 GMT
1988
1992
  Content-Length:
1989
1993
  - '261'
1990
1994
  Connection:
@@ -1993,22 +1997,22 @@ http_interactions:
1993
1997
  encoding: UTF-8
1994
1998
  string: |-
1995
1999
  {
1996
- "service_user_id": "1f3b3de9bb7fb10d149ac41d384e3fa54bc63b009175539d256ba9c57ba396f9",
2000
+ "service_user_id": "8104645e99aeda86d54dd596af7d3d91ed7909493bcf2e0e6291270d4303a471",
1997
2001
  "_links": {
1998
2002
  "self": {
1999
- "href": "http://localhost:3000/api/users/208"
2003
+ "href": "http://localhost:3000/api/users/148"
2000
2004
  }
2001
2005
  },
2002
- "token": "f78b819f60159337ea556e00e08d677a0746dc3a5afc3eb21fca7d7ee9290e6c"
2006
+ "token": "cd13490902b4944acf6af4d6e8505c8e44b68e841dbfca133523f68b941587b7"
2003
2007
  }
2004
2008
  http_version:
2005
- recorded_at: Sun, 05 Oct 2014 12:53:40 GMT
2009
+ recorded_at: Sat, 18 Oct 2014 17:30:43 GMT
2006
2010
  - request:
2007
2011
  method: post
2008
2012
  uri: http://localhost:3000/api/surveys?random=true
2009
2013
  body:
2010
2014
  encoding: UTF-8
2011
- string: '{"survey":{"service_user_id":"1f3b3de9bb7fb10d149ac41d384e3fa54bc63b009175539d256ba9c57ba396f9"}}'
2015
+ string: '{"survey":{"service_user_id":"8104645e99aeda86d54dd596af7d3d91ed7909493bcf2e0e6291270d4303a471"}}'
2012
2016
  headers:
2013
2017
  User-Agent:
2014
2018
  - Faraday v0.9.0
@@ -2016,6 +2020,10 @@ http_interactions:
2016
2020
  - application/json
2017
2021
  Api-Token:
2018
2022
  - testing
2023
+ User-Token:
2024
+ - cd13490902b4944acf6af4d6e8505c8e44b68e841dbfca133523f68b941587b7
2025
+ Service-User-Id:
2026
+ - 8104645e99aeda86d54dd596af7d3d91ed7909493bcf2e0e6291270d4303a471
2019
2027
  Accept-Encoding:
2020
2028
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
2021
2029
  Accept:
@@ -2036,44 +2044,44 @@ http_interactions:
2036
2044
  Content-Type:
2037
2045
  - application/json; charset=utf-8
2038
2046
  Etag:
2039
- - '"8884eb7a1ab4a82882034ac7eb3c4eee"'
2047
+ - '"04b77f4718c3ff4f6fc677778d6b1c40"'
2040
2048
  Cache-Control:
2041
2049
  - max-age=0, private, must-revalidate
2042
2050
  X-Request-Id:
2043
- - 36a0d35e-82e9-4b00-809e-6d80939a46de
2051
+ - 47725470-3e15-4292-ac61-61989aa045e5
2044
2052
  X-Runtime:
2045
- - '0.081621'
2053
+ - '0.083936'
2046
2054
  Server:
2047
2055
  - WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
2048
2056
  Date:
2049
- - Sun, 05 Oct 2014 12:53:40 GMT
2057
+ - Sat, 18 Oct 2014 17:30:43 GMT
2050
2058
  Content-Length:
2051
- - '8098'
2059
+ - '3935'
2052
2060
  Connection:
2053
2061
  - Keep-Alive
2054
2062
  body:
2055
2063
  encoding: UTF-8
2056
2064
  string: |-
2057
2065
  {
2058
- "id": 234,
2059
- "service_user_id": "1f3b3de9bb7fb10d149ac41d384e3fa54bc63b009175539d256ba9c57ba396f9",
2066
+ "id": 183,
2067
+ "service_user_id": "8104645e99aeda86d54dd596af7d3d91ed7909493bcf2e0e6291270d4303a471",
2060
2068
  "_links": {
2061
2069
  "self": {
2062
- "href": "http://localhost:3000/api/surveys/234"
2070
+ "href": "http://localhost:3000/api/surveys/183"
2063
2071
  },
2064
2072
  "survey_questions": {
2065
2073
  "post": {
2066
- "href": "http://localhost:3000/api/surveys/234/survey_questions"
2074
+ "href": "http://localhost:3000/api/surveys/183/survey_questions"
2067
2075
  },
2068
2076
  "put": {
2069
- "href": "http://localhost:3000/api/surveys/234/survey_questions"
2077
+ "href": "http://localhost:3000/api/surveys/183/survey_questions"
2070
2078
  }
2071
2079
  }
2072
2080
  },
2073
2081
  "completed": false,
2074
2082
  "survey_questions": [
2075
2083
  {
2076
- "id": 983,
2084
+ "id": 262,
2077
2085
  "text": "How do you feel right now?",
2078
2086
  "type": "range",
2079
2087
  "responses": [
@@ -2084,21 +2092,22 @@ http_interactions:
2084
2092
  "freeform": false,
2085
2093
  "_links": {
2086
2094
  "self": {
2087
- "href": "http://localhost:3000/api/surveys/234/survey_questions/983"
2095
+ "href": "http://localhost:3000/api/surveys/183/survey_questions/262"
2088
2096
  },
2089
2097
  "post": {
2090
- "href": "http://localhost:3000/api/surveys/234/survey_questions"
2098
+ "href": "http://localhost:3000/api/surveys/183/survey_questions"
2091
2099
  },
2092
2100
  "put": {
2093
- "href": "http://localhost:3000/api/surveys/234/survey_questions/983"
2101
+ "href": "http://localhost:3000/api/surveys/183/survey_questions/262"
2094
2102
  },
2095
2103
  "survey": {
2096
- "href": "http://localhost:3000/api/surveys/234"
2104
+ "href": "http://localhost:3000/api/surveys/183"
2097
2105
  }
2098
- }
2106
+ },
2107
+ "created_at": "2014-10-18T17:30:43.807Z"
2099
2108
  },
2100
2109
  {
2101
- "id": 984,
2110
+ "id": 263,
2102
2111
  "text": "Where are you?",
2103
2112
  "type": "multiple",
2104
2113
  "responses": [
@@ -2111,221 +2120,74 @@ http_interactions:
2111
2120
  "freeform": true,
2112
2121
  "_links": {
2113
2122
  "self": {
2114
- "href": "http://localhost:3000/api/surveys/234/survey_questions/984"
2115
- },
2116
- "post": {
2117
- "href": "http://localhost:3000/api/surveys/234/survey_questions"
2118
- },
2119
- "put": {
2120
- "href": "http://localhost:3000/api/surveys/234/survey_questions/984"
2121
- },
2122
- "survey": {
2123
- "href": "http://localhost:3000/api/surveys/234"
2124
- }
2125
- }
2126
- },
2127
- {
2128
- "id": 985,
2129
- "text": "Do you like poptarts?",
2130
- "type": "multiple",
2131
- "responses": [
2132
- "Yes",
2133
- "No"
2134
- ],
2135
- "answer": null,
2136
- "freeform": true,
2137
- "_links": {
2138
- "self": {
2139
- "href": "http://localhost:3000/api/surveys/234/survey_questions/985"
2140
- },
2141
- "post": {
2142
- "href": "http://localhost:3000/api/surveys/234/survey_questions"
2143
- },
2144
- "put": {
2145
- "href": "http://localhost:3000/api/surveys/234/survey_questions/985"
2146
- },
2147
- "survey": {
2148
- "href": "http://localhost:3000/api/surveys/234"
2149
- }
2150
- }
2151
- },
2152
- {
2153
- "id": 986,
2154
- "text": "Do you like poptarts?",
2155
- "type": "multiple",
2156
- "responses": [
2157
- "Yes",
2158
- "No"
2159
- ],
2160
- "answer": null,
2161
- "freeform": true,
2162
- "_links": {
2163
- "self": {
2164
- "href": "http://localhost:3000/api/surveys/234/survey_questions/986"
2165
- },
2166
- "post": {
2167
- "href": "http://localhost:3000/api/surveys/234/survey_questions"
2168
- },
2169
- "put": {
2170
- "href": "http://localhost:3000/api/surveys/234/survey_questions/986"
2171
- },
2172
- "survey": {
2173
- "href": "http://localhost:3000/api/surveys/234"
2174
- }
2175
- }
2176
- },
2177
- {
2178
- "id": 987,
2179
- "text": "Do you love poptarts?",
2180
- "type": "multiple",
2181
- "responses": [
2182
- "Yes",
2183
- "No"
2184
- ],
2185
- "answer": null,
2186
- "freeform": true,
2187
- "_links": {
2188
- "self": {
2189
- "href": "http://localhost:3000/api/surveys/234/survey_questions/987"
2190
- },
2191
- "post": {
2192
- "href": "http://localhost:3000/api/surveys/234/survey_questions"
2193
- },
2194
- "put": {
2195
- "href": "http://localhost:3000/api/surveys/234/survey_questions/987"
2196
- },
2197
- "survey": {
2198
- "href": "http://localhost:3000/api/surveys/234"
2199
- }
2200
- }
2201
- },
2202
- {
2203
- "id": 988,
2204
- "text": "Do you love poptarts?",
2205
- "type": "multiple",
2206
- "responses": [
2207
- "Yes",
2208
- "No"
2209
- ],
2210
- "answer": null,
2211
- "freeform": true,
2212
- "_links": {
2213
- "self": {
2214
- "href": "http://localhost:3000/api/surveys/234/survey_questions/988"
2215
- },
2216
- "post": {
2217
- "href": "http://localhost:3000/api/surveys/234/survey_questions"
2218
- },
2219
- "put": {
2220
- "href": "http://localhost:3000/api/surveys/234/survey_questions/988"
2221
- },
2222
- "survey": {
2223
- "href": "http://localhost:3000/api/surveys/234"
2224
- }
2225
- }
2226
- },
2227
- {
2228
- "id": 989,
2229
- "text": "Do you like poptarts?",
2230
- "type": "multiple",
2231
- "responses": [
2232
- "Yes",
2233
- "No"
2234
- ],
2235
- "answer": null,
2236
- "freeform": true,
2237
- "_links": {
2238
- "self": {
2239
- "href": "http://localhost:3000/api/surveys/234/survey_questions/989"
2240
- },
2241
- "post": {
2242
- "href": "http://localhost:3000/api/surveys/234/survey_questions"
2243
- },
2244
- "put": {
2245
- "href": "http://localhost:3000/api/surveys/234/survey_questions/989"
2246
- },
2247
- "survey": {
2248
- "href": "http://localhost:3000/api/surveys/234"
2249
- }
2250
- }
2251
- },
2252
- {
2253
- "id": 990,
2254
- "text": "Do you like poptarts?",
2255
- "type": "multiple",
2256
- "responses": [
2257
- "Yes",
2258
- "No"
2259
- ],
2260
- "answer": null,
2261
- "freeform": true,
2262
- "_links": {
2263
- "self": {
2264
- "href": "http://localhost:3000/api/surveys/234/survey_questions/990"
2123
+ "href": "http://localhost:3000/api/surveys/183/survey_questions/263"
2265
2124
  },
2266
2125
  "post": {
2267
- "href": "http://localhost:3000/api/surveys/234/survey_questions"
2126
+ "href": "http://localhost:3000/api/surveys/183/survey_questions"
2268
2127
  },
2269
2128
  "put": {
2270
- "href": "http://localhost:3000/api/surveys/234/survey_questions/990"
2129
+ "href": "http://localhost:3000/api/surveys/183/survey_questions/263"
2271
2130
  },
2272
2131
  "survey": {
2273
- "href": "http://localhost:3000/api/surveys/234"
2132
+ "href": "http://localhost:3000/api/surveys/183"
2274
2133
  }
2275
- }
2134
+ },
2135
+ "created_at": "2014-10-18T17:30:43.808Z"
2276
2136
  },
2277
2137
  {
2278
- "id": 991,
2279
- "text": "Do you like poptarts?",
2280
- "type": "multiple",
2138
+ "id": 264,
2139
+ "text": "To what extent is what you're doing interesting?",
2140
+ "type": "range",
2281
2141
  "responses": [
2282
- "Yes",
2283
- "No"
2142
+ "0",
2143
+ "10"
2284
2144
  ],
2285
2145
  "answer": null,
2286
- "freeform": true,
2146
+ "freeform": false,
2287
2147
  "_links": {
2288
2148
  "self": {
2289
- "href": "http://localhost:3000/api/surveys/234/survey_questions/991"
2149
+ "href": "http://localhost:3000/api/surveys/183/survey_questions/264"
2290
2150
  },
2291
2151
  "post": {
2292
- "href": "http://localhost:3000/api/surveys/234/survey_questions"
2152
+ "href": "http://localhost:3000/api/surveys/183/survey_questions"
2293
2153
  },
2294
2154
  "put": {
2295
- "href": "http://localhost:3000/api/surveys/234/survey_questions/991"
2155
+ "href": "http://localhost:3000/api/surveys/183/survey_questions/264"
2296
2156
  },
2297
2157
  "survey": {
2298
- "href": "http://localhost:3000/api/surveys/234"
2158
+ "href": "http://localhost:3000/api/surveys/183"
2299
2159
  }
2300
- }
2160
+ },
2161
+ "created_at": "2014-10-18T17:30:43.809Z"
2301
2162
  },
2302
2163
  {
2303
- "id": 992,
2164
+ "id": 265,
2304
2165
  "text": "Do you like poptarts?",
2305
- "type": "multiple",
2166
+ "type": "boolean",
2306
2167
  "responses": [
2307
- "Yes",
2308
- "No"
2168
+ "t",
2169
+ "f"
2309
2170
  ],
2310
2171
  "answer": null,
2311
- "freeform": true,
2172
+ "freeform": false,
2312
2173
  "_links": {
2313
2174
  "self": {
2314
- "href": "http://localhost:3000/api/surveys/234/survey_questions/992"
2175
+ "href": "http://localhost:3000/api/surveys/183/survey_questions/265"
2315
2176
  },
2316
2177
  "post": {
2317
- "href": "http://localhost:3000/api/surveys/234/survey_questions"
2178
+ "href": "http://localhost:3000/api/surveys/183/survey_questions"
2318
2179
  },
2319
2180
  "put": {
2320
- "href": "http://localhost:3000/api/surveys/234/survey_questions/992"
2181
+ "href": "http://localhost:3000/api/surveys/183/survey_questions/265"
2321
2182
  },
2322
2183
  "survey": {
2323
- "href": "http://localhost:3000/api/surveys/234"
2184
+ "href": "http://localhost:3000/api/surveys/183"
2324
2185
  }
2325
- }
2186
+ },
2187
+ "created_at": "2014-10-18T17:30:43.835Z"
2326
2188
  },
2327
2189
  {
2328
- "id": 993,
2190
+ "id": 266,
2329
2191
  "text": "Do you like poptarts?",
2330
2192
  "type": "multiple",
2331
2193
  "responses": [
@@ -2333,49 +2195,25 @@ http_interactions:
2333
2195
  "No"
2334
2196
  ],
2335
2197
  "answer": null,
2336
- "freeform": true,
2337
- "_links": {
2338
- "self": {
2339
- "href": "http://localhost:3000/api/surveys/234/survey_questions/993"
2340
- },
2341
- "post": {
2342
- "href": "http://localhost:3000/api/surveys/234/survey_questions"
2343
- },
2344
- "put": {
2345
- "href": "http://localhost:3000/api/surveys/234/survey_questions/993"
2346
- },
2347
- "survey": {
2348
- "href": "http://localhost:3000/api/surveys/234"
2349
- }
2350
- }
2351
- },
2352
- {
2353
- "id": 994,
2354
- "text": "Do you love poptarts?",
2355
- "type": "multiple",
2356
- "responses": [
2357
- "Yes",
2358
- "No"
2359
- ],
2360
- "answer": null,
2361
- "freeform": true,
2198
+ "freeform": false,
2362
2199
  "_links": {
2363
2200
  "self": {
2364
- "href": "http://localhost:3000/api/surveys/234/survey_questions/994"
2201
+ "href": "http://localhost:3000/api/surveys/183/survey_questions/266"
2365
2202
  },
2366
2203
  "post": {
2367
- "href": "http://localhost:3000/api/surveys/234/survey_questions"
2204
+ "href": "http://localhost:3000/api/surveys/183/survey_questions"
2368
2205
  },
2369
2206
  "put": {
2370
- "href": "http://localhost:3000/api/surveys/234/survey_questions/994"
2207
+ "href": "http://localhost:3000/api/surveys/183/survey_questions/266"
2371
2208
  },
2372
2209
  "survey": {
2373
- "href": "http://localhost:3000/api/surveys/234"
2210
+ "href": "http://localhost:3000/api/surveys/183"
2374
2211
  }
2375
- }
2212
+ },
2213
+ "created_at": "2014-10-18T17:30:43.837Z"
2376
2214
  }
2377
2215
  ]
2378
2216
  }
2379
2217
  http_version:
2380
- recorded_at: Sun, 05 Oct 2014 12:53:40 GMT
2218
+ recorded_at: Sat, 18 Oct 2014 17:30:43 GMT
2381
2219
  recorded_with: VCR 2.6.0
@@ -103,13 +103,13 @@ http_interactions:
103
103
  Cache-Control:
104
104
  - max-age=0, private, must-revalidate
105
105
  X-Request-Id:
106
- - 7e53c3b0-a044-4cc9-abc0-4793c59a8ed8
106
+ - f3f12516-1a80-478c-9d43-16848831e5c7
107
107
  X-Runtime:
108
- - '0.032272'
108
+ - '0.029369'
109
109
  Server:
110
110
  - WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
111
111
  Date:
112
- - Wed, 08 Oct 2014 02:15:37 GMT
112
+ - Wed, 08 Oct 2014 02:16:10 GMT
113
113
  Content-Length:
114
114
  - '469'
115
115
  Connection:
@@ -137,7 +137,7 @@ http_interactions:
137
137
  }
138
138
  }
139
139
  http_version:
140
- recorded_at: Wed, 08 Oct 2014 02:15:37 GMT
140
+ recorded_at: Wed, 08 Oct 2014 02:16:10 GMT
141
141
  - request:
142
142
  method: get
143
143
  uri: http://localhost:3000/
@@ -175,13 +175,13 @@ http_interactions:
175
175
  Cache-Control:
176
176
  - max-age=0, private, must-revalidate
177
177
  X-Request-Id:
178
- - f3f12516-1a80-478c-9d43-16848831e5c7
178
+ - b383a40c-c0b4-4d87-99d7-a31d312553b5
179
179
  X-Runtime:
180
- - '0.029369'
180
+ - '0.005370'
181
181
  Server:
182
182
  - WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
183
183
  Date:
184
- - Wed, 08 Oct 2014 02:16:10 GMT
184
+ - Sat, 18 Oct 2014 17:21:23 GMT
185
185
  Content-Length:
186
186
  - '469'
187
187
  Connection:
@@ -209,7 +209,7 @@ http_interactions:
209
209
  }
210
210
  }
211
211
  http_version:
212
- recorded_at: Wed, 08 Oct 2014 02:16:10 GMT
212
+ recorded_at: Sat, 18 Oct 2014 17:21:23 GMT
213
213
  - request:
214
214
  method: post
215
215
  uri: http://localhost:3000/api/questions
@@ -224,6 +224,10 @@ http_interactions:
224
224
  - application/json
225
225
  Api-Token:
226
226
  - testing
227
+ User-Token:
228
+ - 79d638f50b633871f48db1bf89a367c13fa838cc79b665c0f82ffc28fcf2d1ab
229
+ Service-User-Id:
230
+ - 0cc711f2486004185fe85b93f829074b225b46a616d10cb2d5c9f15329c22e05
227
231
  Accept-Encoding:
228
232
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
229
233
  Accept:
@@ -244,26 +248,26 @@ http_interactions:
244
248
  Content-Type:
245
249
  - application/json; charset=utf-8
246
250
  Etag:
247
- - '"5df8e0fd01cd48f8c251e4b1420d0070"'
251
+ - '"345e60b0d5495fe468bad0e974d953fe"'
248
252
  Cache-Control:
249
253
  - max-age=0, private, must-revalidate
250
254
  X-Request-Id:
251
- - d550e167-b88c-4d8b-8180-1d31aa7c99c5
255
+ - eb84e1b9-b787-4489-8918-e12addfd6c60
252
256
  X-Runtime:
253
- - '0.022491'
257
+ - '0.008234'
254
258
  Server:
255
259
  - WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
256
260
  Date:
257
- - Wed, 08 Oct 2014 02:16:10 GMT
261
+ - Sat, 18 Oct 2014 17:30:45 GMT
258
262
  Content-Length:
259
- - '214'
263
+ - '215'
260
264
  Connection:
261
265
  - Keep-Alive
262
266
  body:
263
267
  encoding: UTF-8
264
268
  string: |-
265
269
  {
266
- "id": 40,
270
+ "id": 127,
267
271
  "question_type": "boolean",
268
272
  "text": "Do you like poptarts?",
269
273
  "responses": [
@@ -276,5 +280,5 @@ http_interactions:
276
280
  "key": "poptarts"
277
281
  }
278
282
  http_version:
279
- recorded_at: Wed, 08 Oct 2014 02:16:10 GMT
283
+ recorded_at: Sat, 18 Oct 2014 17:30:45 GMT
280
284
  recorded_with: VCR 2.6.0