poptart 0.0.7 → 0.0.8

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.
@@ -13524,75 +13524,6 @@ http_interactions:
13524
13524
  }
13525
13525
  http_version:
13526
13526
  recorded_at: Sat, 20 Sep 2014 14:14:34 GMT
13527
- - request:
13528
- method: get
13529
- uri: http://localhost:3000/
13530
- body:
13531
- encoding: US-ASCII
13532
- string: ''
13533
- headers:
13534
- User-Agent:
13535
- - Faraday v0.9.0
13536
- Content-Type:
13537
- - application/json
13538
- Api-Token:
13539
- - testing
13540
- Accept-Encoding:
13541
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
13542
- Accept:
13543
- - "*/*"
13544
- response:
13545
- status:
13546
- code: 200
13547
- message: 'OK '
13548
- headers:
13549
- X-Frame-Options:
13550
- - SAMEORIGIN
13551
- X-Xss-Protection:
13552
- - 1; mode=block
13553
- X-Content-Type-Options:
13554
- - nosniff
13555
- X-Ua-Compatible:
13556
- - chrome=1
13557
- Content-Type:
13558
- - application/json; charset=utf-8
13559
- Etag:
13560
- - '"c4942090acbc96722cba50e4cecfde73"'
13561
- Cache-Control:
13562
- - max-age=0, private, must-revalidate
13563
- X-Request-Id:
13564
- - 0cd2300a-51bd-470e-88ae-6680ecc2d4ca
13565
- X-Runtime:
13566
- - '0.004571'
13567
- Server:
13568
- - WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
13569
- Date:
13570
- - Sun, 21 Sep 2014 20:23:34 GMT
13571
- Content-Length:
13572
- - '236'
13573
- Connection:
13574
- - Keep-Alive
13575
- body:
13576
- encoding: UTF-8
13577
- string: |-
13578
- {
13579
- "_links": {
13580
- "self": {
13581
- "href": "http://localhost:3000/"
13582
- },
13583
- "surveys": {
13584
- "href": "api/surveys"
13585
- },
13586
- "users": {
13587
- "href": "api/users"
13588
- },
13589
- "questions": {
13590
- "href": "api/questions"
13591
- }
13592
- }
13593
- }
13594
- http_version:
13595
- recorded_at: Sun, 21 Sep 2014 20:23:34 GMT
13596
13527
  - request:
13597
13528
  method: post
13598
13529
  uri: http://localhost:3000//api/surveys/64/survey_questions/
@@ -13898,75 +13829,6 @@ http_interactions:
13898
13829
  }
13899
13830
  http_version:
13900
13831
  recorded_at: Sun, 21 Sep 2014 20:23:34 GMT
13901
- - request:
13902
- method: get
13903
- uri: http://localhost:3000/
13904
- body:
13905
- encoding: US-ASCII
13906
- string: ''
13907
- headers:
13908
- User-Agent:
13909
- - Faraday v0.9.0
13910
- Content-Type:
13911
- - application/json
13912
- Api-Token:
13913
- - testing
13914
- Accept-Encoding:
13915
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
13916
- Accept:
13917
- - "*/*"
13918
- response:
13919
- status:
13920
- code: 200
13921
- message: 'OK '
13922
- headers:
13923
- X-Frame-Options:
13924
- - SAMEORIGIN
13925
- X-Xss-Protection:
13926
- - 1; mode=block
13927
- X-Content-Type-Options:
13928
- - nosniff
13929
- X-Ua-Compatible:
13930
- - chrome=1
13931
- Content-Type:
13932
- - application/json; charset=utf-8
13933
- Etag:
13934
- - '"c4942090acbc96722cba50e4cecfde73"'
13935
- Cache-Control:
13936
- - max-age=0, private, must-revalidate
13937
- X-Request-Id:
13938
- - c110055c-8dd9-4723-9527-4dfbc264f984
13939
- X-Runtime:
13940
- - '0.004458'
13941
- Server:
13942
- - WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
13943
- Date:
13944
- - Sun, 21 Sep 2014 20:27:14 GMT
13945
- Content-Length:
13946
- - '236'
13947
- Connection:
13948
- - Keep-Alive
13949
- body:
13950
- encoding: UTF-8
13951
- string: |-
13952
- {
13953
- "_links": {
13954
- "self": {
13955
- "href": "http://localhost:3000/"
13956
- },
13957
- "surveys": {
13958
- "href": "api/surveys"
13959
- },
13960
- "users": {
13961
- "href": "api/users"
13962
- },
13963
- "questions": {
13964
- "href": "api/questions"
13965
- }
13966
- }
13967
- }
13968
- http_version:
13969
- recorded_at: Sun, 21 Sep 2014 20:27:14 GMT
13970
13832
  - request:
13971
13833
  method: post
13972
13834
  uri: http://localhost:3000//api/surveys/76/survey_questions/
@@ -14876,9 +14738,71 @@ http_interactions:
14876
14738
  }
14877
14739
  http_version:
14878
14740
  recorded_at: Sun, 21 Sep 2014 20:28:01 GMT
