poptart 0.0.8 → 0.0.9

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,135 +1,5 @@
1
1
  ---
2
2
  http_interactions:
3
- - request:
4
- method: post
5
- uri: http://localhost:3000/api/users
6
- body:
7
- encoding: UTF-8
8
- string: '{"user":{"external_user_id":42}}'
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: 201
23
- message: 'Created '
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
- - '"430a6d2f346c4d2092de2d6fa50364e2"'
37
- Cache-Control:
38
- - max-age=0, private, must-revalidate
39
- X-Request-Id:
40
- - 34e2a402-a661-424b-a24a-d33a86cd3713
41
- X-Runtime:
42
- - '0.009264'
43
- Server:
44
- - WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
45
- Date:
46
- - Tue, 09 Sep 2014 23:20:54 GMT
47
- Content-Length:
48
- - '130'
49
- Connection:
50
- - Keep-Alive
51
- body:
52
- encoding: UTF-8
53
- string: |-
54
- {
55
- "id": 50,
56
- "external_user_id": 42,
57
- "_links": {
58
- "self": {
59
- "href": "http://localhost:3000/api/users/50"
60
- }
61
- }
62
- }
63
- http_version:
64
- recorded_at: Tue, 09 Sep 2014 23:20:54 GMT
65
- - request:
66
- method: post
67
- uri: http://localhost:3000/api/surveys
68
- body:
69
- encoding: UTF-8
70
- string: '{"survey":{"user_id":50}}'
71
- headers:
72
- User-Agent:
73
- - Faraday v0.9.0
74
- Content-Type:
75
- - application/json
76
- Api-Token:
77
- - testing
78
- Accept-Encoding:
79
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
80
- Accept:
81
- - "*/*"
82
- response:
83
- status:
84
- code: 201
85
- message: 'Created '
86
- headers:
87
- X-Frame-Options:
88
- - SAMEORIGIN
89
- X-Xss-Protection:
90
- - 1; mode=block
91
- X-Content-Type-Options:
92
- - nosniff
93
- X-Ua-Compatible:
94
- - chrome=1
95
- Content-Type:
96
- - application/json; charset=utf-8
97
- Etag:
98
- - '"241f67aedbc8e18828f8194ccc3e5b98"'
99
- Cache-Control:
100
- - max-age=0, private, must-revalidate
101
- X-Request-Id:
102
- - 51db76ec-eb9c-4489-b2d9-37b1c18bfa69
103
- X-Runtime:
104
- - '0.010127'
105
- Server:
106
- - WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
107
- Date:
108
- - Tue, 09 Sep 2014 23:20:54 GMT
109
- Content-Length:
110
- - '246'
111
- Connection:
112
- - Keep-Alive
113
- body:
114
- encoding: UTF-8
115
- string: |-
116
- {
117
- "id": 41,
118
- "user_id": 50,
119
- "_links": {
120
- "self": {
121
- "href": "http://localhost:3000/api/surveys/41"
122
- },
123
- "submit": {
124
- "href": "http://localhost:3000/api/surveys/41/survey_questions"
125
- }
126
- },
127
- "survey_questions": [
128
-
129
- ]
130
- }
131
- http_version:
132
- recorded_at: Tue, 09 Sep 2014 23:20:54 GMT
133
3
  - request:
134
4
  method: post
135
5
  uri: http://localhost:3000/api/http:%2F%2Flocalhost:3000%2Fapi%2F%252Fusers%2F/
@@ -603,11 +473,11 @@ http_interactions:
603
473
  http_version:
604
474
  recorded_at: Sat, 13 Sep 2014 15:31:11 GMT
605
475
  - request:
606
- method: get
607
- uri: http://localhost:3000/
476
+ method: post
477
+ uri: http://localhost:3000/api/users/
608
478
  body:
609
- encoding: US-ASCII
610
- string: ''
479
+ encoding: UTF-8
480
+ string: "{}"
611
481
  headers:
