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.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/poptart/request.rb +6 -0
- data/lib/poptart/user.rb +9 -2
- data/lib/poptart.rb +18 -0
- data/lib/version.rb +1 -1
- data/spec/requests/answering_survey_questions_spec.rb +6 -0
- data/spec/requests/answers_spec.rb +2 -0
- data/spec/requests/surveys_spec.rb +11 -0
- data/spec/requests/user_management_spec.rb +1 -0
- data/spec/vcr/answering/survey_questions_answers_a_multiple_choice_question.yml +3407 -626
- data/spec/vcr/answering/survey_questions_answers_a_survey_question.yml +6035 -1352
- data/spec/vcr/answering/survey_questions_creates_and_returns_a_random_question_survey.yml +75 -240
- data/spec/vcr/answering/survey_questions_creates_and_returns_an_empty_survey.yml +35 -27
- data/spec/vcr/answering/survey_questions_finds_survey_question_for_id.yml +73 -235
- data/spec/vcr/creating/quesitons_returns_boolean_question.yml +19 -15
- data/spec/vcr/creating/quesitons_returns_multiple_question.yml +76 -60
- data/spec/vcr/creating/quesitons_returns_range_question.yml +75 -59
- data/spec/vcr/retrieving/answers_returns_all_answered_survey_questions_for_a_question.yml +6923 -442
- data/spec/vcr/retrieving/answers_returns_all_answered_survey_questions_for_a_question_by_key.yml +2055 -329
- data/spec/vcr/surveys/fetchs_all_surveys_for_a_user.yml +476 -0
- data/spec/vcr/user/management_creates_a_user.yml +55 -48
- data/spec/vcr/user/management_returns_a_user.yml +468 -17
- metadata +6 -2
@@ -450,6 +450,449 @@ http_interactions:
|
|
450
450
|
}
|
451
451
|
http_version:
|
452
452
|
recorded_at: Sun, 05 Oct 2014 12:55:49 GMT
|
453
|
+
- request:
|
454
|
+
method: get
|
455
|
+
uri: http://localhost:3000/api/users/6636fecbce7c6e772ee47a4ccf75a48dbbd5f773eed970554b0ed96e6a4e6f70
|
456
|
+
body:
|
457
|
+
encoding: US-ASCII
|
458
|
+
string: ''
|
459
|
+
headers:
|
460
|
+
User-Agent:
|
461
|
+
- Faraday v0.9.0
|
462
|
+
Content-Type:
|
463
|
+
- application/json
|
464
|
+
Api-Token:
|
465
|
+
- testing
|
466
|
+
Accept-Encoding:
|
467
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
468
|
+
Accept:
|
469
|
+
- "*/*"
|
470
|
+
response:
|
471
|
+
status:
|
472
|
+
code: 200
|
473
|
+
message: 'OK '
|
474
|
+
headers:
|
475
|
+
X-Frame-Options:
|
476
|
+
- SAMEORIGIN
|
477
|
+
X-Xss-Protection:
|
478
|
+
- 1; mode=block
|
479
|
+
X-Content-Type-Options:
|
480
|
+
- nosniff
|
481
|
+
X-Ua-Compatible:
|
482
|
+
- chrome=1
|
483
|
+
Content-Type:
|
484
|
+
- application/json; charset=utf-8
|
485
|
+
Etag:
|
486
|
+
- '"c19dca84f25b0b3148d9b9fd598c818f"'
|
487
|
+
Cache-Control:
|
488
|
+
- max-age=0, private, must-revalidate
|
489
|
+
X-Request-Id:
|
490
|
+
- 60ba66f4-4ea5-4cfd-8d15-f40c180b7e1f
|
491
|
+
X-Runtime:
|
492
|
+
- '0.007054'
|
493
|
+
Server:
|
494
|
+
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
495
|
+
Date:
|
496
|
+
- Sun, 05 Oct 2014 12:56:55 GMT
|
497
|
+
Content-Length:
|
498
|
+
- '261'
|
499
|
+
Connection:
|
500
|
+
- Keep-Alive
|
501
|
+
body:
|
502
|
+
encoding: UTF-8
|
503
|
+
string: |-
|
504
|
+
{
|
505
|
+
"service_user_id": "6636fecbce7c6e772ee47a4ccf75a48dbbd5f773eed970554b0ed96e6a4e6f70",
|
506
|
+
"_links": {
|
507
|
+
"self": {
|
508
|
+
"href": "http://localhost:3000/api/users/211"
|
509
|
+
}
|
510
|
+
},
|
511
|
+
"token": "0ba0d61be9303076a3c8e381eaf4d3b63541fe8c5c6a86a3df69d437783acf8e"
|
512
|
+
}
|
513
|
+
http_version:
|
514
|
+
recorded_at: Sun, 05 Oct 2014 12:56:55 GMT
|
515
|
+
- request:
|
516
|
+
method: get
|
517
|
+
uri: http://localhost:3000/api/users/7a5541a99bd8b0823ba4dde7c4f38fff458729a6dccb3189417cff46f1fbef18
|
518
|
+
body:
|
519
|
+
encoding: US-ASCII
|
520
|
+
string: ''
|
521
|
+
headers:
|
522
|
+
User-Agent:
|
523
|
+
- Faraday v0.9.0
|
524
|
+
Content-Type:
|
525
|
+
- application/json
|
526
|
+
Api-Token:
|
527
|
+
- testing
|
528
|
+
Accept-Encoding:
|
529
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
530
|
+
Accept:
|
531
|
+
- "*/*"
|
532
|
+
response:
|
533
|
+
status:
|
534
|
+
code: 401
|
535
|
+
message: 'Unauthorized '
|
536
|
+
headers:
|
537
|
+
X-Frame-Options:
|
538
|
+
- SAMEORIGIN
|
539
|
+
X-Xss-Protection:
|
540
|
+
- 1; mode=block
|
541
|
+
X-Content-Type-Options:
|
542
|
+
- nosniff
|
543
|
+
X-Ua-Compatible:
|
544
|
+
- chrome=1
|
545
|
+
Content-Type:
|
546
|
+
- text/html
|
547
|
+
Cache-Control:
|
548
|
+
- no-cache
|
549
|
+
X-Request-Id:
|
550
|
+
- d357a8e5-8ef3-40eb-90be-be10067a9766
|
551
|
+
X-Runtime:
|
552
|
+
- '0.004571'
|
553
|
+
Server:
|
554
|
+
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
555
|
+
Date:
|
556
|
+
- Sat, 18 Oct 2014 17:22:53 GMT
|
557
|
+
Content-Length:
|
558
|
+
- '1'
|
559
|
+
Connection:
|
560
|
+
- Keep-Alive
|
561
|
+
body:
|
562
|
+
encoding: UTF-8
|
563
|
+
string: " "
|
564
|
+
http_version:
|
565
|
+
recorded_at: Sat, 18 Oct 2014 17:22:53 GMT
|
566
|
+
- request:
|
567
|
+
method: get
|
568
|
+
uri: http://localhost:3000/api/users/1e5f0a0b13bf4a940b97dd0598cf65ea157b448dafda9494ebc21e151b12286d
|
569
|
+
body:
|
570
|
+
encoding: US-ASCII
|
571
|
+
string: ''
|
572
|
+
headers:
|
573
|
+
User-Agent:
|
574
|
+
- Faraday v0.9.0
|
575
|
+
Content-Type:
|
576
|
+
- application/json
|
577
|
+
Api-Token:
|
578
|
+
- testing
|
579
|
+
User-Token:
|
580
|
+
- b4c910f7f048ac2b57fa7d5193ab5e9a6b751a24e8cc89e366f702fd12fa7bba
|
581
|
+
Service-User-Id:
|
582
|
+
- 1e5f0a0b13bf4a940b97dd0598cf65ea157b448dafda9494ebc21e151b12286d
|
583
|
+
Accept-Encoding:
|
584
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
585
|
+
Accept:
|
586
|
+
- "*/*"
|
587
|
+
response:
|
588
|
+
status:
|
589
|
+
code: 200
|
590
|
+
message: 'OK '
|
591
|
+
headers:
|
592
|
+
X-Frame-Options:
|
593
|
+
- SAMEORIGIN
|
594
|
+
X-Xss-Protection:
|
595
|
+
- 1; mode=block
|
596
|
+
X-Content-Type-Options:
|
597
|
+
- nosniff
|
598
|
+
X-Ua-Compatible:
|
599
|
+
- chrome=1
|
600
|
+
Content-Type:
|
601
|
+
- application/json; charset=utf-8
|
602
|
+
Etag:
|
603
|
+
- '"453673f7522daace4151ec19e090ada7"'
|
604
|
+
Cache-Control:
|
605
|
+
- max-age=0, private, must-revalidate
|
606
|
+
X-Request-Id:
|
607
|
+
- 38a3cc0f-0080-460b-86bb-e321ff2c721f
|
608
|
+
X-Runtime:
|
609
|
+
- '0.005772'
|
610
|
+
Server:
|
611
|
+
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
612
|
+
Date:
|
613
|
+
- Sat, 18 Oct 2014 17:23:04 GMT
|
614
|
+
Content-Length:
|
615
|
+
- '260'
|
616
|
+
Connection:
|
617
|
+
- Keep-Alive
|
618
|
+
body:
|
619
|
+
encoding: UTF-8
|
620
|
+
string: |-
|
621
|
+
{
|
622
|
+
"service_user_id": "1e5f0a0b13bf4a940b97dd0598cf65ea157b448dafda9494ebc21e151b12286d",
|
623
|
+
"_links": {
|
624
|
+
"self": {
|
625
|
+
"href": "http://localhost:3000/api/users/84"
|
626
|
+
}
|
627
|
+
},
|
628
|
+
"token": "b4c910f7f048ac2b57fa7d5193ab5e9a6b751a24e8cc89e366f702fd12fa7bba"
|
629
|
+
}
|
630
|
+
http_version:
|
631
|
+
recorded_at: Sat, 18 Oct 2014 17:23:04 GMT
|
632
|
+
- request:
|
633
|
+
method: get
|
634
|
+
uri: http://localhost:3000/api/users/ef6d675788ed9555e7485aed8fe5b55188e5ed5d37df5da1fdb6c426a0c46f63
|
635
|
+
body:
|
636
|
+
encoding: US-ASCII
|
637
|
+
string: ''
|
638
|
+
headers:
|
639
|
+
User-Agent:
|
640
|
+
- Faraday v0.9.0
|
641
|
+
Content-Type:
|
642
|
+
- application/json
|
643
|
+
Api-Token:
|
644
|
+
- testing
|
645
|
+
User-Token:
|
646
|
+
- 22db57748b2f4d2df0fe34d9cb03199fc6ddd6bfa2a9c7423d657f58eee85e68
|
647
|
+
Service-User-Id:
|
648
|
+
- ef6d675788ed9555e7485aed8fe5b55188e5ed5d37df5da1fdb6c426a0c46f63
|
649
|
+
Accept-Encoding:
|
650
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
651
|
+
Accept:
|
652
|
+
- "*/*"
|
653
|
+
response:
|
654
|
+
status:
|
655
|
+
code: 200
|
656
|
+
message: 'OK '
|
657
|
+
headers:
|
658
|
+
X-Frame-Options:
|
659
|
+
- SAMEORIGIN
|
660
|
+
X-Xss-Protection:
|
661
|
+
- 1; mode=block
|
662
|
+
X-Content-Type-Options:
|
663
|
+
- nosniff
|
664
|
+
X-Ua-Compatible:
|
665
|
+
- chrome=1
|
666
|
+
Content-Type:
|
667
|
+
- application/json; charset=utf-8
|
668
|
+
Etag:
|
669
|
+
- '"cd7569cc45add0bd1e1c7649bf251ad2"'
|
670
|
+
Cache-Control:
|
671
|
+
- max-age=0, private, must-revalidate
|
672
|
+
X-Request-Id:
|
673
|
+
- a337c95a-af8a-49f3-85e5-bebfd44b05ec
|
674
|
+
X-Runtime:
|
675
|
+
- '0.006433'
|
676
|
+
Server:
|
677
|
+
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
678
|
+
Date:
|
679
|
+
- Sat, 18 Oct 2014 17:26:55 GMT
|
680
|
+
Content-Length:
|
681
|
+
- '260'
|
682
|
+
Connection:
|
683
|
+
- Keep-Alive
|
684
|
+
body:
|
685
|
+
encoding: UTF-8
|
686
|
+
string: |-
|
687
|
+
{
|
688
|
+
"service_user_id": "ef6d675788ed9555e7485aed8fe5b55188e5ed5d37df5da1fdb6c426a0c46f63",
|
689
|
+
"_links": {
|
690
|
+
"self": {
|
691
|
+
"href": "http://localhost:3000/api/users/99"
|
692
|
+
}
|
693
|
+
},
|
694
|
+
"token": "22db57748b2f4d2df0fe34d9cb03199fc6ddd6bfa2a9c7423d657f58eee85e68"
|
695
|
+
}
|
696
|
+
http_version:
|
697
|
+
recorded_at: Sat, 18 Oct 2014 17:26:55 GMT
|
698
|
+
- request:
|
699
|
+
method: get
|
700
|
+
uri: http://localhost:3000/api/users/9b9cecf62bf7b0209bc1d02efe07c39d3b4c9aea55305263c0a5ea3a879ac114
|
701
|
+
body:
|
702
|
+
encoding: US-ASCII
|
703
|
+
string: ''
|
704
|
+
headers:
|
705
|
+
User-Agent:
|
706
|
+
- Faraday v0.9.0
|
707
|
+
Content-Type:
|
708
|
+
- application/json
|
709
|
+
Api-Token:
|
710
|
+
- testing
|
711
|
+
User-Token:
|
712
|
+
- 6f60976124c03c4dcb6eec1203befa6e93931b5232dfaf40eae202f652518523
|
713
|
+
Service-User-Id:
|
714
|
+
- 9b9cecf62bf7b0209bc1d02efe07c39d3b4c9aea55305263c0a5ea3a879ac114
|
715
|
+
Accept-Encoding:
|
716
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
717
|
+
Accept:
|
718
|
+
- "*/*"
|
719
|
+
response:
|
720
|
+
status:
|
721
|
+
code: 200
|
722
|
+
message: 'OK '
|
723
|
+
headers:
|
724
|
+
X-Frame-Options:
|
725
|
+
- SAMEORIGIN
|
726
|
+
X-Xss-Protection:
|
727
|
+
- 1; mode=block
|
728
|
+
X-Content-Type-Options:
|
729
|
+
- nosniff
|
730
|
+
X-Ua-Compatible:
|
731
|
+
- chrome=1
|
732
|
+
Content-Type:
|
733
|
+
- application/json; charset=utf-8
|
734
|
+
Etag:
|
735
|
+
- '"c7338947bbdb8eaabd01901825b10191"'
|
736
|
+
Cache-Control:
|
737
|
+
- max-age=0, private, must-revalidate
|
738
|
+
X-Request-Id:
|
739
|
+
- 01eeeaa3-b037-4b03-a310-785ecab48f7d
|
740
|
+
X-Runtime:
|
741
|
+
- '0.005983'
|
742
|
+
Server:
|
743
|
+
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
744
|
+
Date:
|
745
|
+
- Sat, 18 Oct 2014 17:28:27 GMT
|
746
|
+
Content-Length:
|
747
|
+
- '261'
|
748
|
+
Connection:
|
749
|
+
- Keep-Alive
|
750
|
+
body:
|
751
|
+
encoding: UTF-8
|
752
|
+
string: |-
|
753
|
+
{
|
754
|
+
"service_user_id": "9b9cecf62bf7b0209bc1d02efe07c39d3b4c9aea55305263c0a5ea3a879ac114",
|
755
|
+
"_links": {
|
756
|
+
"self": {
|
757
|
+
"href": "http://localhost:3000/api/users/109"
|
758
|
+
}
|
759
|
+
},
|
760
|
+
"token": "6f60976124c03c4dcb6eec1203befa6e93931b5232dfaf40eae202f652518523"
|
761
|
+
}
|
762
|
+
http_version:
|
763
|
+
recorded_at: Sat, 18 Oct 2014 17:28:27 GMT
|
764
|
+
- request:
|
765
|
+
method: get
|
766
|
+
uri: http://localhost:3000/api/users/9ca365303eaa6b3b8d5588ea43d7d55de8a571918e30278cceaba70ed416bc00
|
767
|
+
body:
|
768
|
+
encoding: US-ASCII
|
769
|
+
string: ''
|
770
|
+
headers:
|
771
|
+
User-Agent:
|
772
|
+
- Faraday v0.9.0
|
773
|
+
Content-Type:
|
774
|
+
- application/json
|
775
|
+
Api-Token:
|
776
|
+
- testing
|
777
|
+
User-Token:
|
778
|
+
- 440198e9b51b97a8d9d9a4466f5fc014f32b961ad0f2b5423c94070ef5fb5d4c
|
779
|
+
Service-User-Id:
|
780
|
+
- 9ca365303eaa6b3b8d5588ea43d7d55de8a571918e30278cceaba70ed416bc00
|
781
|
+
Accept-Encoding:
|
782
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
783
|
+
Accept:
|
784
|
+
- "*/*"
|
785
|
+
response:
|
786
|
+
status:
|
787
|
+
code: 200
|
788
|
+
message: 'OK '
|
789
|
+
headers:
|
790
|
+
X-Frame-Options:
|
791
|
+
- SAMEORIGIN
|
792
|
+
X-Xss-Protection:
|
793
|
+
- 1; mode=block
|
794
|
+
X-Content-Type-Options:
|
795
|
+
- nosniff
|
796
|
+
X-Ua-Compatible:
|
797
|
+
- chrome=1
|
798
|
+
Content-Type:
|
799
|
+
- application/json; charset=utf-8
|
800
|
+
Etag:
|
801
|
+
- '"2cec193468012756c3209fd1a55bffd2"'
|
802
|
+
Cache-Control:
|
803
|
+
- max-age=0, private, must-revalidate
|
804
|
+
X-Request-Id:
|
805
|
+
- 5d8df003-0ec7-4032-86f2-f45cfb422296
|
806
|
+
X-Runtime:
|
807
|
+
- '0.005367'
|
808
|
+
Server:
|
809
|
+
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
810
|
+
Date:
|
811
|
+
- Sat, 18 Oct 2014 17:30:45 GMT
|
812
|
+
Content-Length:
|
813
|
+
- '261'
|
814
|
+
Connection:
|
815
|
+
- Keep-Alive
|
816
|
+
body:
|
817
|
+
encoding: UTF-8
|
818
|
+
string: |-
|
819
|
+
{
|
820
|
+
"service_user_id": "9ca365303eaa6b3b8d5588ea43d7d55de8a571918e30278cceaba70ed416bc00",
|
821
|
+
"_links": {
|
822
|
+
"self": {
|
823
|
+
"href": "http://localhost:3000/api/users/151"
|
824
|
+
}
|
825
|
+
},
|
826
|
+
"token": "440198e9b51b97a8d9d9a4466f5fc014f32b961ad0f2b5423c94070ef5fb5d4c"
|
827
|
+
}
|
828
|
+
http_version:
|
829
|
+
recorded_at: Sat, 18 Oct 2014 17:30:45 GMT
|
830
|
+
- request:
|
831
|
+
method: get
|
832
|
+
uri: http://localhost:3000/api/users/deb03cc2a27b47a93f5d1883c9a264410f7dfb6785192a8d1952f0b0aacc5b8a
|
833
|
+
body:
|
834
|
+
encoding: US-ASCII
|
835
|
+
string: ''
|
836
|
+
headers:
|
837
|
+
User-Agent:
|
838
|
+
- Faraday v0.9.0
|
839
|
+
Content-Type:
|
840
|
+
- application/json
|
841
|
+
Api-Token:
|
842
|
+
- testing
|
843
|
+
User-Token:
|
844
|
+
- 79abe0acc02e7c7a4ecb9d282f2b960136e2fc479e997547082bb2b48e7f0f1e
|
845
|
+
Service-User-Id:
|
846
|
+
- deb03cc2a27b47a93f5d1883c9a264410f7dfb6785192a8d1952f0b0aacc5b8a
|
847
|
+
Accept-Encoding:
|
848
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
849
|
+
Accept:
|
850
|
+
- "*/*"
|
851
|
+
response:
|
852
|
+
status:
|
853
|
+
code: 200
|
854
|
+
message: 'OK '
|
855
|
+
headers:
|
856
|
+
X-Frame-Options:
|
857
|
+
- SAMEORIGIN
|
858
|
+
X-Xss-Protection:
|
859
|
+
- 1; mode=block
|
860
|
+
X-Content-Type-Options:
|
861
|
+
- nosniff
|
862
|
+
X-Ua-Compatible:
|
863
|
+
- chrome=1
|
864
|
+
Content-Type:
|
865
|
+
- application/json; charset=utf-8
|
866
|
+
Etag:
|
867
|
+
- '"340ade85edb137551bf5d7f98622e403"'
|
868
|
+
Cache-Control:
|
869
|
+
- max-age=0, private, must-revalidate
|
870
|
+
X-Request-Id:
|
871
|
+
- 13d0b87e-603f-4e98-817d-de6e60b0a349
|
872
|
+
X-Runtime:
|
873
|
+
- '0.005189'
|
874
|
+
Server:
|
875
|
+
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
876
|
+
Date:
|
877
|
+
- Sat, 18 Oct 2014 17:31:05 GMT
|
878
|
+
Content-Length:
|
879
|
+
- '261'
|
880
|
+
Connection:
|
881
|
+
- Keep-Alive
|
882
|
+
body:
|
883
|
+
encoding: UTF-8
|
884
|
+
string: |-
|
885
|
+
{
|
886
|
+
"service_user_id": "deb03cc2a27b47a93f5d1883c9a264410f7dfb6785192a8d1952f0b0aacc5b8a",
|
887
|
+
"_links": {
|
888
|
+
"self": {
|
889
|
+
"href": "http://localhost:3000/api/users/154"
|
890
|
+
}
|
891
|
+
},
|
892
|
+
"token": "79abe0acc02e7c7a4ecb9d282f2b960136e2fc479e997547082bb2b48e7f0f1e"
|
893
|
+
}
|
894
|
+
http_version:
|
895
|
+
recorded_at: Sat, 18 Oct 2014 17:31:05 GMT
|
453
896
|
- request:
|
454
897
|
method: post
|
455
898
|
uri: http://localhost:3000/api/users
|
@@ -463,6 +906,10 @@ http_interactions:
|
|
463
906
|
- application/json
|
464
907
|
Api-Token:
|
465
908
|
- testing
|
909
|
+
User-Token:
|
910
|
+
- 440198e9b51b97a8d9d9a4466f5fc014f32b961ad0f2b5423c94070ef5fb5d4c
|
911
|
+
Service-User-Id:
|
912
|
+
- 9ca365303eaa6b3b8d5588ea43d7d55de8a571918e30278cceaba70ed416bc00
|
466
913
|
Accept-Encoding:
|
467
914
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
468
915
|
Accept:
|
@@ -483,17 +930,17 @@ http_interactions:
|
|
483
930
|
Content-Type:
|
484
931
|
- application/json; charset=utf-8
|
485
932
|
Etag:
|
486
|
-
- '"
|
933
|
+
- '"3a3abe1dca5b5a43d5be91869ad68bbb"'
|
487
934
|
Cache-Control:
|
488
935
|
- max-age=0, private, must-revalidate
|
489
936
|
X-Request-Id:
|
490
|
-
-
|
937
|
+
- 5cb66817-e884-487e-a693-da96282e1768
|
491
938
|
X-Runtime:
|
492
|
-
- '0.
|
939
|
+
- '0.007987'
|
493
940
|
Server:
|
494
941
|
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
495
942
|
Date:
|
496
|
-
-
|
943
|
+
- Sat, 18 Oct 2014 17:31:13 GMT
|
497
944
|
Content-Length:
|
498
945
|
- '261'
|
499
946
|
Connection:
|
@@ -502,19 +949,19 @@ http_interactions:
|
|
502
949
|
encoding: UTF-8
|
503
950
|
string: |-
|
504
951
|
{
|
505
|
-
"service_user_id": "
|
952
|
+
"service_user_id": "b98f19d9fc82b2d6ee9845a3844454b98a9f5b47a2b16dd48e768d18167c8133",
|
506
953
|
"_links": {
|
507
954
|
"self": {
|
508
|
-
"href": "http://localhost:3000/api/users/
|
955
|
+
"href": "http://localhost:3000/api/users/157"
|
509
956
|
}
|
510
957
|
},
|
511
|
-
"token": "
|
958
|
+
"token": "2d1af3825c28236b06e594daf2fcfec5edd7aed545beb06ea81becc246598385"
|
512
959
|
}
|
513
960
|
http_version:
|
514
|
-
recorded_at:
|
961
|
+
recorded_at: Sat, 18 Oct 2014 17:31:13 GMT
|
515
962
|
- request:
|
516
963
|
method: get
|
517
|
-
uri: http://localhost:3000/api/users/
|
964
|
+
uri: http://localhost:3000/api/users/b98f19d9fc82b2d6ee9845a3844454b98a9f5b47a2b16dd48e768d18167c8133
|
518
965
|
body:
|
519
966
|
encoding: US-ASCII
|
520
967
|
string: ''
|
@@ -525,6 +972,10 @@ http_interactions:
|
|
525
972
|
- application/json
|
526
973
|
Api-Token:
|
527
974
|
- testing
|
975
|
+
User-Token:
|
976
|
+
- 2d1af3825c28236b06e594daf2fcfec5edd7aed545beb06ea81becc246598385
|
977
|
+
Service-User-Id:
|
978
|
+
- b98f19d9fc82b2d6ee9845a3844454b98a9f5b47a2b16dd48e768d18167c8133
|
528
979
|
Accept-Encoding:
|
529
980
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
530
981
|
Accept:
|
@@ -545,17 +996,17 @@ http_interactions:
|
|
545
996
|
Content-Type:
|
546
997
|
- application/json; charset=utf-8
|
547
998
|
Etag:
|
548
|
-
- '"
|
999
|
+
- '"de524230fc03846624c6b07bdfb110c2"'
|
549
1000
|
Cache-Control:
|
550
1001
|
- max-age=0, private, must-revalidate
|
551
1002
|
X-Request-Id:
|
552
|
-
-
|
1003
|
+
- 3d4ba9bd-cfa1-4d99-ba5d-0f80630c3fff
|
553
1004
|
X-Runtime:
|
554
|
-
- '0.
|
1005
|
+
- '0.005653'
|
555
1006
|
Server:
|
556
1007
|
- WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
|
557
1008
|
Date:
|
558
|
-
-
|
1009
|
+
- Sat, 18 Oct 2014 17:31:13 GMT
|
559
1010
|
Content-Length:
|
560
1011
|
- '261'
|
561
1012
|
Connection:
|
@@ -564,14 +1015,14 @@ http_interactions:
|
|
564
1015
|
encoding: UTF-8
|
565
1016
|
string: |-
|
566
1017
|
{
|
567
|
-
"service_user_id": "
|
1018
|
+
"service_user_id": "b98f19d9fc82b2d6ee9845a3844454b98a9f5b47a2b16dd48e768d18167c8133",
|
568
1019
|
"_links": {
|
569
1020
|
"self": {
|
570
|
-
"href": "http://localhost:3000/api/users/
|
1021
|
+
"href": "http://localhost:3000/api/users/156"
|
571
1022
|
}
|
572
1023
|
},
|
573
|
-
"token": "
|
1024
|
+
"token": "2d1af3825c28236b06e594daf2fcfec5edd7aed545beb06ea81becc246598385"
|
574
1025
|
}
|
575
1026
|
http_version:
|
576
|
-
recorded_at:
|
1027
|
+
recorded_at: Sat, 18 Oct 2014 17:31:13 GMT
|
577
1028
|
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.11
|
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-10-
|
11
|
+
date: 2014-10-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -225,6 +225,7 @@ files:
|
|
225
225
|
- spec/requests/answering_survey_questions_spec.rb
|
226
226
|
- spec/requests/answers_spec.rb
|
227
227
|
- spec/requests/creating_questions_spec.rb
|
228
|
+
- spec/requests/surveys_spec.rb
|
228
229
|
- spec/requests/user_management_spec.rb
|
229
230
|
- spec/spec_helper.rb
|
230
231
|
- spec/vcr/answering/survey_questions_answers_a_multiple_choice_question.yml
|
@@ -243,6 +244,7 @@ files:
|
|
243
244
|
- spec/vcr/retrieving/answers_returns_all_answered_survey_questions_for_a_question_by_key.yml
|
244
245
|
- spec/vcr/retrieving/answers_returns_answers.yml
|
245
246
|
- spec/vcr/retrieving/responses_returns_responses.yml
|
247
|
+
- spec/vcr/surveys/fetchs_all_surveys_for_a_user.yml
|
246
248
|
- spec/vcr/user/management_creates_a_user.yml
|
247
249
|
- spec/vcr/user/management_returns_a_user.yml
|
248
250
|
- tags
|
@@ -274,6 +276,7 @@ test_files:
|
|
274
276
|
- spec/requests/answering_survey_questions_spec.rb
|
275
277
|
- spec/requests/answers_spec.rb
|
276
278
|
- spec/requests/creating_questions_spec.rb
|
279
|
+
- spec/requests/surveys_spec.rb
|
277
280
|
- spec/requests/user_management_spec.rb
|
278
281
|
- spec/spec_helper.rb
|
279
282
|
- spec/vcr/answering/survey_questions_answers_a_multiple_choice_question.yml
|
@@ -292,5 +295,6 @@ test_files:
|
|
292
295
|
- spec/vcr/retrieving/answers_returns_all_answered_survey_questions_for_a_question_by_key.yml
|
293
296
|
- spec/vcr/retrieving/answers_returns_answers.yml
|
294
297
|
- spec/vcr/retrieving/responses_returns_responses.yml
|
298
|
+
- spec/vcr/surveys/fetchs_all_surveys_for_a_user.yml
|
295
299
|
- spec/vcr/user/management_creates_a_user.yml
|
296
300
|
- spec/vcr/user/management_returns_a_user.yml
|