14741
+ - request:
14742
+ method: post
14743
+ uri: http://localhost:3000//api/surveys/85/survey_questions/
14744
+ body:
14745
+ encoding: UTF-8
14746
+ string: '{"survey_question":{"question_id":8}}'
14747
+ headers:
14748
+ User-Agent:
14749
+ - Faraday v0.9.0
14750
+ Content-Type:
14751
+ - application/json
14752
+ Api-Token:
14753
+ - testing
14754
+ Accept-Encoding:
14755
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14756
+ Accept:
14757
+ - "*/*"
14758
+ response:
14759
+ status:
14760
+ code: 201
14761
+ message: 'Created '
14762
+ headers:
14763
+ X-Frame-Options:
14764
+ - SAMEORIGIN
14765
+ X-Xss-Protection:
14766
+ - 1; mode=block
14767
+ X-Content-Type-Options:
14768
+ - nosniff
14769
+ X-Ua-Compatible:
14770
+ - chrome=1
14771
+ Content-Type:
14772
+ - application/json; charset=utf-8
14773
+ Etag:
14774
+ - '"0921cf9ad8198f4107b506e34daa617c"'
14775
+ Cache-Control:
14776
+ - max-age=0, private, must-revalidate
14777
+ X-Request-Id:
14778
+ - 377ac222-dcd1-4eeb-98cd-2526517dea6f
14779
+ X-Runtime:
14780
+ - '0.009732'
14781
+ Server:
14782
+ - WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
14783
+ Date:
14784
+ - Sun, 21 Sep 2014 20:28:01 GMT
14785
+ Content-Length:
14786
+ - '183'
14787
+ Connection:
14788
+ - Keep-Alive
14789
+ body:
14790
+ encoding: UTF-8
14791
+ string: |-
14792
+ {
14793
+ "id": 273,
14794
+ "survey_id": 85,
14795
+ "question_id": 8,
14796
+ "order_index": null,
14797
+ "answer": null,
14798
+ "created_at": "2014-09-21T20:28:01.550Z",
14799
+ "updated_at": "2014-09-21T20:28:01.550Z"
14800
+ }
14801
+ http_version:
14802
+ recorded_at: Sun, 21 Sep 2014 20:28:01 GMT
14879
14803
  - request:
14880
14804
  method: get
14881
- uri: http://localhost:3000/api/questions/
14805
+ uri: http://localhost:3000/api/surveys/85
14882
14806
  body:
14883
14807
  encoding: US-ASCII
14884
14808
  string: ''
@@ -14909,62 +14833,419 @@ http_interactions:
14909
14833
  Content-Type:
14910
14834
  - application/json; charset=utf-8
14911
14835
  Etag:
14912
- - '"00b082ab08fa212cd932dcae5cb61a0c"'
14836
+ - '"674e5f94e54a5b9ee8cb570743e72455"'
14913
14837
  Cache-Control:
14914
14838
  - max-age=0, private, must-revalidate
14915
14839
  X-Request-Id:
14916
- - 810fdf94-a142-427e-b880-c68422d54afd
14840
+ - 9d4420c4-1f7c-40fd-af10-85418136bdeb
14917
14841
  X-Runtime:
14918
- - '0.007515'
14842
+ - '0.012373'
14919
14843
  Server:
14920
14844
  - WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
14921
14845
  Date:
14922
14846
  - Sun, 21 Sep 2014 20:28:01 GMT
14923
14847
  Content-Length:
14924
- - '7773'
14848
+ - '1047'
14925
14849
  Connection:
14926
14850
  - Keep-Alive
14927
14851
  body:
14928
14852
  encoding: UTF-8
14929
14853
  string: |-