612
482
  User-Agent:
613
483
  - Faraday v0.9.0
@@ -621,8 +491,8 @@ http_interactions:
621
491
  - "*/*"
622
492
  response:
623
493
  status:
624
- code: 200
625
- message: 'OK '
494
+ code: 201
495
+ message: 'Created '
626
496
  headers:
627
497
  X-Frame-Options:
628
498
  - SAMEORIGIN
@@ -635,42 +505,245 @@ http_interactions:
635
505
  Content-Type:
636
506
  - application/json; charset=utf-8
637
507
  Etag:
638
- - '"c4942090acbc96722cba50e4cecfde73"'
508
+ - '"7d668db17eac8d5c1a74cc75d4728516"'
639
509
  Cache-Control:
640
510
  - max-age=0, private, must-revalidate
641
511
  X-Request-Id:
642
- - f8360f86-4721-4525-9143-afcf8e409220
512
+ - 5467a6ec-54a6-466a-a1d3-4625b7bcdf74
643
513
  X-Runtime:
644
- - '0.005768'
514
+ - '0.008218'
645
515
  Server:
646
516
  - WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
647
517
  Date:
648
- - Sun, 21 Sep 2014 20:28:00 GMT
518
+ - Sat, 04 Oct 2014 17:52:43 GMT
649
519
  Content-Length:
650
- - '236'
520
+ - '261'
651
521
  Connection:
652
522
  - Keep-Alive
653
523
  body:
654
524
  encoding: UTF-8
655
525
  string: |-
