firering 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. data/LICENSE +20 -0
  2. data/README.rdoc +83 -0
  3. data/Rakefile +143 -0
  4. data/bin/campf-notify +56 -0
  5. data/examples/authenticate.rb +22 -0
  6. data/examples/events.rb +39 -0
  7. data/examples/recent_messages.rb +43 -0
  8. data/examples/rooms.rb +24 -0
  9. data/examples/update_room.rb +33 -0
  10. data/firering.gemspec +99 -0
  11. data/lib/firering/data/message.rb +29 -0
  12. data/lib/firering/data/room.rb +13 -0
  13. data/lib/firering/data/upload.rb +5 -0
  14. data/lib/firering/data/user.rb +16 -0
  15. data/lib/firering/data.rb +35 -0
  16. data/lib/firering/http.rb +43 -0
  17. data/lib/firering/requests.rb +185 -0
  18. data/lib/firering/streaming.rb +51 -0
  19. data/lib/firering.rb +21 -0
  20. data/spec/firering/data_spec.rb +21 -0
  21. data/spec/firering/requests_spec.rb +203 -0
  22. data/spec/fixtures/headers/delete_messages_ID_star.json +30 -0
  23. data/spec/fixtures/headers/get_room_ID.json +30 -0
  24. data/spec/fixtures/headers/get_room_ID_live.json +7 -0
  25. data/spec/fixtures/headers/get_room_ID_recent.json +30 -0
  26. data/spec/fixtures/headers/get_room_ID_transcript.json +30 -0
  27. data/spec/fixtures/headers/get_room_ID_transcript_ID_ID_ID.json +30 -0
  28. data/spec/fixtures/headers/get_room_ID_uploads.json +30 -0
  29. data/spec/fixtures/headers/get_rooms.json +30 -0
  30. data/spec/fixtures/headers/get_search_harmless.json +30 -0
  31. data/spec/fixtures/headers/get_users_ID.json +30 -0
  32. data/spec/fixtures/headers/get_users_me.json +30 -0
  33. data/spec/fixtures/headers/post_messages_ID_star.json +30 -0
  34. data/spec/fixtures/headers/post_room_ID_join.json +28 -0
  35. data/spec/fixtures/headers/post_room_ID_leave.json +28 -0
  36. data/spec/fixtures/headers/post_room_ID_speak.json +30 -0
  37. data/spec/fixtures/headers/post_room_ID_unlock.json +28 -0
  38. data/spec/fixtures/headers/put_room_ID.json +28 -0
  39. data/spec/fixtures/json/delete_messages_ID_star.json +1 -0
  40. data/spec/fixtures/json/get_room_ID.json +1 -0
  41. data/spec/fixtures/json/get_room_ID_live.json +1 -0
  42. data/spec/fixtures/json/get_room_ID_recent.json +33 -0
  43. data/spec/fixtures/json/get_room_ID_transcript.json +33 -0
  44. data/spec/fixtures/json/get_room_ID_transcript_ID_ID_ID.json +33 -0
  45. data/spec/fixtures/json/get_room_ID_uploads.json +1 -0
  46. data/spec/fixtures/json/get_rooms.json +2 -0
  47. data/spec/fixtures/json/get_search_harmless.json +3 -0
  48. data/spec/fixtures/json/get_users_ID.json +1 -0
  49. data/spec/fixtures/json/get_users_me.json +1 -0
  50. data/spec/fixtures/json/post_messages_ID_star.json +1 -0
  51. data/spec/fixtures/json/post_room_ID_join.json +1 -0
  52. data/spec/fixtures/json/post_room_ID_leave.json +1 -0
  53. data/spec/fixtures/json/post_room_ID_lock.json +1 -0
  54. data/spec/fixtures/json/post_room_ID_speak.json +1 -0
  55. data/spec/fixtures/json/post_room_ID_unlock.json +1 -0
  56. data/spec/fixtures/json/put_room_ID.json +1 -0
  57. data/spec/fixtures/load_server.rb +31 -0
  58. data/spec/fixtures/retrieve.rb +55 -0
  59. data/spec/fixtures/server.rb +40 -0
  60. data/spec/spec_helper.rb +10 -0
  61. metadata +231 -0
