totter 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. data/.gitignore +17 -0
  2. data/.travis.yml +4 -0
  3. data/Contributing.markdown +19 -0
  4. data/Gemfile +22 -0
  5. data/LICENSE +22 -0
  6. data/Rakefile +21 -0
  7. data/Readme.markdown +49 -0
  8. data/lib/totter.rb +26 -0
  9. data/lib/totter/client.rb +152 -0
  10. data/lib/totter/client/choices.rb +74 -0
  11. data/lib/totter/client/decisions.rb +91 -0
  12. data/lib/totter/client/slugs.rb +19 -0
  13. data/lib/totter/client/timelines.rb +16 -0
  14. data/lib/totter/client/users.rb +54 -0
  15. data/lib/totter/client/votes.rb +25 -0
  16. data/lib/totter/error.rb +51 -0
  17. data/lib/totter/version.rb +4 -0
  18. data/test/cassettes/choices/create_choice_upload.yml +85 -0
  19. data/test/cassettes/choices/create_for_image.yml +87 -0
  20. data/test/cassettes/choices/destroy.yml +122 -0
  21. data/test/cassettes/choices/show.yml +42 -0
  22. data/test/cassettes/decisions/analytics.yml +85 -0
  23. data/test/cassettes/decisions/create.yml +44 -0
  24. data/test/cassettes/decisions/destroy.yml +81 -0
  25. data/test/cassettes/decisions/flag.yml +81 -0
  26. data/test/cassettes/decisions/publish.yml +129 -0
  27. data/test/cassettes/decisions/show.yml +84 -0
  28. data/test/cassettes/decisions/unflag.yml +122 -0
  29. data/test/cassettes/slugs/show.yml +75 -0
  30. data/test/cassettes/timelines/global.yml +165 -0
  31. data/test/cassettes/users/following.yml +194 -0
  32. data/test/cassettes/users/me.yml +43 -0
  33. data/test/cassettes/users/user.yml +49 -0
  34. data/test/cassettes/votes/create.yml +96 -0
  35. data/test/support/client_macros.rb +5 -0
  36. data/test/test_helper.rb +24 -0
  37. data/test/totter/client/choices_test.rb +48 -0
  38. data/test/totter/client/decisions_test.rb +77 -0
  39. data/test/totter/client/slugs_test.rb +11 -0
  40. data/test/totter/client/timelines_test.rb +9 -0
  41. data/test/totter/client/users_test.rb +36 -0
  42. data/test/totter/client/votes_test.rb +15 -0
  43. data/test/totter/client_test.rb +31 -0
  44. data/test/totter_test.rb +17 -0
  45. data/totter.gemspec +24 -0
  46. metadata +155 -0