656
526
  {
527
+ "service_user_id": "ddb58084a0a40c81dc199a6e07ecedb3e5c0e11b31b8c379a7ea59f831b42b70",
657
528
  "_links": {
658
529
  "self": {
659
- "href": "http://localhost:3000/"
660
- },
661
- "surveys": {
662
- "href": "api/surveys"
530
+ "href": "http://localhost:3000/api/users/116"
531
+ }
532
+ },
533
+ "token": "c002fc44875a964c37d4d45f9bb5cbdee8bbf0c1d4a055062d778921ea0c6f3b"
534
+ }
535
+ http_version:
536
+ recorded_at: Sat, 04 Oct 2014 17:52:43 GMT
537
+ - request:
538
+ method: post
539
+ uri: http://localhost:3000/api/surveys/
540
+ body:
541
+ encoding: UTF-8
542
+ string: '{"survey":{"service_user_id":"ddb58084a0a40c81dc199a6e07ecedb3e5c0e11b31b8c379a7ea59f831b42b70"}}'
543
+ headers:
544
+ User-Agent:
545
+ - Faraday v0.9.0
546
+ Content-Type:
547
+ - application/json
548
+ Api-Token:
549
+ - testing
550
+ Accept-Encoding:
551
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
552
+ Accept:
553
+ - "*/*"
554
+ response:
555
+ status:
556
+ code: 201
557
+ message: 'Created '
558
+ headers:
559
+ X-Frame-Options:
560
+ - SAMEORIGIN
561
+ X-Xss-Protection:
562
+ - 1; mode=block
563
+ X-Content-Type-Options:
564
+ - nosniff
565
+ X-Ua-Compatible:
566
+ - chrome=1
567
+ Content-Type:
568
+ - application/json; charset=utf-8
569
+ Etag:
570
+ - '"7d628dbb1405d946282e0bf0b155ba76"'
571
+ Cache-Control:
572
+ - max-age=0, private, must-revalidate
573
+ X-Request-Id:
574
+ - ef67f910-ab36-4d9d-b098-07627c63e10b
575
+ X-Runtime:
576
+ - '0.009648'
577
+ Server:
578
+ - WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
579
+ Date:
580
+ - Sat, 04 Oct 2014 17:52:43 GMT
581
+ Content-Length:
582
+ - '434'
583
+ Connection:
584
+ - Keep-Alive
585
+ body:
586
+ encoding: UTF-8
587
+ string: |-
588
+ {
589
+ "id": 120,
590
+ "service_user_id": "ddb58084a0a40c81dc199a6e07ecedb3e5c0e11b31b8c379a7ea59f831b42b70",
591
+ "_links": {
592
+ "self": {
593
+ "href": "http://localhost:3000/api/surveys/120"
663
594
  },
664
- "users": {
665
- "href": "api/users"
595
+ "survey_questions": {
596
+ "post": {
597
+ "href": "/api/surveys/120/survey_questions"
598
+ },
599
+ "put": {
600
+ "href": "/api/surveys/120/survey_questions"
601
+ }
602
+ }
603
+ },
604
+ "completed": false,
605
+ "survey_questions": [
606
+
607
+ ]
608
+ }
609
+ http_version:
610
+ recorded_at: Sat, 04 Oct 2014 17:52:43 GMT
611
+ - request:
612
+ method: post
613
+ uri: http://localhost:3000/api/users//
614
+ body:
615
+ encoding: UTF-8
616
+ string: "{}"
617
+ headers:
618
+ User-Agent:
619
+ - Faraday v0.9.0
620
+ Content-Type:
621
+ - application/json
622
+ Api-Token:
623
+ - testing
624
+ Accept-Encoding:
625
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
626
+ Accept:
627
+ - "*/*"
628
+ response:
629
+ status:
630
+ code: 201
631
+ message: 'Created '
632
+ headers:
633
+ X-Frame-Options:
634
+ - SAMEORIGIN
635
+ X-Xss-Protection:
636
+ - 1; mode=block
637
+ X-Content-Type-Options:
638
+ - nosniff
639
+ X-Ua-Compatible:
640
+ - chrome=1
641
+ Content-Type:
642
+ - application/json; charset=utf-8
643
+ Etag:
644
+ - '"9f89e4a2b1a68dc9ecc61ffa0a730ee6"'
645
+ Cache-Control:
646
+ - max-age=0, private, must-revalidate
647
+ X-Request-Id:
648
+ - 2cb570ca-3d75-45a2-adb8-777d5848202d
649
+ X-Runtime:
650
+ - '0.007841'
651
+ Server:
652
+ - WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
653
+ Date:
654
+ - Sat, 04 Oct 2014 18:11:10 GMT
655
+ Content-Length:
656
+ - '261'
657
+ Connection:
658
+ - Keep-Alive
659
+ body:
660
+ encoding: UTF-8
661
+ string: |-
662
+ {
663
+ "service_user_id": "785856c54e3f20175d24f1471649039ef08dae0f87393323903a536d31cf8aaa",
664
+ "_links": {
665
+ "self": {
666
+ "href": "http://localhost:3000/api/users/131"
667
+ }
668
+ },
669
+ "token": "a901d5c1a2b6291dbd931562af93fcaa7fdcc194cf89086dbe8c0d53a590705d"
670
+ }
671
+ http_version:
672
+ recorded_at: Sat, 04 Oct 2014 18:11:10 GMT
673
+ - request:
674
+ method: post
675
+ uri: http://localhost:3000/api/surveys//
676
+ body:
677
+ encoding: UTF-8
678
+ string: '{"survey":{"service_user_id":"785856c54e3f20175d24f1471649039ef08dae0f87393323903a536d31cf8aaa"}}'
679
+ headers:
680
+ User-Agent:
681
+ - Faraday v0.9.0
682
+ Content-Type:
683
+ - application/json
684
+ Api-Token:
685
+ - testing
686
+ Accept-Encoding:
687
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
688
+ Accept:
689
+ - "*/*"
690
+ response:
691
+ status:
692
+ code: 201
693
+ message: 'Created '
694
+ headers:
695
+ X-Frame-Options:
696
+ - SAMEORIGIN
697
+ X-Xss-Protection:
698
+ - 1; mode=block
699
+ X-Content-Type-Options:
700
+ - nosniff
701
+ X-Ua-Compatible:
702
+ - chrome=1
703
+ Content-Type:
704
+ - application/json; charset=utf-8
705
+ Etag:
706
+ - '"dc307fd556316fd07ff7d8410d59a348"'
707
+ Cache-Control:
708
+ - max-age=0, private, must-revalidate
709
+ X-Request-Id:
710
+ - f20d6fe7-f846-4274-888a-308b63541bd3
711
+ X-Runtime:
712
+ - '0.012477'
713
+ Server:
714
+ - WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
715
+ Date:
716
+ - Sat, 04 Oct 2014 18:11:10 GMT
717
+ Content-Length:
718
+ - '434'
719
+ Connection:
720
+ - Keep-Alive
721
+ body:
722
+ encoding: UTF-8
723
+ string: |-
724
+ {
725
+ "id": 135,
726
+ "service_user_id": "785856c54e3f20175d24f1471649039ef08dae0f87393323903a536d31cf8aaa",
727
+ "_links": {
728
+ "self": {
729
+ "href": "http://localhost:3000/api/surveys/135"
666
730
  },
667
- "questions": {
668
- "href": "api/questions"
731
+ "survey_questions": {
732
+ "post": {
733
+ "href": "/api/surveys/135/survey_questions"
734
+ },
735
+ "put": {
736
+ "href": "/api/surveys/135/survey_questions"
737
+ }
669
738
  }
670
- }
739
+ },
740
+ "completed": false,
741
+ "survey_questions": [
742
+
743
+ ]
671
744
  }
672
745
  http_version:
673
- recorded_at: Sun, 21 Sep 2014 20:28:00 GMT
746
+ recorded_at: Sat, 04 Oct 2014 18:11:10 GMT
674
747
  - request:
675
748
  method: get
676
749
  uri: http://localhost:3000/
@@ -704,19 +777,19 @@ http_interactions:
704
777
  Content-Type:
705
778
  - application/json; charset=utf-8
706
779
  Etag:
707
- - '"c4942090acbc96722cba50e4cecfde73"'
780
+ - '"2aa11a1ab77b139e58f765299f923a01"'
708
781
  Cache-Control:
709
782
  - max-age=0, private, must-revalidate
710
783
  X-Request-Id:
711
- - 79b06cac-71d9-4540-974a-f904f3a420af
784
+ - ce4e5741-53f0-4754-930c-c2af827fb44f
712
785
  X-Runtime:
713
- - '0.006611'
786
+ - '0.004875'
714
787
  Server:
715
788
  - WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
716
789
  Date:
717
- - Sun, 21 Sep 2014 20:28:00 GMT
790
+ - Sun, 05 Oct 2014 12:53:39 GMT
718
791
  Content-Length:
719
- - '236'
792
+ - '469'
720
793
  Connection:
721
794
  - Keep-Alive
722
795
  body:
@@ -728,21 +801,24 @@ http_interactions:
728
801
  "href": "http://localhost:3000/"
729
802
  },