@@ -0,0 +1,30 @@
1
+ HTTP/1.1 200 OK
2
+ Date: Sat, 29 May 2010 23:21:44 GMT
3
+ Server: Apache
4
+ X-Powered-By: Phusion Passenger (mod_rails/mod_rack) 2.2.9
5
+ ETag: "29fdec7c1e569936aa191a89396749a3"
6
+ X-Runtime: 209
7
+ Cache-Control: private, max-age=0, must-revalidate
8
+ Content-Length: 513
9
+ Status: 200
10
+ Content-Type: application/json; charset=utf-8
11
+ Set-Cookie: session_token=; path=/; expires=Wed, 29-May-2030 23:21:44 GMT
12
+ Set-Cookie: _campfire_session=BAh7CDoQaWRlbnRpdHlfaWRpA7F3AjoJYXV0aHsGIg9icm9hZHNwaXJlewY6DHVzZXJfaWRpA%2FNXBjoPc2Vzc2lvbl9pZCIlOGZkNTUyYWYwYzM3NmVlMjgyMTIxMTdmYTY0MmViMGM%3D--04edc8c2c98b7f42b07392c6c1552bb7cab73dbb; path=/; HttpOnly
13
+ Via: 1.1 campfirenow.com
14
+ Connection: close
15
+
16
+ HTTP/1.1 200 OK
17
+ Date: Sat, 29 May 2010 23:21:45 GMT
18
+ Server: Apache
19
+ X-Powered-By: Phusion Passenger (mod_rails/mod_rack) 2.2.9
20
+ ETag: "29fdec7c1e569936aa191a89396749a3"
21
+ X-Runtime: 38
22
+ Cache-Control: private, max-age=0, must-revalidate
23
+ Content-Length: 513
24
+ Status: 200
25
+ Content-Type: application/json; charset=utf-8
26
+ Set-Cookie: session_token=; path=/; expires=Wed, 29-May-2030 23:21:45 GMT
27
+ Set-Cookie: _campfire_session=BAh7CDoQaWRlbnRpdHlfaWRpA7F3AjoJYXV0aHsGIg9icm9hZHNwaXJlewY6DHVzZXJfaWRpA%2FNXBjoPc2Vzc2lvbl9pZCIlZWUwNTljZWQ1YTk5MzdiNTMxYjIwNTlhYWU2MWUwYTE%3D--e65b2a0297ee35f10fd5050ce8e20ea29b8d294c; path=/; HttpOnly
28
+ Via: 1.1 campfirenow.com
29
+ Connection: close
30
+
@@ -0,0 +1,30 @@
1
+ HTTP/1.1 200 OK
2
+ Date: Sat, 29 May 2010 23:21:40 GMT
3
+ Server: Apache
4
+ X-Powered-By: Phusion Passenger (mod_rails/mod_rack) 2.2.9
5
+ ETag: "85d01cfe8e0e2e9ece1e0d14b0486c30"
6
+ X-Runtime: 37
7
+ Cache-Control: private, max-age=0, must-revalidate
8
+ Content-Length: 1303
9
+ Status: 200
10
+ Content-Type: application/json; charset=utf-8
11
+ Set-Cookie: session_token=; path=/; expires=Wed, 29-May-2030 23:21:40 GMT
12
+ Set-Cookie: _campfire_session=BAh7CDoQaWRlbnRpdHlfaWRpA7F3AjoJYXV0aHsGIg9icm9hZHNwaXJlewY6DHVzZXJfaWRpA%2FNXBjoPc2Vzc2lvbl9pZCIlNjNmNzg1NTFkODU0YTNhODA3ZTk0NTgwYzc1M2U3YWQ%3D--0eda8806ee9f02463a367280efad2f0015d0a35a; path=/; HttpOnly
13
+ Via: 1.1 campfirenow.com
14
+ Connection: close
15
+
16
+ HTTP/1.1 200 OK
17
+ Date: Sat, 29 May 2010 23:21:41 GMT
18
+ Server: Apache
19
+ X-Powered-By: Phusion Passenger (mod_rails/mod_rack) 2.2.9
20
+ ETag: "85d01cfe8e0e2e9ece1e0d14b0486c30"
21
+ X-Runtime: 35
22
+ Cache-Control: private, max-age=0, must-revalidate
23
+ Content-Length: 1303
24
+ Status: 200
25
+ Content-Type: application/json; charset=utf-8
26
+ Set-Cookie: session_token=; path=/; expires=Wed, 29-May-2030 23:21:41 GMT
27
+ Set-Cookie: _campfire_session=BAh7CDoQaWRlbnRpdHlfaWRpA7F3AjoJYXV0aHsGIg9icm9hZHNwaXJlewY6DHVzZXJfaWRpA%2FNXBjoPc2Vzc2lvbl9pZCIlODU1YzI0NzcyODU4NzFjOTcwZGI0ZDE5ZGIxMjgxYWY%3D--cdef5b61152de9049e8c6325de19f25df8b8318d; path=/; HttpOnly
28
+ Via: 1.1 campfirenow.com
29
+ Connection: close
30
+
@@ -0,0 +1,30 @@
1
+ HTTP/1.1 200 OK
2
+ Date: Sat, 29 May 2010 23:21:54 GMT
3
+ Server: Apache
4
+ X-Powered-By: Phusion Passenger (mod_rails/mod_rack) 2.2.9
5
+ ETag: "f81d277712b1afa0b8a93b731f746920"
6
+ X-Runtime: 33
7
+ Cache-Control: private, max-age=0, must-revalidate
8
+ Content-Length: 696
9
+ Status: 200
10
+ Content-Type: application/json; charset=utf-8
11
+ Set-Cookie: session_token=; path=/; expires=Wed, 29-May-2030 23:21:54 GMT
12
+ Set-Cookie: _campfire_session=BAh7CDoQaWRlbnRpdHlfaWRpA7F3AjoJYXV0aHsGIg9icm9hZHNwaXJlewY6DHVzZXJfaWRpA%2FNXBjoPc2Vzc2lvbl9pZCIlOTk4ZjhiZDkwNjI5ZGVjYTIzYWE4YjY4ZWIzMTczYzA%3D--befa7f5f2e1905b588670811f117f65f8b761e4b; path=/; HttpOnly
13
+ Via: 1.1 campfirenow.com
14
+ Connection: close
15
+
16
+ HTTP/1.1 200 OK
17
+ Date: Sat, 29 May 2010 23:21:55 GMT
18
+ Server: Apache
19
+ X-Powered-By: Phusion Passenger (mod_rails/mod_rack) 2.2.9
20
+ ETag: "f81d277712b1afa0b8a93b731f746920"
21
+ X-Runtime: 36
22
+ Cache-Control: private, max-age=0, must-revalidate
23
+ Content-Length: 696
24
+ Status: 200
25
+ Content-Type: application/json; charset=utf-8
26
+ Set-Cookie: session_token=; path=/; expires=Wed, 29-May-2030 23:21:55 GMT
27
+ Set-Cookie: _campfire_session=BAh7CDoQaWRlbnRpdHlfaWRpA7F3AjoJYXV0aHsGIg9icm9hZHNwaXJlewY6DHVzZXJfaWRpA%2FNXBjoPc2Vzc2lvbl9pZCIlMWZhYTlhMTQ5MTA0ODJkYjI5OTNjMjhjMGUxNzlhMTk%3D--5114a1e762a2d748b382b232ca409245508eeac5; path=/; HttpOnly
28
+ Via: 1.1 campfirenow.com
29
+ Connection: close
30
+
@@ -0,0 +1,30 @@
1
+ HTTP/1.1 200 OK
2
+ Date: Sat, 29 May 2010 23:21:53 GMT
3
+ Server: Apache
4
+ X-Powered-By: Phusion Passenger (mod_rails/mod_rack) 2.2.9
5
+ ETag: "8ae0c2a485b78b022b253ffeb8644119"
6
+ X-Runtime: 18
7
+ Cache-Control: private, max-age=0, must-revalidate
8
+ Content-Length: 149
9
+ Status: 200
10
+ Content-Type: application/json; charset=utf-8
11
+ Set-Cookie: session_token=; path=/; expires=Wed, 29-May-2030 23:21:53 GMT
12
+ Set-Cookie: _campfire_session=BAh7CDoQaWRlbnRpdHlfaWRpA7F3AjoJYXV0aHsGIg9icm9hZHNwaXJlewY6DHVzZXJfaWRpA%2FNXBjoPc2Vzc2lvbl9pZCIlNTNhNzA4NmQxZmYzMWE1NDg1OTRkOGFjNjJlZGY5NWE%3D--385e7b84863e7f897efa24a45e1f9e6841f8394e; path=/; HttpOnly
13
+ Via: 1.1 campfirenow.com
14
+ Connection: close
15
+
16
+ HTTP/1.1 200 OK
17
+ Date: Sat, 29 May 2010 23:21:53 GMT
18
+ Server: Apache
19
+ X-Powered-By: Phusion Passenger (mod_rails/mod_rack) 2.2.9
20
+ ETag: "8ae0c2a485b78b022b253ffeb8644119"
21
+ X-Runtime: 19
22
+ Cache-Control: private, max-age=0, must-revalidate
23
+ Content-Length: 149
24
+ Status: 200
25
+ Content-Type: application/json; charset=utf-8
26
+ Set-Cookie: session_token=; path=/; expires=Wed, 29-May-2030 23:21:53 GMT
27
+ Set-Cookie: _campfire_session=BAh7CDoQaWRlbnRpdHlfaWRpA7F3AjoJYXV0aHsGIg9icm9hZHNwaXJlewY6DHVzZXJfaWRpA%2FNXBjoPc2Vzc2lvbl9pZCIlYTE4NjYxNjM2N2I1ZDRlNTJlYzcyZGZmNjUwMTYyOGI%3D--e29a4fede7773c0ad6d18b1df3f244ba240de2f3; path=/; HttpOnly
28
+ Via: 1.1 campfirenow.com
29
+ Connection: close
30
+
@@ -0,0 +1,30 @@
1
+ HTTP/1.1 200 OK
2
+ Date: Sat, 29 May 2010 23:21:53 GMT
3
+ Server: Apache
4
+ X-Powered-By: Phusion Passenger (mod_rails/mod_rack) 2.2.9
5
+ ETag: "4f175d053878b19d894efecb20b7b133"
6
+ X-Runtime: 15
7
+ Cache-Control: private, max-age=0, must-revalidate
8
+ Content-Length: 209
9
+ Status: 200
10
+ Content-Type: application/json; charset=utf-8
11
+ Set-Cookie: session_token=; path=/; expires=Wed, 29-May-2030 23:21:53 GMT
12
+ Set-Cookie: _campfire_session=BAh7CDoQaWRlbnRpdHlfaWRpA7F3AjoJYXV0aHsGIg9icm9hZHNwaXJlewY6DHVzZXJfaWRpA%2FNXBjoPc2Vzc2lvbl9pZCIlMzg5MTMxM2M1YmE0Yzg0YTE2MzcyMWVhOGQyZjY5ZmU%3D--a5847b41941e0cbe46d4a7b092428c4aeec74233; path=/; HttpOnly
13
+ Via: 1.1 campfirenow.com
14
+ Connection: close
15
+
16
+ HTTP/1.1 200 OK
17
+ Date: Sat, 29 May 2010 23:21:54 GMT
18
+ Server: Apache
19
+ X-Powered-By: Phusion Passenger (mod_rails/mod_rack) 2.2.9
20
+ ETag: "4f175d053878b19d894efecb20b7b133"
21
+ X-Runtime: 20
22
+ Cache-Control: private, max-age=0, must-revalidate
23
+ Content-Length: 209
24
+ Status: 200
25
+ Content-Type: application/json; charset=utf-8
26
+ Set-Cookie: session_token=; path=/; expires=Wed, 29-May-2030 23:21:54 GMT
27
+ Set-Cookie: _campfire_session=BAh7CDoQaWRlbnRpdHlfaWRpA7F3AjoJYXV0aHsGIg9icm9hZHNwaXJlewY6DHVzZXJfaWRpA%2FNXBjoPc2Vzc2lvbl9pZCIlZTA5ZGQzZTVlNDNkMTA0Y2NmOGU2OTZlNmUxZDljZGE%3D--a377f6b5cb64e0bd9af2a67a0313218beae95bb8; path=/; HttpOnly
28
+ Via: 1.1 campfirenow.com
29
+ Connection: close
30
+
@@ -0,0 +1,30 @@
1
+ HTTP/1.1 201 Created
2
+ Date: Sat, 29 May 2010 23:21:52 GMT
3
+ Server: Apache
4
+ X-Powered-By: Phusion Passenger (mod_rails/mod_rack) 2.2.9
5
+ X-Runtime: 48
6
+ Cache-Control: no-cache
7
+ Content-Length: 1
8
+ Status: 201
9
+ Content-Type: application/json; charset=utf-8
10
+ Set-Cookie: session_token=; path=/; expires=Wed, 29-May-2030 23:21:52 GMT
11
+ Set-Cookie: session_token=; path=/; expires=Wed, 29-May-2030 23:21:52 GMT
12
+ Set-Cookie: _campfire_session=BAh7CDoQaWRlbnRpdHlfaWRpA7F3AjoJYXV0aHsGIg9icm9hZHNwaXJlewY6DHVzZXJfaWRpA%2FNXBjoPc2Vzc2lvbl9pZCIlMzc3NjE5NjllM2MyYWIzN2Q4MTdmNzBmMWYyYzQwYTA%3D--dddffe0d6b91d33d29349b62808e2944fbf4b337; path=/; HttpOnly
13
+ Via: 1.1 campfirenow.com
14
+ Connection: close
15
+
16
+ HTTP/1.1 201 Created
17
+ Date: Sat, 29 May 2010 23:21:52 GMT
18
+ Server: Apache
19
+ X-Powered-By: Phusion Passenger (mod_rails/mod_rack) 2.2.9
20
+ X-Runtime: 32
21
+ Cache-Control: no-cache
22
+ Content-Length: 1
23
+ Status: 201
24
+ Content-Type: application/json; charset=utf-8
25
+ Set-Cookie: session_token=; path=/; expires=Wed, 29-May-2030 23:21:52 GMT
26
+ Set-Cookie: session_token=; path=/; expires=Wed, 29-May-2030 23:21:52 GMT
27
+ Set-Cookie: _campfire_session=BAh7CDoQaWRlbnRpdHlfaWRpA7F3AjoJYXV0aHsGIg9icm9hZHNwaXJlewY6DHVzZXJfaWRpA%2FNXBjoPc2Vzc2lvbl9pZCIlMGEzNDgyZjQ3MTAzNTQ5OTI0ZDBkOTEwOWRiYWVhYmU%3D--a001967f543221a0f7090b065d9089ffe5e6b10e; path=/; HttpOnly
28
+ Via: 1.1 campfirenow.com
29
+ Connection: close
30
+
@@ -0,0 +1,28 @@
1
+ HTTP/1.1 200 OK
2
+ Date: Sat, 29 May 2010 23:21:55 GMT
3
+ Server: Apache
4
+ X-Powered-By: Phusion Passenger (mod_rails/mod_rack) 2.2.9
5
+ X-Runtime: 78
6
+ Cache-Control: private, max-age=0, must-revalidate
7
+ Content-Length: 1
8
+ Status: 200
9
+ Content-Type: application/json; charset=utf-8
10
+ Set-Cookie: session_token=; path=/; expires=Wed, 29-May-2030 23:21:55 GMT
11
+ Set-Cookie: _campfire_session=BAh7CDoQaWRlbnRpdHlfaWRpA7F3AjoJYXV0aHsGIg9icm9hZHNwaXJlewY6DHVzZXJfaWRpA%2FNXBjoPc2Vzc2lvbl9pZCIlOWM2MzIxNDIxNmJkZmZiMzNiZTQwMTM3M2I2YzAxODE%3D--50e817218619e6e5b2fd2e893fbf899d6be75a37; path=/; HttpOnly
12
+ Via: 1.1 campfirenow.com
13
+ Connection: close
14
+
15
+ HTTP/1.1 200 OK
16
+ Date: Sat, 29 May 2010 23:21:55 GMT
17
+ Server: Apache
18
+ X-Powered-By: Phusion Passenger (mod_rails/mod_rack) 2.2.9
19
+ X-Runtime: 60
20
+ Cache-Control: private, max-age=0, must-revalidate
21
+ Content-Length: 1
22
+ Status: 200
23
+ Content-Type: application/json; charset=utf-8
24
+ Set-Cookie: session_token=; path=/; expires=Wed, 29-May-2030 23:21:55 GMT
25
+ Set-Cookie: _campfire_session=BAh7CDoQaWRlbnRpdHlfaWRpA7F3AjoJYXV0aHsGIg9icm9hZHNwaXJlewY6DHVzZXJfaWRpA%2FNXBjoPc2Vzc2lvbl9pZCIlM2NjMGY3YzkzZDJjMjIyNGI1YzE0MzY0MGJkZmY3ZDE%3D--2127820efefa7fb8566df5c686eae774c15b5246; path=/; HttpOnly
26
+ Via: 1.1 campfirenow.com
27
+ Connection: close
28
+
@@ -0,0 +1,28 @@
1
+ HTTP/1.1 200 OK
2
+ Date: Sat, 29 May 2010 23:21:49 GMT
3
+ Server: Apache
4
+ X-Powered-By: Phusion Passenger (mod_rails/mod_rack) 2.2.9
5
+ X-Runtime: 51
6
+ Cache-Control: private, max-age=0, must-revalidate
7
+ Content-Length: 1
8
+ Status: 200
9
+ Content-Type: application/json; charset=utf-8
10
+ Set-Cookie: session_token=; path=/; expires=Wed, 29-May-2030 23:21:49 GMT
11
+ Set-Cookie: _campfire_session=BAh7CDoQaWRlbnRpdHlfaWRpA7F3AjoJYXV0aHsGIg9icm9hZHNwaXJlewY6DHVzZXJfaWRpA%2FNXBjoPc2Vzc2lvbl9pZCIlZmIwMmJlZTgyZDYwZmQ3MjMyNmM2OWQwNGFlNzAzM2I%3D--9605c5c400ef1d5faa5ae553b09a62ec6473a3c9; path=/; HttpOnly
12
+ Via: 1.1 campfirenow.com
13
+ Connection: close
14
+
15
+ HTTP/1.1 200 OK
16
+ Date: Sat, 29 May 2010 23:21:50 GMT
17
+ Server: Apache
18
+ X-Powered-By: Phusion Passenger (mod_rails/mod_rack) 2.2.9
19
+ X-Runtime: 21
20
+ Cache-Control: private, max-age=0, must-revalidate
21
+ Content-Length: 1
22
+ Status: 200
23
+ Content-Type: application/json; charset=utf-8
24
+ Set-Cookie: session_token=; path=/; expires=Wed, 29-May-2030 23:21:50 GMT
25
+ Set-Cookie: _campfire_session=BAh7CDoQaWRlbnRpdHlfaWRpA7F3AjoJYXV0aHsGIg9icm9hZHNwaXJlewY6DHVzZXJfaWRpA%2FNXBjoPc2Vzc2lvbl9pZCIlZTVhZWI3ZTQ5ZTFjMDU2MWYxMTJhN2U2NDZlY2EyN2Q%3D--07d60dca2621b693c58148d73b2fdcbf4f5fbf28; path=/; HttpOnly
26
+ Via: 1.1 campfirenow.com
27
+ Connection: close
28
+
@@ -0,0 +1,30 @@
1
+ HTTP/1.1 201 Created
2
+ Date: Sat, 29 May 2010 23:21:47 GMT
3
+ Server: Apache
4
+ X-Powered-By: Phusion Passenger (mod_rails/mod_rack) 2.2.9
5
+ X-Runtime: 76
6
+ Cache-Control: no-cache
7
+ Location: http://broadspire.campfirenow.com/room/304355
8
+ Content-Length: 139
9
+ Status: 201
10
+ Content-Type: application/json; charset=utf-8
11
+ Set-Cookie: session_token=; path=/; expires=Wed, 29-May-2030 23:21:47 GMT
12
+ Set-Cookie: _campfire_session=BAh7CDoQaWRlbnRpdHlfaWRpA7F3AjoJYXV0aHsGIg9icm9hZHNwaXJlewY6DHVzZXJfaWRpA%2FNXBjoPc2Vzc2lvbl9pZCIlMTRjYTVhMjBlM2ZjNTU4ODIxNmUxOTRjNDNhNjc2OTQ%3D--35b48ee0e7724ba56143b7e277234ae07c792462; path=/; HttpOnly
13
+ Via: 1.1 campfirenow.com
14
+ Connection: close
15
+
16
+ HTTP/1.1 201 Created
17
+ Date: Sat, 29 May 2010 23:21:48 GMT
18
+ Server: Apache
19
+ X-Powered-By: Phusion Passenger (mod_rails/mod_rack) 2.2.9
20
+ X-Runtime: 68
21
+ Cache-Control: no-cache
22
+ Location: http://broadspire.campfirenow.com/room/304355
23
+ Content-Length: 139
24
+ Status: 201
25
+ Content-Type: application/json; charset=utf-8
26
+ Set-Cookie: session_token=; path=/; expires=Wed, 29-May-2030 23:21:48 GMT
27
+ Set-Cookie: _campfire_session=BAh7CDoQaWRlbnRpdHlfaWRpA7F3AjoJYXV0aHsGIg9icm9hZHNwaXJlewY6DHVzZXJfaWRpA%2FNXBjoPc2Vzc2lvbl9pZCIlZGNhMDM1ZTRlMTdhZGFkMjViZDc3ZjE4ODllM2FjNTY%3D--b4478a2b12871a7ee4f79985fd875d44a64bcbc3; path=/; HttpOnly
28
+ Via: 1.1 campfirenow.com
29
+ Connection: close
30
+
@@ -0,0 +1,28 @@
1
+ HTTP/1.1 200 OK
2
+ Date: Sat, 29 May 2010 23:21:50 GMT
3
+ Server: Apache
4
+ X-Powered-By: Phusion Passenger (mod_rails/mod_rack) 2.2.9
5
+ X-Runtime: 18
6
+ Cache-Control: private, max-age=0, must-revalidate
7
+ Content-Length: 1
8
+ Status: 200
9
+ Content-Type: application/json; charset=utf-8
10
+ Set-Cookie: session_token=; path=/; expires=Wed, 29-May-2030 23:21:50 GMT
11
+ Set-Cookie: _campfire_session=BAh7CDoQaWRlbnRpdHlfaWRpA7F3AjoJYXV0aHsGIg9icm9hZHNwaXJlewY6DHVzZXJfaWRpA%2FNXBjoPc2Vzc2lvbl9pZCIlMmE2NWZmOWM5MDVjZDMwNDg2NTBmZGNiMmZkNzEzNGY%3D--ecd6384f970ffa8fc2a6b543d7a81ce45f0af12c; path=/; HttpOnly
12
+ Via: 1.1 campfirenow.com
13
+ Connection: close
14
+
15
+ HTTP/1.1 200 OK
16
+ Date: Sat, 29 May 2010 23:21:50 GMT
17
+ Server: Apache
18
+ X-Powered-By: Phusion Passenger (mod_rails/mod_rack) 2.2.9
19
+ X-Runtime: 22
20
+ Cache-Control: private, max-age=0, must-revalidate
21
+ Content-Length: 1
22
+ Status: 200
23
+ Content-Type: application/json; charset=utf-8
24
+ Set-Cookie: session_token=; path=/; expires=Wed, 29-May-2030 23:21:50 GMT
25
+ Set-Cookie: _campfire_session=BAh7CDoQaWRlbnRpdHlfaWRpA7F3AjoJYXV0aHsGIg9icm9hZHNwaXJlewY6DHVzZXJfaWRpA%2FNXBjoPc2Vzc2lvbl9pZCIlNTdiZDVhYmRkN2MxMTg4MGM1NDkzYzY0MmM3YTc2ZmM%3D--7011b3f50967771b4358f6bdc57e01dccdd58f1a; path=/; HttpOnly
26
+ Via: 1.1 campfirenow.com
27
+ Connection: close
28
+
@@ -0,0 +1,28 @@
1
+ HTTP/1.1 200 OK
2
+ Date: Sat, 29 May 2010 23:21:42 GMT
3
+ Server: Apache
4
+ X-Powered-By: Phusion Passenger (mod_rails/mod_rack) 2.2.9
5
+ X-Runtime: 23
6
+ Cache-Control: private, max-age=0, must-revalidate
7
+ Content-Length: 1
8
+ Status: 200
9
+ Content-Type: application/json; charset=utf-8
10
+ Set-Cookie: session_token=; path=/; expires=Wed, 29-May-2030 23:21:42 GMT
11
+ Set-Cookie: _campfire_session=BAh7CDoQaWRlbnRpdHlfaWRpA7F3AjoJYXV0aHsGIg9icm9hZHNwaXJlewY6DHVzZXJfaWRpA%2FNXBjoPc2Vzc2lvbl9pZCIlMzM1MzJlYmYxZWQ0Y2VhZWViNjA3OTBlNTk1Y2Y5YzI%3D--96b87f53c282f7ddf7f8de08422f4e3f03249c50; path=/; HttpOnly
12
+ Via: 1.1 campfirenow.com
13
+ Connection: close
14
+
15
+ HTTP/1.1 200 OK
16
+ Date: Sat, 29 May 2010 23:21:43 GMT
17
+ Server: Apache
18
+ X-Powered-By: Phusion Passenger (mod_rails/mod_rack) 2.2.9
19
+ X-Runtime: 22
20
+ Cache-Control: private, max-age=0, must-revalidate
21
+ Content-Length: 1
22
+ Status: 200
23
+ Content-Type: application/json; charset=utf-8
24
+ Set-Cookie: session_token=; path=/; expires=Wed, 29-May-2030 23:21:43 GMT
25
+ Set-Cookie: _campfire_session=BAh7CDoQaWRlbnRpdHlfaWRpA7F3AjoJYXV0aHsGIg9icm9hZHNwaXJlewY6DHVzZXJfaWRpA%2FNXBjoPc2Vzc2lvbl9pZCIlNGY3YTE1MWU2NjIzMzJkZGE1NjJmNjc4MzY4ZjVhNjg%3D--f02fcf34c35b8903b445912bc80d9a660f99c8f6; path=/; HttpOnly
26
+ Via: 1.1 campfirenow.com
27
+ Connection: close
28
+
@@ -0,0 +1 @@
1
+ {"room":{"name":"test2","created_at":"2010/05/29 21:38:02 +0000","updated_at":"2010/05/29 21:38:02 +0000","topic":"this and the test room should be deleted by a campfire admin.","full":false,"id":304355,"users":[{"type":"Member","created_at":"2009/01/27 19:54:36 +0000","email_address":"eoga@broadspire.com","admin":false,"id":415731,"name":"Emmanuel"}],"open_to_guests":false,"membership_limit":12,"locked":false}}
@@ -0,0 +1 @@
1
+ {"room_id":304355,"created_at":"2010/05/29 23:22:08 +0000","body":"message 1","id":224592715,"user_id":415731,"type":"TextMessage"}
2
  {"room_id":304355,"created_at":"2010/05/29 23:22:22 +0000","body":"liniers_x_2.jpg","id":224592725,"user_id":415731,"type":"UploadMessage"}