14930
- [
14931
- {
14932
- "id": 1,
14933
- "question_type": "multiple",
14934
- "text": "How hungry or full are you right now?",
14935
- "responses": [
14936
- "Very hungry",
14937
- "Somewhat hungry",
14938
- "Neither full nor hungry",
14939
- "Somewhat full",
14940
- "Very full"
14941
- ],
14942
- "freeform": false
14943
- },
14944
- {
14945
- "id": 2,
14946
- "question_type": "time",
14947
- "text": "What time did you wake up this morning?",
14948
- "responses": null,
14949
- "freeform": false
14950
- },
14951
- {
14952
- "id": 3,
14953
- "question_type": "time",
14954
- "text": "What time did you got to sleep last night?",
14955
- "responses": null,
14956
- "freeform": false
14854
+ {
14855
+ "id": 85,
14856
+ "service_user_id": "e81f9df2f19ac3d0e4634061bff685bbb732abb269049eafdd4fa9ae7c836c6b",
14857
+ "_links": {
14858
+ "self": {
14859
+ "href": "http://localhost:3000/api/surveys/85"
14860
+ },
14861
+ "survey_questions": {
14862
+ "post": {
14863
+ "href": "/api/surveys/85/survey_questions"
14864
+ },
14865
+ "put": {
14866
+ "href": "/api/surveys/85/survey_questions"
14867
+ }
14868
+ }
14957
14869
  },
14958
- {
14959
- "id": 4,
14960
- "question_type": "multiple",
14961
- "text": "Are you judging or evaluating yourself right now (i.e. at the moment just before you were notified)?",
14962
- "responses": [
14963
- "f",
14964
- "Yes - Negatively",
14965
- "Yes - Neutrally",
14966
- "Yes - Positively"
14967
- ],
14870
+ "completed": false,
14871
+ "survey_questions": [
14872
+ {
14873
+ "id": 273,
14874
+ "text": "In the past 24 hours, have you engaged in sexual activity with another person?",
14875
+ "type": "boolean",
14876
+ "responses": [
14877
+ "t",
14878
+ "f"
14879
+ ],
14880
+ "answer": null,
14881
+ "freeform": false,
14882
+ "_links": {
14883
+ "self": {
14884
+ "href": "/api/surveys/85/survey_questions/273"
14885
+ },
14886
+ "post": {
14887
+ "href": "http://localhost:3000/api/surveys/85/survey_questions"
14888
+ },
14889
+ "put": {
14890
+ "href": "/api/surveys/85/survey_questions/273"
14891
+ },
14892
+ "survey": {
14893
+ "href": "/api/surveys/85"
14894
+ }
14895
+ }
14896
+ }
14897
+ ]
14898
+ }
14899
+ http_version:
14900
+ recorded_at: Sun, 21 Sep 2014 20:28:01 GMT
14901
+ - request:
14902
+ method: put
14903
+ uri: http://localhost:3000//api/surveys/85/survey_questions/273/
14904
+ body:
14905
+ encoding: UTF-8
14906
+ string: '{"id":273,"survey_question":{"answer":"true"}}'
14907
+ headers:
14908
+ User-Agent:
14909
+ - Faraday v0.9.0
14910
+ Content-Type:
14911
+ - application/json
14912
+ Api-Token:
14913
+ - testing
14914
+ Accept-Encoding:
14915
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14916
+ Accept:
14917
+ - "*/*"
14918
+ response:
14919
+ status:
14920
+ code: 204
14921
+ message: 'No Content '
14922
+ headers:
14923
+ X-Frame-Options:
14924
+ - SAMEORIGIN
14925
+ X-Xss-Protection:
14926
+ - 1; mode=block
14927
+ X-Content-Type-Options:
14928
+ - nosniff
14929
+ X-Ua-Compatible:
14930
+ - chrome=1
14931
+ Cache-Control:
14932
+ - no-cache
14933
+ X-Request-Id:
14934
+ - 71d0e4dd-d2ee-4cd7-a568-440900a986e2
14935
+ X-Runtime:
14936
+ - '0.008926'
14937
+ Server:
14938
+ - WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
14939
+ Date:
14940
+ - Sun, 21 Sep 2014 20:28:01 GMT
14941
+ Connection:
14942
+ - Keep-Alive
14943
+ body:
14944
+ encoding: UTF-8
14945
+ string: ''
14946
+ http_version:
14947
+ recorded_at: Sun, 21 Sep 2014 20:28:01 GMT
14948
+ - request:
14949
+ method: get
14950
+ uri: http://localhost:3000/api/surveys/85
14951
+ body:
14952
+ encoding: US-ASCII
14953
+ string: ''
14954
+ headers:
14955
+ User-Agent:
14956
+ - Faraday v0.9.0
14957
+ Content-Type:
14958
+ - application/json
14959
+ Api-Token:
14960
+ - testing
14961
+ Accept-Encoding:
14962
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14963
+ Accept:
14964
+ - "*/*"
14965
+ response:
14966
+ status:
14967
+ code: 200
14968
+ message: 'OK '
14969
+ headers:
14970
+ X-Frame-Options:
14971
+ - SAMEORIGIN
14972
+ X-Xss-Protection:
14973
+ - 1; mode=block
14974
+ X-Content-Type-Options:
14975
+ - nosniff
14976
+ X-Ua-Compatible:
14977
+ - chrome=1
14978
+ Content-Type:
14979
+ - application/json; charset=utf-8
14980
+ Etag:
14981
+ - '"a2660eba320809d7ce2e0d2dab4a1284"'
14982
+ Cache-Control:
14983
+ - max-age=0, private, must-revalidate
14984
+ X-Request-Id:
14985
+ - 4202f5c0-8f24-444c-9255-5f3495448bc1
14986
+ X-Runtime:
14987
+ - '0.009863'
14988
+ Server:
14989
+ - WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
14990
+ Date:
14991
+ - Sun, 21 Sep 2014 20:28:01 GMT
14992
+ Content-Length:
14993
+ - '1049'
14994
+ Connection:
14995
+ - Keep-Alive
14996
+ body:
14997
+ encoding: UTF-8
14998
+ string: |-
14999
+ {
15000
+ "id": 85,
15001
+ "service_user_id": "e81f9df2f19ac3d0e4634061bff685bbb732abb269049eafdd4fa9ae7c836c6b",
15002
+ "_links": {
15003
+ "self": {
15004
+ "href": "http://localhost:3000/api/surveys/85"
15005
+ },
15006
+ "survey_questions": {
15007
+ "post": {
15008
+ "href": "/api/surveys/85/survey_questions"
15009
+ },
15010
+ "put": {
15011
+ "href": "/api/surveys/85/survey_questions"
15012
+ }
15013
+ }
15014
+ },
15015
+ "completed": false,
15016
+ "survey_questions": [
15017
+ {
15018
+ "id": 273,
15019
+ "text": "In the past 24 hours, have you engaged in sexual activity with another person?",
15020
+ "type": "boolean",
15021
+ "responses": [
15022
+ "t",
15023
+ "f"
15024
+ ],
15025
+ "answer": "true",
15026
+ "freeform": false,
15027
+ "_links": {
15028
+ "self": {
15029
+ "href": "/api/surveys/85/survey_questions/273"
15030
+ },
15031
+ "post": {
15032
+ "href": "http://localhost:3000/api/surveys/85/survey_questions"
15033
+ },
15034
+ "put": {
15035
+ "href": "/api/surveys/85/survey_questions/273"
15036
+ },
15037
+ "survey": {
15038
+ "href": "/api/surveys/85"
15039
+ }
15040
+ }
15041
+ }
15042
+ ]
15043
+ }
15044
+ http_version:
15045
+ recorded_at: Sun, 21 Sep 2014 20:28:01 GMT
15046
+ - request:
15047
+ method: get
15048
+ uri: http://localhost:3000/
15049
+ body:
15050
+ encoding: US-ASCII
15051
+ string: ''
15052
+ headers:
15053
+ User-Agent:
15054
+ - Faraday v0.9.0
15055
+ Content-Type:
15056
+ - application/json
15057
+ Api-Token:
15058
+ - testing
15059
+ Accept-Encoding:
15060
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
15061
+ Accept:
15062
+ - "*/*"
15063
+ response:
15064
+ status:
15065
+ code: 301
15066
+ message: Moved Permanently
15067
+ headers:
15068
+ Location:
15069
+ - http://dev.kitchensurfing.com:3000/
15070
+ Content-Type:
15071
+ - text/html
15072
+ Vary:
15073
+ - Accept-Encoding
15074
+ Connection:
15075
+ - close
15076
+ Server:
15077
+ - thin 1.6.1 codename Death Proof
15078
+ body:
15079
+ encoding: UTF-8
15080
+ string: |
15081
+ <!DOCTYPE html>
15082
+ <html lang="en-US">
15083
+ <head><title>301 Moved Permanently</title></head>
15084
+ <body>
15085
+ <h1>Moved Permanently</h1>
15086
+ <p>The document has moved <a href="http://dev.kitchensurfing.com:3000/">here</a>.</p>
15087
+ </body>
15088
+ </html>
15089
+ http_version:
15090
+ recorded_at: Thu, 25 Sep 2014 02:18:59 GMT
15091
+ - request:
15092
+ method: get
15093
+ uri: http://localhost:3000/
15094
+ body:
15095
+ encoding: US-ASCII
15096
+ string: ''
15097
+ headers:
15098
+ User-Agent:
15099
+ - Faraday v0.9.0
15100
+ Content-Type:
15101
+ - application/json
15102
+ Api-Token:
15103
+ - testing
15104
+ Accept-Encoding:
15105
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
15106
+ Accept:
15107
+ - "*/*"
15108
+ response:
15109
+ status:
15110
+ code: 200
15111
+ message: 'OK '
15112
+ headers:
15113
+ X-Frame-Options:
15114
+ - SAMEORIGIN
15115
+ X-Xss-Protection:
15116
+ - 1; mode=block
15117
+ X-Content-Type-Options:
15118
+ - nosniff
15119
+ X-Ua-Compatible:
15120
+ - chrome=1
15121
+ Content-Type:
15122
+ - application/json; charset=utf-8
15123
+ Etag:
15124
+ - '"c4942090acbc96722cba50e4cecfde73"'
15125
+ Cache-Control:
15126
+ - max-age=0, private, must-revalidate
15127
+ X-Request-Id:
15128
+ - 40bbfe03-af62-41e2-bad3-b8e6159af1aa
15129
+ X-Runtime:
15130
+ - '0.151868'
15131
+ Server:
15132
+ - WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
15133
+ Date:
15134
+ - Thu, 25 Sep 2014 02:20:49 GMT
15135
+ Content-Length:
15136
+ - '236'
15137
+ Connection:
15138
+ - Keep-Alive
15139
+ body:
15140
+ encoding: UTF-8
15141
+ string: |-
15142
+ {
15143
+ "_links": {
15144
+ "self": {
15145
+ "href": "http://localhost:3000/"
15146
+ },
15147
+ "surveys": {
15148
+ "href": "api/surveys"
15149
+ },
15150
+ "users": {
15151
+ "href": "api/users"
15152
+ },
15153
+ "questions": {
15154
+ "href": "api/questions"
15155
+ }
15156
+ }
15157
+ }
15158
+ http_version:
15159
+ recorded_at: Thu, 25 Sep 2014 02:20:49 GMT
15160
+ - request:
15161
+ method: get
15162
+ uri: http://localhost:3000/api/questions/
15163
+ body:
15164
+ encoding: US-ASCII
15165
+ string: ''
15166
+ headers:
15167
+ User-Agent:
15168
+ - Faraday v0.9.0
15169
+ Content-Type:
15170
+ - application/json
15171
+ Api-Token:
15172
+ - testing
15173
+ Accept-Encoding:
15174
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
15175
+ Accept:
15176
+ - "*/*"
15177
+ response:
15178
+ status:
15179
+ code: 200
15180
+ message: 'OK '
15181
+ headers:
15182
+ X-Frame-Options:
15183
+ - SAMEORIGIN
15184
+ X-Xss-Protection:
15185
+ - 1; mode=block
15186
+ X-Content-Type-Options:
15187
+ - nosniff
15188
+ X-Ua-Compatible:
15189
+ - chrome=1
15190
+ Content-Type:
15191
+ - application/json; charset=utf-8
15192
+ Etag:
15193
+ - '"00b082ab08fa212cd932dcae5cb61a0c"'
15194
+ Cache-Control:
15195
+ - max-age=0, private, must-revalidate
15196
+ X-Request-Id:
15197
+ - 03f9bc59-811c-49b3-9fa2-d23ee7b8a128
15198
+ X-Runtime:
15199
+ - '0.047539'
15200
+ Server:
15201
+ - WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
15202
+ Date:
15203
+ - Thu, 25 Sep 2014 02:20:49 GMT
15204
+ Content-Length:
15205
+ - '7773'
15206
+ Connection:
15207
+ - Keep-Alive
15208
+ body:
15209
+ encoding: UTF-8
15210
+ string: |-
15211
+ [
15212
+ {
15213
+ "id": 1,
15214
+ "question_type": "multiple",
15215
+ "text": "How hungry or full are you right now?",
15216
+ "responses": [
15217
+ "Very hungry",
15218
+ "Somewhat hungry",
15219
+ "Neither full nor hungry",
15220
+ "Somewhat full",
15221
+ "Very full"
15222
+ ],
15223
+ "freeform": false
15224
+ },
15225
+ {
15226
+ "id": 2,
15227
+ "question_type": "time",
15228
+ "text": "What time did you wake up this morning?",
15229
+ "responses": null,
15230
+ "freeform": false
15231
+ },
15232
+ {
15233
+ "id": 3,
15234
+ "question_type": "time",
15235
+ "text": "What time did you got to sleep last night?",
15236
+ "responses": null,
15237
+ "freeform": false
15238
+ },
15239
+ {
15240
+ "id": 4,
15241
+ "question_type": "multiple",
15242
+ "text": "Are you judging or evaluating yourself right now (i.e. at the moment just before you were notified)?",
15243
+ "responses": [
15244
+ "f",
15245
+ "Yes - Negatively",
15246
+ "Yes - Neutrally",
15247
+ "Yes - Positively"
15248
+ ],
14968
15249
  "freeform": false
14969
15250
  },
14970
15251
  {
@@ -15294,7 +15575,7 @@ http_interactions:
15294
15575
  }
15295
15576
  ]
15296
15577
  http_version:
15297
- recorded_at: Sun, 21 Sep 2014 20:28:01 GMT
15578
+ recorded_at: Thu, 25 Sep 2014 02:20:49 GMT
15298
15579
  - request:
15299
15580
  method: post
15300
15581
  uri: http://localhost:3000/api/users/
@@ -15328,17 +15609,17 @@ http_interactions:
15328
15609
  Content-Type:
15329
15610
  - application/json; charset=utf-8
15330
15611
  Etag:
15331
- - '"3c4f499314539ae2fef530fafbdf789b"'
15612
+ - '"8b5944b9472f9ff5f19c58662e165309"'
15332
15613
  Cache-Control:
15333
15614
  - max-age=0, private, must-revalidate
15334
15615
  X-Request-Id:
15335
- - ac8ecf5c-4719-437c-a146-35f3c3887487
15616
+ - 347f86f6-ce95-4c00-a5e9-580b1e7f53ea
15336
15617
  X-Runtime:
15337
- - '0.006820'
15618
+ - '0.047155'
15338
15619
  Server:
15339
15620
  - WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
15340
15621
  Date:
15341
- - Sun, 21 Sep 2014 20:28:01 GMT
15622
+ - Thu, 25 Sep 2014 02:20:49 GMT
15342
15623
  Content-Length:
15343
15624
  - '260'
15344
15625
  Connection:
@@ -15347,22 +15628,22 @@ http_interactions:
15347
15628
  encoding: UTF-8
15348
15629
  string: |-
15349
15630
  {
15350
- "service_user_id": "e81f9df2f19ac3d0e4634061bff685bbb732abb269049eafdd4fa9ae7c836c6b",
15631
+ "service_user_id": "15ca863968ba448ea8640c5fbe7e376e89cb265c716b77471756e4e3fd14286b",
15351
15632
  "_links": {
15352
15633
  "self": {
15353
- "href": "http://localhost:3000/api/users/85"
15634
+ "href": "http://localhost:3000/api/users/88"
15354
15635
  }
15355
15636
  },
15356
- "token": "c2ffdad2f8fb5aa69b36f5ea0468938657cf4a56a20fd6fda99e9f279b8f8b89"
15637
+ "token": "d1b76955ec2c8927eec529af87e6bf6c7597b0f16413e7e3b3098ad7b72b31b3"
15357
15638
  }
15358
15639
  http_version:
15359
- recorded_at: Sun, 21 Sep 2014 20:28:01 GMT
15640
+ recorded_at: Thu, 25 Sep 2014 02:20:49 GMT
15360
15641
  - request:
15361
15642
  method: post
15362
15643
  uri: http://localhost:3000/api/surveys/
15363
15644
  body:
15364
15645
  encoding: UTF-8
15365
- string: '{"survey":{"service_user_id":"e81f9df2f19ac3d0e4634061bff685bbb732abb269049eafdd4fa9ae7c836c6b"}}'
15646
+ string: '{"survey":{"service_user_id":"15ca863968ba448ea8640c5fbe7e376e89cb265c716b77471756e4e3fd14286b"}}'
15366
15647
  headers:
15367
15648
  User-Agent:
15368
15649
  - Faraday v0.9.0
@@ -15390,17 +15671,17 @@ http_interactions:
15390
15671
  Content-Type:
15391
15672
  - application/json; charset=utf-8
15392
15673
  Etag:
15393
- - '"4376523c879b5593f892ac9b1c368d67"'
15674
+ - '"a0aab186af771562fd59367f0abe58e8"'
15394
15675
  Cache-Control:
15395
15676
  - max-age=0, private, must-revalidate
15396
15677
  X-Request-Id:
15397
- - 35f50bee-928a-4f39-9217-4b8857d7569c
15678
+ - 09f6a89c-c07a-4a06-af1e-5e893422fedd
15398
15679
  X-Runtime:
15399
- - '0.009673'
15680
+ - '0.048703'
15400
15681
  Server:
15401
15682
  - WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
15402
15683
  Date:
15403
- - Sun, 21 Sep 2014 20:28:01 GMT
15684
+ - Thu, 25 Sep 2014 02:20:49 GMT
15404
15685
  Content-Length:
15405
15686
  - '430'
15406
15687
  Connection:
@@ -15409,18 +15690,18 @@ http_interactions:
15409
15690
  encoding: UTF-8
15410
15691
  string: |-
15411
15692
  {
15412
- "id": 85,
15413
- "service_user_id": "e81f9df2f19ac3d0e4634061bff685bbb732abb269049eafdd4fa9ae7c836c6b",
15693
+ "id": 88,
15694
+ "service_user_id": "15ca863968ba448ea8640c5fbe7e376e89cb265c716b77471756e4e3fd14286b",
15414
15695
  "_links": {
15415
15696
  "self": {
15416
- "href": "http://localhost:3000/api/surveys/85"
15697
+ "href": "http://localhost:3000/api/surveys/88"
15417
15698
  },
15418
15699
  "survey_questions": {
15419
15700
  "post": {
15420
- "href": "/api/surveys/85/survey_questions"
15701
+ "href": "/api/surveys/88/survey_questions"
15421
15702
  },
15422
15703
  "put": {
15423
- "href": "/api/surveys/85/survey_questions"
15704
+ "href": "/api/surveys/88/survey_questions"
15424
15705
  }
15425
15706
  }
15426
15707
  },
@@ -15430,10 +15711,10 @@ http_interactions:
15430
15711
  ]
15431
15712
  }
15432
15713
  http_version:
15433
- recorded_at: Sun, 21 Sep 2014 20:28:01 GMT
15714
+ recorded_at: Thu, 25 Sep 2014 02:20:49 GMT
15434
15715
  - request:
15435
15716
  method: post
15436
- uri: http://localhost:3000//api/surveys/85/survey_questions/
15717
+ uri: http://localhost:3000//api/surveys/88/survey_questions/
15437
15718
  body:
15438
15719
  encoding: UTF-8
15439
15720
  string: '{"survey_question":{"question_id":8}}'
@@ -15464,139 +15745,57 @@ http_interactions:
15464
15745
  Content-Type:
15465
15746
  - application/json; charset=utf-8
15466
15747
  Etag:
15467
- - '"0921cf9ad8198f4107b506e34daa617c"'
15748
+ - '"341345f5b904be9cfeb55f2622fb5319"'
15468
15749
  Cache-Control:
15469
15750
  - max-age=0, private, must-revalidate
15470
15751
  X-Request-Id:
15471
- - 377ac222-dcd1-4eeb-98cd-2526517dea6f
15752
+ - 4b6cf99f-cbd6-4567-844c-89e2df21b628
15472
15753
  X-Runtime:
15473
- - '0.009732'
15754
+ - '0.024067'
15474
15755
  Server:
15475
15756
  - WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
15476
15757
  Date:
15477
- - Sun, 21 Sep 2014 20:28:01 GMT
15758
+ - Thu, 25 Sep 2014 02:20:49 GMT
15478
15759
  Content-Length:
15479
- - '183'
15760
+ - '517'
15480
15761
  Connection:
15481
15762
  - Keep-Alive
15482
15763
  body:
15483
15764
  encoding: UTF-8
15484
15765
  string: |-
15485
15766
  {
15486
- "id": 273,
15487
- "survey_id": 85,
15488
- "question_id": 8,
15489
- "order_index": null,
15767
+ "id": 281,
15768
+ "text": "In the past 24 hours, have you engaged in sexual activity with another person?",
15769
+ "type": "boolean",
15770
+ "responses": [
15771
+ "t",
15772
+ "f"
15773
+ ],
15490
15774
  "answer": null,
15491
- "created_at": "2014-09-21T20:28:01.550Z",
15492
- "updated_at": "2014-09-21T20:28:01.550Z"
15493
- }
15494
- http_version:
15495
- recorded_at: Sun, 21 Sep 2014 20:28:01 GMT
15496
- - request:
15497
- method: get
15498
- uri: http://localhost:3000/api/surveys/85
15499
- body:
15500
- encoding: US-ASCII
15501
- string: ''
15502
- headers:
15503
- User-Agent:
15504
- - Faraday v0.9.0
15505
- Content-Type:
15506
- - application/json
15507
- Api-Token:
15508
- - testing
15509
- Accept-Encoding:
15510
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
15511
- Accept:
15512
- - "*/*"
15513
- response:
15514
- status:
15515
- code: 200
15516
- message: 'OK '
15517
- headers:
15518
- X-Frame-Options:
15519
- - SAMEORIGIN
15520
- X-Xss-Protection:
15521
- - 1; mode=block
15522
- X-Content-Type-Options:
15523
- - nosniff
15524
- X-Ua-Compatible:
15525
- - chrome=1
15526
- Content-Type:
15527
- - application/json; charset=utf-8
15528
- Etag:
15529
- - '"674e5f94e54a5b9ee8cb570743e72455"'
15530
- Cache-Control:
15531
- - max-age=0, private, must-revalidate
15532
- X-Request-Id:
15533
- - 9d4420c4-1f7c-40fd-af10-85418136bdeb
15534
- X-Runtime:
15535
- - '0.012373'
15536
- Server:
15537
- - WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
15538
- Date:
15539
- - Sun, 21 Sep 2014 20:28:01 GMT
15540
- Content-Length:
15541
- - '1047'
15542
- Connection:
15543
- - Keep-Alive
15544
- body:
15545
- encoding: UTF-8
15546
- string: |-
15547
- {
15548
- "id": 85,
15549
- "service_user_id": "e81f9df2f19ac3d0e4634061bff685bbb732abb269049eafdd4fa9ae7c836c6b",
15775
+ "freeform": false,
15550
15776
  "_links": {
15551
15777
  "self": {
15552
- "href": "http://localhost:3000/api/surveys/85"
15778
+ "href": "/api/surveys/88/survey_questions/281"
15553
15779
  },
15554
- "survey_questions": {
15555
- "post": {
15556
- "href": "/api/surveys/85/survey_questions"
15557
- },
15558
- "put": {
15559
- "href": "/api/surveys/85/survey_questions"
15560
- }
15561
- }
15562
- },
15563
- "completed": false,
15564
- "survey_questions": [
15565
- {
15566
- "id": 273,
15567
- "text": "In the past 24 hours, have you engaged in sexual activity with another person?",
15568
- "type": "boolean",
15569
- "responses": [
15570
- "t",
15571
- "f"
15572
- ],
15573
- "answer": null,
15574
- "freeform": false,
15575
- "_links": {
15576
- "self": {
15577
- "href": "/api/surveys/85/survey_questions/273"
15578
- },
15579
- "post": {
15580
- "href": "http://localhost:3000/api/surveys/85/survey_questions"
15581
- },
15582
- "put": {
15583
- "href": "/api/surveys/85/survey_questions/273"
15584
- },
15585
- "survey": {
15586
- "href": "/api/surveys/85"
15587
- }
15588
- }
15780
+ "post": {
15781
+ "href": "http://localhost:3000/api/surveys/88/survey_questions"
15782
+ },
15783
+ "put": {
15784
+ "href": "/api/surveys/88/survey_questions/281"
15785
+ },
15786
+ "survey": {
15787
+ "href": "/api/surveys/88"
15589
15788
  }
15590
- ]
15789
+ }
15591
15790
  }
15592
15791
  http_version:
15593
- recorded_at: Sun, 21 Sep 2014 20:28:01 GMT
15792
+ recorded_at: Thu, 25 Sep 2014 02:20:49 GMT
15594
15793
  - request:
15595
15794
  method: put
15596
- uri: http://localhost:3000//api/surveys/85/survey_questions/273/
15795
+ uri: http://localhost:3000//api/surveys/88/survey_questions/281/
15597
15796
  body:
15598
15797
  encoding: UTF-8
15599
- string: '{"id":273,"survey_question":{"answer":"true"}}'
15798
+ string: '{"id":281,"survey_question":{"answer":"true"}}'
15600
15799
  headers:
15601
15800
  User-Agent:
15602
15801
  - Faraday v0.9.0
@@ -15624,23 +15823,23 @@ http_interactions:
15624
15823
  Cache-Control:
15625
15824
  - no-cache
15626
15825
  X-Request-Id:
15627
- - 71d0e4dd-d2ee-4cd7-a568-440900a986e2
15826
+ - b1c0538f-0d0d-4ec7-8164-b41f50031754
15628
15827
  X-Runtime:
15629
- - '0.008926'
15828
+ - '0.011603'
15630
15829
  Server:
15631
15830
  - WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
15632
15831
  Date:
15633
- - Sun, 21 Sep 2014 20:28:01 GMT
15832
+ - Thu, 25 Sep 2014 02:21:10 GMT
15634
15833
  Connection:
15635
15834
  - Keep-Alive
15636
15835
  body:
15637
15836
  encoding: UTF-8
15638
15837
  string: ''
15639
15838
  http_version:
15640
- recorded_at: Sun, 21 Sep 2014 20:28:01 GMT
15839
+ recorded_at: Thu, 25 Sep 2014 02:21:10 GMT
15641
15840
  - request:
15642
15841
  method: get
15643
- uri: http://localhost:3000/api/surveys/85
15842
+ uri: http://localhost:3000/api/surveys/88
15644
15843
  body:
15645
15844
  encoding: US-ASCII
15646
15845
  string: ''
@@ -15671,17 +15870,17 @@ http_interactions:
15671
15870
  Content-Type:
15672
15871
  - application/json; charset=utf-8
15673
15872
  Etag:
15674
- - '"a2660eba320809d7ce2e0d2dab4a1284"'
15873
+ - '"55af729e4470bcdc4b7c55b2480986a5"'
15675
15874
  Cache-Control:
15676
15875
  - max-age=0, private, must-revalidate
15677
15876
  X-Request-Id:
15678
- - 4202f5c0-8f24-444c-9255-5f3495448bc1
15877
+ - 3e61dc95-1de1-4558-ae3a-ab93de56205b
15679
15878
  X-Runtime:
15680
- - '0.009863'
15879
+ - '0.012168'
15681
15880
  Server:
15682
15881
  - WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
15683
15882
  Date:
15684
- - Sun, 21 Sep 2014 20:28:01 GMT
15883
+ - Thu, 25 Sep 2014 02:21:10 GMT
15685
15884
  Content-Length:
15686
15885
  - '1049'
15687
15886
  Connection:
@@ -15690,25 +15889,25 @@ http_interactions:
15690
15889
  encoding: UTF-8
15691
15890
  string: |-
15692
15891
  {
15693
- "id": 85,
15694
- "service_user_id": "e81f9df2f19ac3d0e4634061bff685bbb732abb269049eafdd4fa9ae7c836c6b",
15892
+ "id": 88,
15893
+ "service_user_id": "15ca863968ba448ea8640c5fbe7e376e89cb265c716b77471756e4e3fd14286b",
15695
15894
  "_links": {
15696
15895
  "self": {
15697
- "href": "http://localhost:3000/api/surveys/85"
15896
+ "href": "http://localhost:3000/api/surveys/88"
15698
15897
  },
15699
15898
  "survey_questions": {
15700
15899
  "post": {
15701
- "href": "/api/surveys/85/survey_questions"
15900
+ "href": "/api/surveys/88/survey_questions"
15702
15901
  },
15703
15902
  "put": {
15704
- "href": "/api/surveys/85/survey_questions"
15903
+ "href": "/api/surveys/88/survey_questions"
15705
15904
  }
15706
15905
  }
15707
15906
  },
15708
15907
  "completed": false,
15709
15908
  "survey_questions": [
15710
15909
  {
15711
- "id": 273,
15910
+ "id": 281,
15712
15911
  "text": "In the past 24 hours, have you engaged in sexual activity with another person?",
15713
15912
  "type": "boolean",
15714
15913
  "responses": [
@@ -15719,21 +15918,21 @@ http_interactions:
15719
15918
  "freeform": false,
15720
15919
  "_links": {
15721
15920
  "self": {
15722
- "href": "/api/surveys/85/survey_questions/273"
15921
+ "href": "/api/surveys/88/survey_questions/281"
15723
15922
  },
15724
15923
  "post": {
15725
- "href": "http://localhost:3000/api/surveys/85/survey_questions"
15924
+ "href": "http://localhost:3000/api/surveys/88/survey_questions"
15726
15925
  },
15727
15926
  "put": {
15728
- "href": "/api/surveys/85/survey_questions/273"
15927
+ "href": "/api/surveys/88/survey_questions/281"
15729
15928
  },
15730
15929
  "survey": {
15731
- "href": "/api/surveys/85"
15930
+ "href": "/api/surveys/88"
15732
15931
  }
15733
15932
  }
15734
15933
  }
15735
15934
  ]
15736
15935
  }
15737
15936
  http_version:
15738
- recorded_at: Sun, 21 Sep 2014 20:28:01 GMT
15937
+ recorded_at: Thu, 25 Sep 2014 02:21:10 GMT
15739
15938
  recorded_with: VCR 2.6.0