@@ -0,0 +1,42 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://localhost:5000/v1/users/3/decisions/12/choices/1
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - ! '*/*'
12
+ User-Agent:
13
+ - Ruby
14
+ Authorization:
15
+ - Bearer 9774e653f7b3c1de5f21b61adc08ba24
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Content-Type:
22
+ - application/json; charset=utf-8
23
+ X-Ua-Compatible:
24
+ - IE=Edge
25
+ Etag:
26
+ - ! '"94b34b781a91163f7d41fa5615f2fe40"'
27
+ Cache-Control:
28
+ - max-age=0, private, must-revalidate
29
+ X-Request-Id:
30
+ - 9b6ef966af15c08ead723367926ca7e0
31
+ X-Runtime:
32
+ - '0.531474'
33
+ Connection:
34
+ - close
35
+ Server:
36
+ - thin 1.5.0 codename Knife
37
+ body:
38
+ encoding: US-ASCII
39
+ string: ! '{"created_at":"2013-01-30T19:38:57Z","decision_id":12,"decision_user_id":3,"id":1,"meta":null,"position":1,"subject":null,"type":"ImageChoice","updated_at":"2013-01-30T19:38:57Z","image_uri":"https://test.s3.amazonaws.com/uploads/1359574716/1/image_1.jpg"}'
40
+ http_version:
41
+ recorded_at: Wed, 30 Jan 2013 19:41:33 GMT
42
+ recorded_with: VCR 2.4.0
@@ -0,0 +1,85 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://localhost:5000/v1/users/1/decisions
6
+ body:
7
+ encoding: UTF-8
8
+ string: ''
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - "*/*"
14
+ User-Agent:
15
+ - Ruby
16
+ Authorization:
17
+ - Bearer 9774e653f7b3c1de5f21b61adc08ba24
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Content-Type:
24
+ - application/json; charset=utf-8
25
+ X-Ua-Compatible:
26
+ - IE=Edge
27
+ Etag:
28
+ - "\"2be5f82da30d4df1fe84ec738c2e7d19\""
29
+ Cache-Control:
30
+ - max-age=0, private, must-revalidate
31
+ X-Request-Id:
32
+ - 943590ecf27f3aad8c37ce981cb2a2b7
33
+ X-Runtime:
34
+ - '0.027018'
35
+ Connection:
36
+ - close
37
+ Server:
38
+ - thin 1.5.0 codename Knife
39
+ body:
40
+ encoding: UTF-8
41
+ string: "{\"created_at\":\"2013-01-30T17:08:52Z\",\"final_vote_id\":null,\"flag_count\":null,\"id\":5,\"is_private\":false,\"meta\":null,\"published_at\":null,\"question\":null,\"updated_at\":\"2013-01-30T17:08:52Z\",\"user_id\":1,\"pusher_channel\":\"decision-1-5\",\"timeline_key\":\"1,5\",\"analytics\":{\"views\":0,\"unique_viewers\":0,\"referrers\":{},\"votes\":{},\"total_votes\":0},\"user_vote\":null,\"choices\":[],\"invitations\":[],\"user\":{\"biography\":null,\"created_at\":\"2013-01-23T03:22:06Z\",\"family_name\":null,\"given_name\":null,\"id\":1,\"meta\":null,\"moderated_decisions_count\":null,\"updated_at\":\"2013-01-23T03:22:06Z\",\"username\":null,\"website\":null,\"avatar_url\":\"https://recess-dev.s3.amazonaws.com/default_avatars/v1/photo_1.png\",\"full_name\":\"1\",\"short_name\":\"1\",\"display_name\":\"1\",\"short_display_name\":\"1\",\"analytics\":{\"votes\":0,\"decisions\":0,\"followers\":0,\"following\":0}},\"slug\":\"d/1P3o1K\"}"
42
+ http_version:
43
+ recorded_at: Wed, 30 Jan 2013 17:08:52 GMT
44
+ - request:
45
+ method: get
46
+ uri: http://localhost:5000/v1/users/1/decisions/5/analytics
47
+ body:
48
+ encoding: US-ASCII
49
+ string: ''
50
+ headers:
51
+ Accept-Encoding:
52
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
53
+ Accept:
54
+ - "*/*"
55
+ User-Agent:
56
+ - Ruby
57
+ Authorization:
58
+ - Bearer 9774e653f7b3c1de5f21b61adc08ba24
59
+ response:
60
+ status:
61
+ code: 200
62
+ message: OK
63
+ headers:
64
+ Content-Type:
65
+ - application/json; charset=utf-8
66
+ X-Ua-Compatible:
67
+ - IE=Edge
68
+ Etag:
69
+ - "\"f5f2ebe6361db5920d0dd7743f3861e5\""
70
+ Cache-Control:
71
+ - max-age=0, private, must-revalidate
72
+ X-Request-Id:
73
+ - 4c27476e56019203acda0e78bf4835f3
74
+ X-Runtime:
75
+ - '0.008522'
76
+ Connection:
77
+ - close
78
+ Server:
79
+ - thin 1.5.0 codename Knife
80
+ body:
81
+ encoding: UTF-8
82
+ string: "{\"views\":0,\"unique_viewers\":0,\"referrers\":{},\"votes\":{},\"total_votes\":0}"
83
+ http_version:
84
+ recorded_at: Wed, 30 Jan 2013 17:08:52 GMT
85
+ recorded_with: VCR 2.4.0
@@ -0,0 +1,44 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://localhost:5000/v1/users/1/decisions
6
+ body:
7
+ encoding: UTF-8
8
+ string: ''
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - "*/*"
14
+ User-Agent:
15
+ - Ruby
16
+ Authorization:
17
+ - Bearer 9774e653f7b3c1de5f21b61adc08ba24
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Content-Type:
24
+ - application/json; charset=utf-8
25
+ X-Ua-Compatible:
26
+ - IE=Edge
27
+ Etag:
28
+ - "\"2947010fef7f3251a919f1377eaa3f39\""
29
+ Cache-Control:
30
+ - max-age=0, private, must-revalidate
31
+ X-Request-Id:
32
+ - 2765c515068f738eba41a123b0192ebb
33
+ X-Runtime:
34
+ - '0.772340'
35
+ Connection:
36
+ - close
37
+ Server:
38
+ - thin 1.5.0 codename Knife
39
+ body:
40
+ encoding: UTF-8
41
+ string: "{\"created_at\":\"2013-01-30T16:55:43Z\",\"final_vote_id\":null,\"flag_count\":null,\"id\":1,\"is_private\":false,\"meta\":null,\"published_at\":null,\"question\":null,\"updated_at\":\"2013-01-30T16:55:43Z\",\"user_id\":1,\"pusher_channel\":\"decision-1-1\",\"timeline_key\":\"1,1\",\"analytics\":{\"views\":0,\"unique_viewers\":0,\"referrers\":{},\"votes\":{},\"total_votes\":0},\"user_vote\":null,\"choices\":[],\"invitations\":[],\"user\":{\"biography\":null,\"created_at\":\"2013-01-23T03:22:06Z\",\"family_name\":null,\"given_name\":null,\"id\":1,\"meta\":null,\"moderated_decisions_count\":null,\"updated_at\":\"2013-01-23T03:22:06Z\",\"username\":null,\"website\":null,\"avatar_url\":\"https://recess-dev.s3.amazonaws.com/default_avatars/v1/photo_1.png\",\"full_name\":\"1\",\"short_name\":\"1\",\"display_name\":\"1\",\"short_display_name\":\"1\",\"analytics\":{\"votes\":0,\"decisions\":0,\"followers\":0,\"following\":0}},\"slug\":\"d/2L2w0j\"}"
42
+ http_version:
43
+ recorded_at: Wed, 30 Jan 2013 16:55:44 GMT
44
+ recorded_with: VCR 2.4.0
@@ -0,0 +1,81 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://localhost:5000/v1/users/1/decisions
6
+ body:
7
+ encoding: UTF-8
8
+ string: ''
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - "*/*"
14
+ User-Agent:
15
+ - Ruby
16
+ Authorization:
17
+ - Bearer 9774e653f7b3c1de5f21b61adc08ba24
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Content-Type:
24
+ - application/json; charset=utf-8
25
+ X-Ua-Compatible:
26
+ - IE=Edge
27
+ Etag:
28
+ - "\"978ecdfb0ed7e81a970b88fbc2859032\""
29
+ Cache-Control:
30
+ - max-age=0, private, must-revalidate
31
+ X-Request-Id:
32
+ - aa6f84ccc263a3f5037377762b54a4d5
33
+ X-Runtime:
34
+ - '0.028367'
35
+ Connection:
36
+ - close
37
+ Server:
38
+ - thin 1.5.0 codename Knife
39
+ body:
40
+ encoding: UTF-8
41
+ string: "{\"created_at\":\"2013-01-30T17:06:05Z\",\"final_vote_id\":null,\"flag_count\":null,\"id\":3,\"is_private\":false,\"meta\":null,\"published_at\":null,\"question\":null,\"updated_at\":\"2013-01-30T17:06:05Z\",\"user_id\":1,\"pusher_channel\":\"decision-1-3\",\"timeline_key\":\"1,3\",\"analytics\":{\"views\":0,\"unique_viewers\":0,\"referrers\":{},\"votes\":{},\"total_votes\":0},\"user_vote\":null,\"choices\":[],\"invitations\":[],\"user\":{\"biography\":null,\"created_at\":\"2013-01-23T03:22:06Z\",\"family_name\":null,\"given_name\":null,\"id\":1,\"meta\":null,\"moderated_decisions_count\":null,\"updated_at\":\"2013-01-23T03:22:06Z\",\"username\":null,\"website\":null,\"avatar_url\":\"https://recess-dev.s3.amazonaws.com/default_avatars/v1/photo_1.png\",\"full_name\":\"1\",\"short_name\":\"1\",\"display_name\":\"1\",\"short_display_name\":\"1\",\"analytics\":{\"votes\":0,\"decisions\":0,\"followers\":0,\"following\":0}},\"slug\":\"d/0k3v2A\"}"
42
+ http_version:
43
+ recorded_at: Wed, 30 Jan 2013 17:06:05 GMT
44
+ - request:
45
+ method: delete
46
+ uri: http://localhost:5000/v1/users/1/decisions/3
47
+ body:
48
+ encoding: US-ASCII
49
+ string: ''
50
+ headers:
51
+ Accept-Encoding:
52
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
53
+ Accept:
54
+ - "*/*"
55
+ User-Agent:
56
+ - Ruby
57
+ Authorization:
58
+ - Bearer 9774e653f7b3c1de5f21b61adc08ba24
59
+ response:
60
+ status:
61
+ code: 204
62
+ message: No Content
63
+ headers:
64
+ X-Ua-Compatible:
65
+ - IE=Edge
66
+ Cache-Control:
67
+ - no-cache
68
+ X-Request-Id:
69
+ - cdd20fe6474303742f32d5b8cd67e185
70
+ X-Runtime:
71
+ - '0.199423'
72
+ Connection:
73
+ - close
74
+ Server:
75
+ - thin 1.5.0 codename Knife
76
+ body:
77
+ encoding: UTF-8
78
+ string: ''
79
+ http_version:
80
+ recorded_at: Wed, 30 Jan 2013 17:06:05 GMT
81
+ recorded_with: VCR 2.4.0
@@ -0,0 +1,81 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://localhost:5000/v1/users/1/decisions
6
+ body:
7
+ encoding: UTF-8
8
+ string: ''
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - "*/*"
14
+ User-Agent:
15
+ - Ruby
16
+ Authorization:
17
+ - Bearer 9774e653f7b3c1de5f21b61adc08ba24
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Content-Type:
24
+ - application/json; charset=utf-8
25
+ X-Ua-Compatible:
26
+ - IE=Edge
27
+ Etag:
28
+ - "\"811644fdbc04f5b781aeb83b6a353997\""
29
+ Cache-Control:
30
+ - max-age=0, private, must-revalidate
31
+ X-Request-Id:
32
+ - 57c110d163e262708d40987c411a097e
33
+ X-Runtime:
34
+ - '0.556219'
35
+ Connection:
36
+ - close
37
+ Server:
38
+ - thin 1.5.0 codename Knife
39
+ body:
40
+ encoding: UTF-8
41
+ string: "{\"created_at\":\"2013-01-30T17:31:48Z\",\"final_vote_id\":null,\"flag_count\":null,\"id\":10,\"is_private\":false,\"meta\":null,\"published_at\":null,\"question\":null,\"updated_at\":\"2013-01-30T17:31:48Z\",\"user_id\":1,\"pusher_channel\":\"decision-1-10\",\"timeline_key\":\"1,10\",\"analytics\":{\"views\":0,\"unique_viewers\":0,\"referrers\":{},\"votes\":{},\"total_votes\":0},\"user_vote\":null,\"choices\":[],\"invitations\":[],\"user\":{\"biography\":null,\"created_at\":\"2013-01-23T03:22:06Z\",\"family_name\":null,\"given_name\":null,\"id\":1,\"meta\":null,\"moderated_decisions_count\":null,\"updated_at\":\"2013-01-23T03:22:06Z\",\"username\":null,\"website\":null,\"avatar_url\":\"https://recess-dev.s3.amazonaws.com/default_avatars/v1/photo_1.png\",\"full_name\":\"1\",\"short_name\":\"1\",\"display_name\":\"1\",\"short_display_name\":\"1\",\"analytics\":{\"votes\":0,\"decisions\":0,\"followers\":0,\"following\":0}},\"slug\":\"d/3G1O1N\"}"
42
+ http_version:
43
+ recorded_at: Wed, 30 Jan 2013 17:31:48 GMT
44
+ - request:
45
+ method: post
46
+ uri: http://localhost:5000/v1/users/1/decisions/10/flag
47
+ body:
48
+ encoding: UTF-8
49
+ string: ''
50
+ headers:
51
+ Accept-Encoding:
52
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
53
+ Accept:
54
+ - "*/*"
55
+ User-Agent:
56
+ - Ruby
57
+ Authorization:
58
+ - Bearer 9774e653f7b3c1de5f21b61adc08ba24
59
+ response:
60
+ status:
61
+ code: 204
62
+ message: No Content
63
+ headers:
64
+ X-Ua-Compatible:
65
+ - IE=Edge
66
+ Cache-Control:
67
+ - no-cache
68
+ X-Request-Id:
69
+ - 8fa8a45a1d6f4da0873f11b572739ea6
70
+ X-Runtime:
71
+ - '0.102018'
72
+ Connection:
73
+ - close
74
+ Server:
75
+ - thin 1.5.0 codename Knife
76
+ body:
77
+ encoding: UTF-8
78
+ string: ''
79
+ http_version:
80
+ recorded_at: Wed, 30 Jan 2013 17:31:48 GMT
81
+ recorded_with: VCR 2.4.0
@@ -0,0 +1,129 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://localhost:5000/v1/users/1/decisions
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - ! '*/*'
12
+ User-Agent:
13
+ - Ruby
14
+ Authorization:
15
+ - Bearer 9774e653f7b3c1de5f21b61adc08ba24
16
+ Content-Type:
17
+ - application/json
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Content-Type:
24
+ - application/json; charset=utf-8
25
+ X-Ua-Compatible:
26
+ - IE=Edge
27
+ Etag:
28
+ - ! '"9d35cef068c5a692da9a0ea4ede9fa9b"'
29
+ Cache-Control:
30
+ - max-age=0, private, must-revalidate
31
+ X-Request-Id:
32
+ - b0be335fefdb61904e6afb9dd6c7404d
33
+ X-Runtime:
34
+ - '0.029169'
35
+ Connection:
36
+ - close
37
+ Server:
38
+ - thin 1.5.0 codename Knife
39
+ body:
40
+ encoding: US-ASCII
41
+ string: ! '{"created_at":"2013-01-30T21:14:26Z","final_vote_id":null,"flag_count":null,"id":19,"is_private":false,"meta":null,"published_at":null,"question":null,"updated_at":"2013-01-30T21:14:26Z","user_id":1,"pusher_channel":"decision-1-19","timeline_key":"1,19","analytics":{"views":0,"unique_viewers":0,"referrers":{},"votes":{},"total_votes":0},"user_vote":null,"choices":[],"invitations":[],"user":{"biography":null,"created_at":"2013-01-23T03:22:06Z","family_name":null,"given_name":null,"id":1,"meta":null,"moderated_decisions_count":null,"updated_at":"2013-01-23T03:22:06Z","username":null,"website":null,"avatar_url":"https://recess-dev.s3.amazonaws.com/default_avatars/v1/photo_1.png","full_name":"1","short_name":"1","display_name":"1","short_display_name":"1","analytics":{"votes":0,"decisions":0,"followers":0,"following":0}},"slug":"d/0P082U"}'
42
+ http_version:
43
+ recorded_at: Wed, 30 Jan 2013 21:14:26 GMT
44
+ - request:
45
+ method: post
46
+ uri: http://localhost:5000/v1/users/1/decisions/19/choices
47
+ body:
48
+ encoding: UTF-8
49
+ string: ! '{"choice":{"type":"image","image_url":"http://recess.s3.amazonaws.com/default_avatars/v1/photo_1.png","subject":"Test
50
+ Image","meta":{"link_url":"http://seesaw.co","link_title":"Seesaw"}}}'
51
+ headers:
52
+ Accept:
53
+ - ! '*/*'
54
+ User-Agent:
55
+ - Ruby
56
+ Authorization:
57
+ - Bearer 9774e653f7b3c1de5f21b61adc08ba24
58
+ Content-Type:
59
+ - application/json
60
+ response:
61
+ status:
62
+ code: 200
63
+ message: OK
64
+ headers:
65
+ Content-Type:
66
+ - application/json; charset=utf-8
67
+ X-Ua-Compatible:
68
+ - IE=Edge
69
+ Etag:
70
+ - ! '"c1256483f06b02a3c567ecf9cf966b56"'
71
+ Cache-Control:
72
+ - max-age=0, private, must-revalidate
73
+ X-Request-Id:
74
+ - 03389d778dc363d3d7fa08c3dd66765b
75
+ X-Runtime:
76
+ - '0.261910'
77
+ Connection:
78
+ - close
79
+ Server:
80
+ - thin 1.5.0 codename Knife
81
+ body:
82
+ encoding: US-ASCII
83
+ string: ! '{"created_at":"2013-01-30T21:14:26Z","decision_id":19,"decision_user_id":1,"id":7,"meta":{"link_url":"http://seesaw.co","link_title":"Seesaw"},"position":1,"subject":"Test
84
+ Image","type":"ImageChoice","updated_at":"2013-01-30T21:14:26Z","image_uri":"https://recess-dev.s3.amazonaws.com/gotwalt-pro.sf.gotwalt.com/decisions/19/7/1359580466/photo.png"}'
85
+ http_version:
86
+ recorded_at: Wed, 30 Jan 2013 21:14:26 GMT
87
+ - request:
88
+ method: post
89
+ uri: http://localhost:5000/v1/users/1/decisions/19/publish
90
+ body:
91
+ encoding: US-ASCII
92
+ string: ''
93
+ headers:
94
+ Accept:
95
+ - ! '*/*'
96
+ User-Agent:
97
+ - Ruby
98
+ Authorization:
99
+ - Bearer 9774e653f7b3c1de5f21b61adc08ba24
100
+ Content-Type:
101
+ - application/json
102
+ response:
103
+ status:
104
+ code: 200
105
+ message: OK
106
+ headers:
107
+ Content-Type:
108
+ - application/json; charset=utf-8
109
+ X-Ua-Compatible:
110
+ - IE=Edge
111
+ Etag:
112
+ - ! '"f3af05643c5f3efcb05caf7c2ab86c77"'
113
+ Cache-Control:
114
+ - max-age=0, private, must-revalidate
115
+ X-Request-Id:
116
+ - ca4ec80f48e64e67ea6627a8f9f5500d
117
+ X-Runtime:
118
+ - '0.097078'
119
+ Connection:
120
+ - close
121
+ Server:
122
+ - thin 1.5.0 codename Knife
123
+ body:
124
+ encoding: US-ASCII
125
+ string: ! '{"created_at":"2013-01-30T21:14:26Z","final_vote_id":null,"flag_count":null,"id":19,"is_private":false,"meta":{"is_binary":true},"published_at":"2013-01-30T21:14:26Z","question":null,"updated_at":"2013-01-30T21:14:26Z","user_id":1,"pusher_channel":"decision-1-19","timeline_key":"1,19","analytics":{"views":0,"unique_viewers":0,"referrers":{},"votes":{},"total_votes":0},"user_vote":null,"choices":[{"created_at":"2013-01-30T21:14:26Z","decision_id":19,"decision_user_id":1,"id":7,"meta":{"link_url":"http://seesaw.co","link_title":"Seesaw"},"position":1,"subject":"Test
126
+ Image","type":"ImageChoice","updated_at":"2013-01-30T21:14:26Z","image_uri":"https://recess-dev.s3.amazonaws.com/gotwalt-pro.sf.gotwalt.com/decisions/19/7/1359580466/photo.png"},{"created_at":"2013-01-30T21:14:26Z","decision_id":19,"decision_user_id":1,"id":8,"meta":null,"position":2,"subject":null,"type":"NoChoice","updated_at":"2013-01-30T21:14:26Z"}],"invitations":[],"user":{"biography":null,"created_at":"2013-01-23T03:22:06Z","family_name":null,"given_name":null,"id":1,"meta":null,"moderated_decisions_count":null,"updated_at":"2013-01-23T03:22:06Z","username":null,"website":null,"avatar_url":"https://recess-dev.s3.amazonaws.com/default_avatars/v1/photo_1.png","full_name":"1","short_name":"1","display_name":"1","short_display_name":"1","analytics":{"votes":0,"decisions":0,"followers":0,"following":0}},"slug":"d/0P082U"}'
127
+ http_version:
128
+ recorded_at: Wed, 30 Jan 2013 21:14:26 GMT
129
+ recorded_with: VCR 2.4.0