730
803
  "surveys": {
731
- "href": "api/surveys"
804
+ "href": "http://localhost:3000/api/surveys{/id}{?query*}"
732
805
  },
733
806
  "users": {
734
- "href": "api/users"
807
+ "href": "http://localhost:3000/api/users{/id}{?query*}"
735
808
  },
736
809
  "questions": {
737
- "href": "api/questions"
810
+ "href": "http://localhost:3000/api/questions{/id}{?query*}"
811
+ },
812
+ "survey_questions": {
813
+ "href": "http://localhost:3000/api/questions{/question_id}/survey_questions{?query*}"
738
814
  }
739
815
  }
740
816
  }
741
817
  http_version:
742
- recorded_at: Sun, 21 Sep 2014 20:28:00 GMT
818
+ recorded_at: Sun, 05 Oct 2014 12:53:39 GMT
743
819
  - request:
744
820
  method: post
745
- uri: http://localhost:3000/api/users/
821
+ uri: http://localhost:3000/api/users
746
822
  body:
747
823
  encoding: UTF-8
748
824
  string: "{}"
@@ -773,41 +849,113 @@ http_interactions:
773
849
  Content-Type:
774
850
  - application/json; charset=utf-8
775
851
  Etag:
776
- - '"624fa492a51bf95b510c63f10516c9e1"'
852
+ - '"c4610473e47d4dcf167c47e21407a7ae"'
777
853
  Cache-Control:
778
854
  - max-age=0, private, must-revalidate
779
855
  X-Request-Id:
780
- - 554f38a5-83ea-4d2f-a5a5-b7d9f397ef38
856
+ - 0492c7d3-c1be-46db-9d15-4f244d39d384
781
857
  X-Runtime:
782
- - '0.009139'
858
+ - '0.008915'
783
859
  Server:
784
860
  - WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
785
861
  Date:
786
- - Sun, 21 Sep 2014 20:28:01 GMT
862
+ - Sun, 05 Oct 2014 12:53:39 GMT
787
863
  Content-Length:
788
- - '260'
864
+ - '261'
789
865
  Connection:
790
866
  - Keep-Alive
791
867
  body:
792
868
  encoding: UTF-8
793
869
  string: |-
794
870
  {
795
- "service_user_id": "e81f9df2f19ac3d0e4634061bff685bbb732abb269049eafdd4fa9ae7c836c6b",
871
+ "service_user_id": "68c0979c917ca4065705eaa133bea6ef3345e50f2729fe0f1a5d84e113ed9a05",
796
872
  "_links": {
797
873
  "self": {
798
- "href": "http://localhost:3000/api/users/82"
874
+ "href": "http://localhost:3000/api/users/203"
799
875
  }
800
876
  },
801
- "token": "c2ffdad2f8fb5aa69b36f5ea0468938657cf4a56a20fd6fda99e9f279b8f8b89"
877
+ "token": "35f31a9744c8de6608c42ed0014133732eb48df39890c0a7bd60e67ffb71bc4a"
878
+ }
879
+ http_version:
880
+ recorded_at: Sun, 05 Oct 2014 12:53:39 GMT
881
+ - request:
882
+ method: get
883
+ uri: http://localhost:3000/
884
+ body:
885
+ encoding: US-ASCII
886
+ string: ''
887
+ headers:
888
+ User-Agent:
889
+ - Faraday v0.9.0
890
+ Content-Type:
891
+ - application/json
892
+ Api-Token:
893
+ - testing
894
+ Accept-Encoding:
895
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
896
+ Accept:
897
+ - "*/*"
898
+ response:
899
+ status:
900
+ code: 200
901
+ message: 'OK '
902
+ headers:
903
+ X-Frame-Options:
904
+ - SAMEORIGIN
905
+ X-Xss-Protection:
906
+ - 1; mode=block
907
+ X-Content-Type-Options:
908
+ - nosniff
909
+ X-Ua-Compatible:
910
+ - chrome=1
911
+ Content-Type:
912
+ - application/json; charset=utf-8
913
+ Etag:
914
+ - '"2aa11a1ab77b139e58f765299f923a01"'
915
+ Cache-Control:
916
+ - max-age=0, private, must-revalidate
917
+ X-Request-Id:
918
+ - 59a2c680-bf5c-4730-b84d-444d57fbd99a
919
+ X-Runtime:
920
+ - '0.005531'
921
+ Server:
922
+ - WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
923
+ Date:
924
+ - Sun, 05 Oct 2014 12:53:39 GMT
925
+ Content-Length:
926
+ - '469'
927
+ Connection:
928
+ - Keep-Alive
929
+ body:
930
+ encoding: UTF-8
931
+ string: |-
932
+ {
933
+ "_links": {
934
+ "self": {
935
+ "href": "http://localhost:3000/"
936
+ },
937
+ "surveys": {
938
+ "href": "http://localhost:3000/api/surveys{/id}{?query*}"
939
+ },
940
+ "users": {
941
+ "href": "http://localhost:3000/api/users{/id}{?query*}"
942
+ },
943
+ "questions": {
944
+ "href": "http://localhost:3000/api/questions{/id}{?query*}"
945
+ },
946
+ "survey_questions": {
947
+ "href": "http://localhost:3000/api/questions{/question_id}/survey_questions{?query*}"
948
+ }
949
+ }
802
950
  }