1
3
 
@@ -0,0 +1,33 @@
1
+ {"messages":[{"type":"TimestampMessage","room_id":304355,"created_at":"2010/05/29 22:05:00 +0000","body":null,"id":224587718,"user_id":null},
2
+ {"type":"EnterMessage","room_id":304355,"created_at":"2010/05/29 22:08:35 +0000","body":null,"id":224587719,"user_id":415731},
3
+ {"type":"TextMessage","room_id":304355,"created_at":"2010/05/29 22:08:42 +0000","body":"hello this is a test","id":224587732,"user_id":415731},
4
+ {"type":"TextMessage","room_id":304355,"created_at":"2010/05/29 22:08:45 +0000","body":"this is also a test","id":224587734,"user_id":415731},
5
+ {"type":"UploadMessage","room_id":304355,"created_at":"2010/05/29 22:08:57 +0000","body":"InnoDB_int.png","id":224587747,"user_id":415731},
6
+ {"type":"UploadMessage","room_id":304355,"created_at":"2010/05/29 22:09:11 +0000","body":"exclamation.png","id":224587759,"user_id":415731},
7
+ {"type":"TextMessage","room_id":304355,"created_at":"2010/05/29 22:09:39 +0000","body":"a + b = c","id":224587789,"user_id":415731},
8
+ {"type":"PasteMessage","room_id":304355,"created_at":"2010/05/29 22:09:46 +0000","body":"this\nis \na \npaster","id":224587793,"user_id":415731},
9
+ {"type":"TimestampMessage","room_id":304355,"created_at":"2010/05/29 22:30:00 +0000","body":null,"id":224589481,"user_id":null},
10
+ {"type":"TextMessage","room_id":304355,"created_at":"2010/05/29 22:33:04 +0000","body":"Hello","id":224589482,"user_id":415731},
11
+ {"type":"TextMessage","room_id":304355,"created_at":"2010/05/29 22:33:05 +0000","body":"Hello","id":224589483,"user_id":415731},
12
+ {"type":"LeaveMessage","room_id":304355,"created_at":"2010/05/29 22:33:06 +0000","body":null,"id":224589486,"user_id":415731},
13
+ {"type":"TextMessage","room_id":304355,"created_at":"2010/05/29 22:34:02 +0000","body":"Hello","id":224589531,"user_id":415731},
14
+ {"type":"TextMessage","room_id":304355,"created_at":"2010/05/29 22:34:02 +0000","body":"Hello","id":224589532,"user_id":415731},
15
+ {"type":"EnterMessage","room_id":304355,"created_at":"2010/05/29 22:34:02 +0000","body":null,"id":224589533,"user_id":415731},
16
+ {"type":"LeaveMessage","room_id":304355,"created_at":"2010/05/29 22:34:03 +0000","body":null,"id":224589540,"user_id":415731},
17
+ {"type":"EnterMessage","room_id":304355,"created_at":"2010/05/29 22:34:10 +0000","body":null,"id":224589550,"user_id":415731},
18
+ {"type":"TimestampMessage","room_id":304355,"created_at":"2010/05/29 22:35:00 +0000","body":null,"id":224589634,"user_id":null},
19
+ {"type":"TextMessage","room_id":304355,"created_at":"2010/05/29 22:35:10 +0000","body":"Hello","id":224589635,"user_id":415731},
20
+ {"type":"TextMessage","room_id":304355,"created_at":"2010/05/29 22:35:11 +0000","body":"Hello","id":224589636,"user_id":415731},
21
+ {"type":"LeaveMessage","room_id":304355,"created_at":"2010/05/29 22:35:12 +0000","body":null,"id":224589638,"user_id":415731},
22
+ {"type":"EnterMessage","room_id":304355,"created_at":"2010/05/29 22:35:13 +0000","body":null,"id":224589639,"user_id":415731},
23
+ {"type":"TextMessage","room_id":304355,"created_at":"2010/05/29 22:35:25 +0000","body":"a, b, c","id":224589649,"user_id":415731},
24
+ {"type":"TextMessage","room_id":304355,"created_at":"2010/05/29 22:35:30 +0000","body":"d, e, f","id":224589652,"user_id":415731},
25
+ {"type":"PasteMessage","room_id":304355,"created_at":"2010/05/29 22:35:33 +0000","body":"multi\nline","id":224589656,"user_id":415731},
26
+ {"type":"TimestampMessage","room_id":304355,"created_at":"2010/05/29 22:40:00 +0000","body":null,"id":224590095,"user_id":null},
27
+ {"type":"TextMessage","room_id":304355,"created_at":"2010/05/29 22:41:07 +0000","body":"Hello","id":224590096,"user_id":415731},
28
+ {"type":"TextMessage","room_id":304355,"created_at":"2010/05/29 22:41:07 +0000","body":"Hello","id":224590097,"user_id":415731},
29
+ {"type":"LeaveMessage","room_id":304355,"created_at":"2010/05/29 22:41:09 +0000","body":null,"id":224590098,"user_id":415731},
30
+ {"type":"EnterMessage","room_id":304355,"created_at":"2010/05/29 22:41:15 +0000","body":null,"id":224590101,"user_id":415731},
31
+ {"type":"TextMessage","room_id":304355,"created_at":"2010/05/29 22:41:28 +0000","body":"a","id":224590107,"user_id":415731},
32
+ {"type":"TextMessage","room_id":304355,"created_at":"2010/05/29 22:41:34 +0000","body":"b","id":224590113,"user_id":415731},
33
+ {"type":"PasteMessage","room_id":304355,"created_at":"2010/05/29 22:41:34 +0000","body":"paste\ntext","id":224590114,"user_id":415731}]}
@@ -0,0 +1,33 @@
1
+ {"messages":[{"type":"TimestampMessage","room_id":304355,"created_at":"2010/05/29 22:05:00 +0000","body":null,"id":224587718,"user_id":null},
2
+ {"type":"EnterMessage","room_id":304355,"created_at":"2010/05/29 22:08:35 +0000","body":null,"id":224587719,"user_id":415731},
3
+ {"type":"TextMessage","room_id":304355,"created_at":"2010/05/29 22:08:42 +0000","body":"hello this is a test","id":224587732,"user_id":415731},
4
+ {"type":"TextMessage","room_id":304355,"created_at":"2010/05/29 22:08:45 +0000","body":"this is also a test","id":224587734,"user_id":415731},
5
+ {"type":"UploadMessage","room_id":304355,"created_at":"2010/05/29 22:08:57 +0000","body":"InnoDB_int.png","id":224587747,"user_id":415731},
6
+ {"type":"UploadMessage","room_id":304355,"created_at":"2010/05/29 22:09:11 +0000","body":"exclamation.png","id":224587759,"user_id":415731},
7
+ {"type":"TextMessage","room_id":304355,"created_at":"2010/05/29 22:09:39 +0000","body":"a + b = c","id":224587789,"user_id":415731},
8
+ {"type":"PasteMessage","room_id":304355,"created_at":"2010/05/29 22:09:46 +0000","body":"this\nis \na \npaster","id":224587793,"user_id":415731},
9
+ {"type":"TimestampMessage","room_id":304355,"created_at":"2010/05/29 22:30:00 +0000","body":null,"id":224589481,"user_id":null},
10
+ {"type":"TextMessage","room_id":304355,"created_at":"2010/05/29 22:33:04 +0000","body":"Hello","id":224589482,"user_id":415731},
11
+ {"type":"TextMessage","room_id":304355,"created_at":"2010/05/29 22:33:05 +0000","body":"Hello","id":224589483,"user_id":415731},
12
+ {"type":"LeaveMessage","room_id":304355,"created_at":"2010/05/29 22:33:06 +0000","body":null,"id":224589486,"user_id":415731},
13
+ {"type":"TextMessage","room_id":304355,"created_at":"2010/05/29 22:34:02 +0000","body":"Hello","id":224589531,"user_id":415731},
14
+ {"type":"TextMessage","room_id":304355,"created_at":"2010/05/29 22:34:02 +0000","body":"Hello","id":224589532,"user_id":415731},
15
+ {"type":"EnterMessage","room_id":304355,"created_at":"2010/05/29 22:34:02 +0000","body":null,"id":224589533,"user_id":415731},
16
+ {"type":"LeaveMessage","room_id":304355,"created_at":"2010/05/29 22:34:03 +0000","body":null,"id":224589540,"user_id":415731},
17
+ {"type":"EnterMessage","room_id":304355,"created_at":"2010/05/29 22:34:10 +0000","body":null,"id":224589550,"user_id":415731},
18
+ {"type":"TimestampMessage","room_id":304355,"created_at":"2010/05/29 22:35:00 +0000","body":null,"id":224589634,"user_id":null},
19
+ {"type":"TextMessage","room_id":304355,"created_at":"2010/05/29 22:35:10 +0000","body":"Hello","id":224589635,"user_id":415731},
20
+ {"type":"TextMessage","room_id":304355,"created_at":"2010/05/29 22:35:11 +0000","body":"Hello","id":224589636,"user_id":415731},
21
+ {"type":"LeaveMessage","room_id":304355,"created_at":"2010/05/29 22:35:12 +0000","body":null,"id":224589638,"user_id":415731},
22
+ {"type":"EnterMessage","room_id":304355,"created_at":"2010/05/29 22:35:13 +0000","body":null,"id":224589639,"user_id":415731},
23
+ {"type":"TextMessage","room_id":304355,"created_at":"2010/05/29 22:35:25 +0000","body":"a, b, c","id":224589649,"user_id":415731},
24
+ {"type":"TextMessage","room_id":304355,"created_at":"2010/05/29 22:35:30 +0000","body":"d, e, f","id":224589652,"user_id":415731},
25
+ {"type":"PasteMessage","room_id":304355,"created_at":"2010/05/29 22:35:33 +0000","body":"multi\nline","id":224589656,"user_id":415731},
26
+ {"type":"TimestampMessage","room_id":304355,"created_at":"2010/05/29 22:40:00 +0000","body":null,"id":224590095,"user_id":null},
27
+ {"type":"TextMessage","room_id":304355,"created_at":"2010/05/29 22:41:07 +0000","body":"Hello","id":224590096,"user_id":415731},
28
+ {"type":"TextMessage","room_id":304355,"created_at":"2010/05/29 22:41:07 +0000","body":"Hello","id":224590097,"user_id":415731},
29
+ {"type":"LeaveMessage","room_id":304355,"created_at":"2010/05/29 22:41:09 +0000","body":null,"id":224590098,"user_id":415731},
30
+ {"type":"EnterMessage","room_id":304355,"created_at":"2010/05/29 22:41:15 +0000","body":null,"id":224590101,"user_id":415731},
31
+ {"type":"TextMessage","room_id":304355,"created_at":"2010/05/29 22:41:28 +0000","body":"a","id":224590107,"user_id":415731},
32
+ {"type":"TextMessage","room_id":304355,"created_at":"2010/05/29 22:41:34 +0000","body":"b","id":224590113,"user_id":415731},
33
+ {"type":"PasteMessage","room_id":304355,"created_at":"2010/05/29 22:41:34 +0000","body":"paste\ntext","id":224590114,"user_id":415731}]}
@@ -0,0 +1,33 @@
1
+ {"messages":[{"type":"TimestampMessage","room_id":304355,"created_at":"2010/05/29 22:05:00 +0000","body":null,"id":224587718,"user_id":null},
2
+ {"type":"EnterMessage","room_id":304355,"created_at":"2010/05/29 22:08:35 +0000","body":null,"id":224587719,"user_id":415731},
3
+ {"type":"TextMessage","room_id":304355,"created_at":"2010/05/29 22:08:42 +0000","body":"hello this is a test","id":224587732,"user_id":415731},
4
+ {"type":"TextMessage","room_id":304355,"created_at":"2010/05/29 22:08:45 +0000","body":"this is also a test","id":224587734,"user_id":415731},
5
+ {"type":"UploadMessage","room_id":304355,"created_at":"2010/05/29 22:08:57 +0000","body":"InnoDB_int.png","id":224587747,"user_id":415731},
6
+ {"type":"UploadMessage","room_id":304355,"created_at":"2010/05/29 22:09:11 +0000","body":"exclamation.png","id":224587759,"user_id":415731},
7
+ {"type":"TextMessage","room_id":304355,"created_at":"2010/05/29 22:09:39 +0000","body":"a + b = c","id":224587789,"user_id":415731},
8
+ {"type":"PasteMessage","room_id":304355,"created_at":"2010/05/29 22:09:46 +0000","body":"this\nis \na \npaster","id":224587793,"user_id":415731},
9
+ {"type":"TimestampMessage","room_id":304355,"created_at":"2010/05/29 22:30:00 +0000","body":null,"id":224589481,"user_id":null},
10
+ {"type":"TextMessage","room_id":304355,"created_at":"2010/05/29 22:33:04 +0000","body":"Hello","id":224589482,"user_id":415731},
11
+ {"type":"TextMessage","room_id":304355,"created_at":"2010/05/29 22:33:05 +0000","body":"Hello","id":224589483,"user_id":415731},
12
+ {"type":"LeaveMessage","room_id":304355,"created_at":"2010/05/29 22:33:06 +0000","body":null,"id":224589486,"user_id":415731},
13
+ {"type":"TextMessage","room_id":304355,"created_at":"2010/05/29 22:34:02 +0000","body":"Hello","id":224589531,"user_id":415731},
14
+ {"type":"TextMessage","room_id":304355,"created_at":"2010/05/29 22:34:02 +0000","body":"Hello","id":224589532,"user_id":415731},
15
+ {"type":"EnterMessage","room_id":304355,"created_at":"2010/05/29 22:34:02 +0000","body":null,"id":224589533,"user_id":415731},
16
+ {"type":"LeaveMessage","room_id":304355,"created_at":"2010/05/29 22:34:03 +0000","body":null,"id":224589540,"user_id":415731},
17
+ {"type":"EnterMessage","room_id":304355,"created_at":"2010/05/29 22:34:10 +0000","body":null,"id":224589550,"user_id":415731},
18
+ {"type":"TimestampMessage","room_id":304355,"created_at":"2010/05/29 22:35:00 +0000","body":null,"id":224589634,"user_id":null},
19
+ {"type":"TextMessage","room_id":304355,"created_at":"2010/05/29 22:35:10 +0000","body":"Hello","id":224589635,"user_id":415731},
20
+ {"type":"TextMessage","room_id":304355,"created_at":"2010/05/29 22:35:11 +0000","body":"Hello","id":224589636,"user_id":415731},
21
+ {"type":"LeaveMessage","room_id":304355,"created_at":"2010/05/29 22:35:12 +0000","body":null,"id":224589638,"user_id":415731},
22
+ {"type":"EnterMessage","room_id":304355,"created_at":"2010/05/29 22:35:13 +0000","body":null,"id":224589639,"user_id":415731},
23
+ {"type":"TextMessage","room_id":304355,"created_at":"2010/05/29 22:35:25 +0000","body":"a, b, c","id":224589649,"user_id":415731},
24
+ {"type":"TextMessage","room_id":304355,"created_at":"2010/05/29 22:35:30 +0000","body":"d, e, f","id":224589652,"user_id":415731},
25
+ {"type":"PasteMessage","room_id":304355,"created_at":"2010/05/29 22:35:33 +0000","body":"multi\nline","id":224589656,"user_id":415731},
26
+ {"type":"TimestampMessage","room_id":304355,"created_at":"2010/05/29 22:40:00 +0000","body":null,"id":224590095,"user_id":null},
27
+ {"type":"TextMessage","room_id":304355,"created_at":"2010/05/29 22:41:07 +0000","body":"Hello","id":224590096,"user_id":415731},
28
+ {"type":"TextMessage","room_id":304355,"created_at":"2010/05/29 22:41:07 +0000","body":"Hello","id":224590097,"user_id":415731},
29
+ {"type":"LeaveMessage","room_id":304355,"created_at":"2010/05/29 22:41:09 +0000","body":null,"id":224590098,"user_id":415731},
30
+ {"type":"EnterMessage","room_id":304355,"created_at":"2010/05/29 22:41:15 +0000","body":null,"id":224590101,"user_id":415731},
31
+ {"type":"TextMessage","room_id":304355,"created_at":"2010/05/29 22:41:28 +0000","body":"a","id":224590107,"user_id":415731},
32
+ {"type":"TextMessage","room_id":304355,"created_at":"2010/05/29 22:41:34 +0000","body":"b","id":224590113,"user_id":415731},
33
+ {"type":"PasteMessage","room_id":304355,"created_at":"2010/05/29 22:41:34 +0000","body":"paste\ntext","id":224590114,"user_id":415731}]}
@@ -0,0 +1 @@
1
+ {"uploads":[{"room_id":304355,"name":"exclamation.png","created_at":"2010/05/29 22:09:11 +0000","content_type":"image/png","full_url":"http://broadspire.campfirenow.com/room/304355/uploads/1281204/exclamation.png","id":1281204,"user_id":415731,"byte_size":4338},{"room_id":304355,"name":"InnoDB_int.png","created_at":"2010/05/29 22:08:57 +0000","content_type":"image/png","full_url":"http://broadspire.campfirenow.com/room/304355/uploads/1281203/InnoDB_int.png","id":1281203,"user_id":415731,"byte_size":115764}]}
@@ -0,0 +1,2 @@
1
+ {"rooms":[{"name":"test","created_at":"2010/05/19 23:32:18 +0000","updated_at":"2010/05/29 21:20:29 +0000","topic":"test test test","id":301710,"membership_limit":12,"locked":true},
2
+ {"name":"test2","created_at":"2010/05/29 21:38:02 +0000","updated_at":"2010/05/29 21:38:02 +0000","topic":"this and the test room should be deleted by a campfire admin.","id":304355,"membership_limit":12,"locked":false}]}
@@ -0,0 +1,3 @@
1
+ {"messages":[{"type":"TextMessage","room_id":177718,"created_at":"2009/09/25 19:42:56 +0000","body":"hehe I was a couple of minutes late. I can push to staging, if everything looks ok we may want to push to heroku once more (sounds harmless) ","id":161730712,"user_id":415731},
2
+ {"type":"TextMessage","room_id":177718,"created_at":"2009/06/24 13:56:12 +0000","body":"it is generally harmless, since I haven't pushed my commit yet","id":139540852,"user_id":415731},
3
+ {"type":"TextMessage","room_id":177718,"created_at":"2009/06/02 21:20:32 +0000","body":"q: should i add :case_sensitive =\u003E false to the validation of title name? Looks harmless but who knows...","id":134405854,"user_id":415731}]}
@@ -0,0 +1 @@
1
+ {"user":{"type":"Member","created_at":"2009/01/27 19:54:36 +0000","email_address":"eoga@mail.com","admin":false,"id":415731,"name":"Emmanuel"}}
@@ -0,0 +1 @@
1
+ {"user":{"type":"Member","created_at":"2009/01/27 19:54:36 +0000","email_address":"eoga@test.com","admin":false,"id":415731,"name":"Emmanuel","api_auth_token":"token"}}
@@ -0,0 +1 @@
1
+ {"message":{"type":"TextMessage","room_id":304355,"created_at":"2010/05/29 23:21:47 +0000","body":"Hello","id":224592683,"user_id":415731}}
@@ -0,0 +1 @@
1
+
@@ -0,0 +1,31 @@
1
+ require 'open-uri'
2
+
3
+ server_file = File.join(File.dirname(__FILE__), 'server.rb')
4
+
5
+ port = 4567
6
+
7
+ pid = fork do
8
+ exec("`which ruby` #{server_file}")
9
+ end
10
+
11
+ start = Time.now
12
+ spawned = false
13
+
14
+ while Time.now - start < 5
15
+ begin
16
+ open(URI("http://localhost:#{port}/"))
17
+ rescue Errno::ECONNREFUSED
18
+ sleep 1
19
+ rescue OpenURI::HTTPError
20
+ spawned = true
21
+ break
22
+ end
23
+ end
24
+
25
+ unless spawned
26
+ raise "Could not run the fixtures server"
27
+ end
28
+
29
+ at_exit do
30
+ Process.kill(:KILL, pid) if pid
31
+ end
@@ -0,0 +1,55 @@
1
+ require 'rubygems'
2
+ require 'yajl'
3
+ require 'shellwords'
4
+ require 'fileutils'
5
+
6
+ HOST = "broadspire"
7
+ TOKEN = "90454e67ebe1e202034a49266cc0abf0de7e538e"
8
+
9
+ Dir["{json,headers}/*"].each { |f| FileUtils.rm f }
10
+
11
+ def http(method, path, data = {})
12
+ fixture = ([method.to_s] + path.split("/")).join("_").squeeze("_").gsub(/\d+/, "ID")
13
+
14
+ if path =~ /^http/
15
+ url = path
16
+ else
17
+ url = "http://#{HOST}.campfirenow.com#{path}"
18
+ end
19
+
20
+ data_param = "-d #{Yajl::Encoder.encode(data, :pretty => true).shellescape}" if data
21
+
22
+ system("curl -X #{method.to_s.upcase} -u #{TOKEN}:X #{url} -N -H 'Content-Type: application/json' #{data_param} -D headers/#{fixture} #{url} > json/#{fixture}")
23
+ end
24
+
25
+ user_id = "415731"
26
+ room_id = "304355"
27
+ message_id = "224587793"
28
+
29
+ http :get, "/rooms.json"
30
+ http :get, "/room/#{room_id}.json"
31
+ http :put, "/room/#{room_id}.json"
32
+ http :get, "/room/#{room_id}/recent.json"
33
+ http :get, "/room/#{room_id}/uploads.json"
34
+ http :get, "/room/#{room_id}/transcript.json"
35
+ http :get, "/room/#{room_id}/transcript/2010/05/28.json"
36
+
37
+ http :post, "/room/#{room_id}/speak.json", :message => { :type => "TextMessage", :body => "Hello" }
38
+
39
+ #http :post, "/room/#{room_id}/uploads.json"
40
+ #http :post, "/room/#{room_id}/lock.json"
41
+
42
+ http :post, "/room/#{room_id}/join.json"
43
+ http :post, "/room/#{room_id}/leave.json"
44
+ http :post, "/room/#{room_id}/unlock.json"
45
+
46
+ http :delete, "/messages/#{message_id}/star.json"
47
+ http :post, "/messages/#{message_id}/star.json"
48
+
49
+ http :get, "/users/#{user_id}.json"
50
+ http :get, "/users/me.json"
51
+
52
+ http :get, "/search/harmless.json"
53
+
54
+ http :post, "/room/#{room_id}/join.json"
55
+ http :get, "https://streaming.campfirenow.com/room/#{room_id}/live.json"