803
951
  http_version:
804
- recorded_at: Sun, 21 Sep 2014 20:28:01 GMT
952
+ recorded_at: Sun, 05 Oct 2014 12:53:39 GMT
805
953
  - request:
806
954
  method: post
807
- uri: http://localhost:3000/api/surveys/
955
+ uri: http://localhost:3000/api/surveys
808
956
  body:
809
957
  encoding: UTF-8
810
- string: '{"survey":{"service_user_id":"e81f9df2f19ac3d0e4634061bff685bbb732abb269049eafdd4fa9ae7c836c6b"}}'
958
+ string: '{"survey":{"service_user_id":"68c0979c917ca4065705eaa133bea6ef3345e50f2729fe0f1a5d84e113ed9a05"}}'
811
959
  headers:
812
960
  User-Agent:
813
961
  - Faraday v0.9.0
@@ -835,37 +983,37 @@ http_interactions:
835
983
  Content-Type:
836
984
  - application/json; charset=utf-8
837
985
  Etag:
838
- - '"5bbe949d28bdd6a9071aa4d4a516d95d"'
986
+ - '"cbbefce2510307c1f51c5c636eb4ca3b"'
839
987
  Cache-Control:
840
988
  - max-age=0, private, must-revalidate
841
989
  X-Request-Id:
842
- - 4cc973a4-748a-4f02-897e-4fbf9b010136
990
+ - fb578236-2a8a-4c53-9c4e-33fe46d56f23
843
991
  X-Runtime:
844
- - '0.011637'
992
+ - '0.008369'
845
993
  Server:
846
994
  - WEBrick/1.3.1 (Ruby/2.1.2/2014-05-08)
847
995
  Date:
848
- - Sun, 21 Sep 2014 20:28:01 GMT
996
+ - Sun, 05 Oct 2014 12:53:39 GMT
849
997
  Content-Length:
850
- - '430'
998
+ - '476'
851
999
  Connection:
852
1000
  - Keep-Alive
853
1001
  body:
854
1002
  encoding: UTF-8
855
1003
  string: |-
856
1004
  {
857
- "id": 82,
858
- "service_user_id": "e81f9df2f19ac3d0e4634061bff685bbb732abb269049eafdd4fa9ae7c836c6b",
1005
+ "id": 229,
1006
+ "service_user_id": "68c0979c917ca4065705eaa133bea6ef3345e50f2729fe0f1a5d84e113ed9a05",
859
1007
  "_links": {
860
1008
  "self": {
861
- "href": "http://localhost:3000/api/surveys/82"
1009
+ "href": "http://localhost:3000/api/surveys/229"
862
1010
  },
863
1011
  "survey_questions": {
864
1012
  "post": {
865
- "href": "/api/surveys/82/survey_questions"
1013
+ "href": "http://localhost:3000/api/surveys/229/survey_questions"
866
1014
  },
867
1015
  "put": {
868
- "href": "/api/surveys/82/survey_questions"
1016
+ "href": "http://localhost:3000/api/surveys/229/survey_questions"
869
1017
  }
870
1018
  }
871
1019
  },
@@ -875,5 +1023,5 @@ http_interactions:
875
1023
  ]
876
1024
  }
877
1025
  http_version:
878
- recorded_at: Sun, 21 Sep 2014 20:28:01 GMT
1026
+ recorded_at: Sun, 05 Oct 2014 12:53:39 GMT
879
1027
  recorded_with: VCR 2.6.0