journeta 0.1.7 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (92) hide show
  1. data/Gemfile +8 -0
  2. data/Gemfile.lock +20 -0
  3. data/{History.txt → HISTORY} +13 -1
  4. data/LICENSE +51 -0
  5. data/License.txt +2 -2
  6. data/{README.txt → README.rdoc} +12 -17
  7. data/Rakefile +46 -112
  8. data/VERSION +1 -0
  9. data/{examples/instant_messenger.rb → bin/journeta_instant_messenger.rb} +13 -0
  10. data/bin/journeta_mock_peers.rb +32 -0
  11. data/{examples/network_status.rb → bin/journeta_network_status.rb} +0 -0
  12. data/bin/journeta_peer_fuzzer.rb +54 -0
  13. data/{examples/queue_client.rb → bin/journeta_queue_client.rb} +0 -0
  14. data/{examples/queue_server.rb → bin/journeta_queue_server.rb} +0 -0
  15. data/bin/journeta_thread_leak_check.rb +16 -0
  16. data/bin/journeta_top.rb +73 -0
  17. data/{examples/instant_messenger_gui.rb → broken/journeta_instant_messenger_gui.rb} +0 -2
  18. data/broken/journeta_instant_messenger_shoes.rb +52 -0
  19. data/lib/diff.rb +280 -0
  20. data/lib/journeta.rb +1 -0
  21. data/lib/journeta/asynchronous.rb +2 -2
  22. data/lib/journeta/exception.rb +8 -0
  23. data/lib/journeta/journeta_engine.rb +4 -5
  24. data/lib/journeta/logger.rb +1 -1
  25. data/lib/journeta/peer_connection.rb +2 -2
  26. data/lib/journeta/peer_listener.rb +2 -2
  27. data/lib/journeta/presence_broadcaster.rb +19 -5
  28. data/lib/journeta/presence_listener.rb +8 -4
  29. data/lib/journeta/version.rb +6 -4
  30. data/rdoc/Array.html +199 -0
  31. data/rdoc/Diff.html +714 -0
  32. data/rdoc/Diffable.html +409 -0
  33. data/rdoc/Journeta.html +288 -0
  34. data/rdoc/Journeta/Asynchronous.html +429 -0
  35. data/rdoc/Journeta/Common.html +205 -0
  36. data/rdoc/Journeta/Common/BasicMessage.html +228 -0
  37. data/rdoc/Journeta/Common/DummyPeerHandler.html +237 -0
  38. data/rdoc/Journeta/Common/Job.html +279 -0
  39. data/rdoc/Journeta/Common/Shutdown.html +236 -0
  40. data/rdoc/Journeta/DefaultPeerHandler.html +248 -0
  41. data/rdoc/Journeta/DefaultPeerRegisteredHandler.html +249 -0
  42. data/rdoc/Journeta/DefaultPeerUnregisteredHandler.html +249 -0
  43. data/rdoc/Journeta/DefaultPeerUpdatedHandler.html +249 -0
  44. data/rdoc/Journeta/Engine.html +953 -0
  45. data/rdoc/Journeta/Logger.html +237 -0
  46. data/rdoc/Journeta/NotImplementedException.html +188 -0
  47. data/rdoc/Journeta/PeerConnection.html +549 -0
  48. data/rdoc/Journeta/PeerListener.html +276 -0
  49. data/rdoc/Journeta/PeerRegistry.html +804 -0
  50. data/rdoc/Journeta/PresenceBroadcaster.html +306 -0
  51. data/rdoc/Journeta/PresenceListener.html +300 -0
  52. data/rdoc/Journeta/PresenceMessage.html +321 -0
  53. data/rdoc/Journeta/VERSION.html +181 -0
  54. data/rdoc/README_rdoc.html +196 -0
  55. data/rdoc/String.html +199 -0
  56. data/rdoc/created.rid +20 -0
  57. data/rdoc/index.html +212 -0
  58. data/rdoc/lib/diff_rb.html +52 -0
  59. data/rdoc/lib/journeta/asynchronous_rb.html +60 -0
  60. data/rdoc/lib/journeta/common/basic_message_rb.html +52 -0
  61. data/rdoc/lib/journeta/common/dummy_peer_handler_rb.html +52 -0
  62. data/rdoc/lib/journeta/common/job_rb.html +52 -0
  63. data/rdoc/lib/journeta/common/shutdown_rb.html +52 -0
  64. data/rdoc/lib/journeta/exception_rb.html +55 -0
  65. data/rdoc/lib/journeta/journeta_engine_rb.html +62 -0
  66. data/rdoc/lib/journeta/logger_rb.html +55 -0
  67. data/rdoc/lib/journeta/peer_connection_rb.html +58 -0
  68. data/rdoc/lib/journeta/peer_handler_rb.html +52 -0
  69. data/rdoc/lib/journeta/peer_listener_rb.html +60 -0
  70. data/rdoc/lib/journeta/peer_registry_rb.html +54 -0
  71. data/rdoc/lib/journeta/presence_broadcaster_rb.html +57 -0
  72. data/rdoc/lib/journeta/presence_listener_rb.html +62 -0
  73. data/rdoc/lib/journeta/presence_message_rb.html +52 -0
  74. data/rdoc/lib/journeta/version_rb.html +52 -0
  75. data/rdoc/lib/journeta_rb.html +91 -0
  76. data/rdoc/rdoc.css +706 -0
  77. data/test/helper.rb +19 -0
  78. data/test/test_lifecycle.rb +49 -9
  79. data/website/images/arrow.png +0 -0
  80. data/website/images/banner.jpg +0 -0
  81. data/website/images/content_shadow.png +0 -0
  82. data/website/images/content_side.png +0 -0
  83. data/website/images/header.jpg +0 -0
  84. data/website/images/header_side.jpg +0 -0
  85. data/website/index.html +1 -1
  86. data/website/index.txt +1 -1
  87. data/website/stylesheets/reset.css +30 -0
  88. data/website/stylesheets/screen.css +1 -1
  89. metadata +152 -46
  90. data/test/test_event_broadcaster.rb +0 -15
  91. data/test/test_helper.rb +0 -4
  92. data/test/test_journeta.rb +0 -11
@@ -0,0 +1,228 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
+ <head>
6
+ <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
7
+
8
+ <title>Class: Journeta::Common::BasicMessage</title>
9
+
10
+ <link rel="stylesheet" href="../../rdoc.css" type="text/css" media="screen" />
11
+
12
+ <script src="../../js/jquery.js" type="text/javascript"
13
+ charset="utf-8"></script>
14
+ <script src="../../js/thickbox-compressed.js" type="text/javascript"
15
+ charset="utf-8"></script>
16
+ <script src="../../js/quicksearch.js" type="text/javascript"
17
+ charset="utf-8"></script>
18
+ <script src="../../js/darkfish.js" type="text/javascript"
19
+ charset="utf-8"></script>
20
+
21
+ </head>
22
+ <body class="class">
23
+
24
+ <div id="metadata">
25
+ <div id="home-metadata">
26
+ <div id="home-section" class="section">
27
+ <h3 class="section-header">
28
+ <a href="../../index.html">Home</a>
29
+ <a href="../../index.html#classes">Classes</a>
30
+ <a href="../../index.html#methods">Methods</a>
31
+ </h3>
32
+ </div>
33
+ </div>
34
+
35
+ <div id="file-metadata">
36
+ <div id="file-list-section" class="section">
37
+ <h3 class="section-header">In Files</h3>
38
+ <div class="section-body">
39
+ <ul>
40
+
41
+ <li><a href="../../lib/journeta/common/basic_message_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
42
+ class="thickbox" title="lib/journeta/common/basic_message.rb">lib/journeta/common/basic_message.rb</a></li>
43
+
44
+ </ul>
45
+ </div>
46
+ </div>
47
+
48
+
49
+ </div>
50
+
51
+ <div id="class-metadata">
52
+
53
+ <!-- Parent Class -->
54
+
55
+ <div id="parent-class-section" class="section">
56
+ <h3 class="section-header">Parent</h3>
57
+
58
+ <p class="link">Object</p>
59
+
60
+ </div>
61
+
62
+
63
+ <!-- Namespace Contents -->
64
+
65
+
66
+ <!-- Method Quickref -->
67
+
68
+
69
+ <!-- Included Modules -->
70
+
71
+ </div>
72
+
73
+ <div id="project-metadata">
74
+
75
+
76
+ <div id="fileindex-section" class="section project-section">
77
+ <h3 class="section-header">Files</h3>
78
+ <ul>
79
+
80
+ <li class="file"><a href="../../README_rdoc.html">README.rdoc</a></li>
81
+
82
+ </ul>
83
+ </div>
84
+
85
+
86
+ <div id="classindex-section" class="section project-section">
87
+ <h3 class="section-header">Class Index
88
+ <span class="search-toggle"><img src="../../images/find.png"
89
+ height="16" width="16" alt="[+]"
90
+ title="show/hide quicksearch" /></span></h3>
91
+ <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
92
+ <fieldset>
93
+ <legend>Quicksearch</legend>
94
+ <input type="text" name="quicksearch" value=""
95
+ class="quicksearch-field" />
96
+ </fieldset>
97
+ </form>
98
+
99
+ <ul class="link-list">
100
+
101
+ <li><a href="../../Journeta/Asynchronous.html">Journeta::Asynchronous</a></li>
102
+
103
+ <li><a href="../../Journeta/Common.html">Journeta::Common</a></li>
104
+
105
+ <li><a href="../../Journeta/Common/BasicMessage.html">Journeta::Common::BasicMessage</a></li>
106
+
107
+ <li><a href="../../Journeta/Common/DummyPeerHandler.html">Journeta::Common::DummyPeerHandler</a></li>
108
+
109
+ <li><a href="../../Journeta/Common/Job.html">Journeta::Common::Job</a></li>
110
+
111
+ <li><a href="../../Journeta/Common/Shutdown.html">Journeta::Common::Shutdown</a></li>
112
+
113
+ <li><a href="../../Journeta/DefaultPeerHandler.html">Journeta::DefaultPeerHandler</a></li>
114
+
115
+ <li><a href="../../Journeta/DefaultPeerRegisteredHandler.html">Journeta::DefaultPeerRegisteredHandler</a></li>
116
+
117
+ <li><a href="../../Journeta/DefaultPeerUnregisteredHandler.html">Journeta::DefaultPeerUnregisteredHandler</a></li>
118
+
119
+ <li><a href="../../Journeta/DefaultPeerUpdatedHandler.html">Journeta::DefaultPeerUpdatedHandler</a></li>
120
+
121
+ <li><a href="../../Journeta/Engine.html">Journeta::Engine</a></li>
122
+
123
+ <li><a href="../../Journeta/Logger.html">Journeta::Logger</a></li>
124
+
125
+ <li><a href="../../Journeta/NotImplementedException.html">Journeta::NotImplementedException</a></li>
126
+
127
+ <li><a href="../../Journeta/PeerConnection.html">Journeta::PeerConnection</a></li>
128
+
129
+ <li><a href="../../Journeta/PeerListener.html">Journeta::PeerListener</a></li>
130
+
131
+ <li><a href="../../Journeta/PeerRegistry.html">Journeta::PeerRegistry</a></li>
132
+
133
+ <li><a href="../../Journeta/PresenceBroadcaster.html">Journeta::PresenceBroadcaster</a></li>
134
+
135
+ <li><a href="../../Journeta/PresenceListener.html">Journeta::PresenceListener</a></li>
136
+
137
+ <li><a href="../../Journeta/PresenceMessage.html">Journeta::PresenceMessage</a></li>
138
+
139
+ <li><a href="../../Array.html">Array</a></li>
140
+
141
+ <li><a href="../../Diff.html">Diff</a></li>
142
+
143
+ <li><a href="../../Diffable.html">Diffable</a></li>
144
+
145
+ <li><a href="../../String.html">String</a></li>
146
+
147
+ </ul>
148
+ <div id="no-class-search-results" style="display: none;">No matching classes.</div>
149
+ </div>
150
+
151
+
152
+ </div>
153
+ </div>
154
+
155
+ <div id="documentation">
156
+ <h1 class="class">Journeta::Common::BasicMessage</h1>
157
+
158
+ <div id="description">
159
+
160
+ </div>
161
+
162
+ <!-- Constants -->
163
+
164
+
165
+ <!-- Attributes -->
166
+
167
+ <div id="attribute-method-details" class="method-section section">
168
+ <h3 class="section-header">Attributes</h3>
169
+
170
+
171
+ <div id="name-attribute-method" class="method-detail">
172
+ <a name="name"></a>
173
+
174
+ <a name="name="></a>
175
+
176
+ <div class="method-heading attribute-method-heading">
177
+ <span class="method-name">name</span><span
178
+ class="attribute-access-type">[RW]</span>
179
+ </div>
180
+
181
+ <div class="method-description">
182
+
183
+
184
+
185
+ </div>
186
+ </div>
187
+
188
+ <div id="text-attribute-method" class="method-detail">
189
+ <a name="text"></a>
190
+
191
+ <a name="text="></a>
192
+
193
+ <div class="method-heading attribute-method-heading">
194
+ <span class="method-name">text</span><span
195
+ class="attribute-access-type">[RW]</span>
196
+ </div>
197
+
198
+ <div class="method-description">
199
+
200
+
201
+
202
+ </div>
203
+ </div>
204
+
205
+ </div>
206
+
207
+
208
+ <!-- Methods -->
209
+
210
+
211
+ </div>
212
+
213
+
214
+ <div id="rdoc-debugging-section-dump" class="debugging-section">
215
+
216
+ <p>Disabled; run with --debug to generate this.</p>
217
+
218
+ </div>
219
+
220
+ <div id="validator-badges">
221
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
222
+ <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
223
+ Rdoc Generator</a> 1.1.6</small>.</p>
224
+ </div>
225
+
226
+ </body>
227
+ </html>
228
+
@@ -0,0 +1,237 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
+ <head>
6
+ <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
7
+
8
+ <title>Class: Journeta::Common::DummyPeerHandler</title>
9
+
10
+ <link rel="stylesheet" href="../../rdoc.css" type="text/css" media="screen" />
11
+
12
+ <script src="../../js/jquery.js" type="text/javascript"
13
+ charset="utf-8"></script>
14
+ <script src="../../js/thickbox-compressed.js" type="text/javascript"
15
+ charset="utf-8"></script>
16
+ <script src="../../js/quicksearch.js" type="text/javascript"
17
+ charset="utf-8"></script>
18
+ <script src="../../js/darkfish.js" type="text/javascript"
19
+ charset="utf-8"></script>
20
+
21
+ </head>
22
+ <body class="class">
23
+
24
+ <div id="metadata">
25
+ <div id="home-metadata">
26
+ <div id="home-section" class="section">
27
+ <h3 class="section-header">
28
+ <a href="../../index.html">Home</a>
29
+ <a href="../../index.html#classes">Classes</a>
30
+ <a href="../../index.html#methods">Methods</a>
31
+ </h3>
32
+ </div>
33
+ </div>
34
+
35
+ <div id="file-metadata">
36
+ <div id="file-list-section" class="section">
37
+ <h3 class="section-header">In Files</h3>
38
+ <div class="section-body">
39
+ <ul>
40
+
41
+ <li><a href="../../lib/journeta/common/dummy_peer_handler_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
42
+ class="thickbox" title="lib/journeta/common/dummy_peer_handler.rb">lib/journeta/common/dummy_peer_handler.rb</a></li>
43
+
44
+ </ul>
45
+ </div>
46
+ </div>
47
+
48
+
49
+ </div>
50
+
51
+ <div id="class-metadata">
52
+
53
+ <!-- Parent Class -->
54
+
55
+ <div id="parent-class-section" class="section">
56
+ <h3 class="section-header">Parent</h3>
57
+
58
+ <p class="link">Object</p>
59
+
60
+ </div>
61
+
62
+
63
+ <!-- Namespace Contents -->
64
+
65
+
66
+ <!-- Method Quickref -->
67
+
68
+ <div id="method-list-section" class="section">
69
+ <h3 class="section-header">Methods</h3>
70
+ <ul class="link-list">
71
+
72
+ <li><a href="#method-i-call">#call</a></li>
73
+
74
+ </ul>
75
+ </div>
76
+
77
+
78
+ <!-- Included Modules -->
79
+
80
+ </div>
81
+
82
+ <div id="project-metadata">
83
+
84
+
85
+ <div id="fileindex-section" class="section project-section">
86
+ <h3 class="section-header">Files</h3>
87
+ <ul>
88
+
89
+ <li class="file"><a href="../../README_rdoc.html">README.rdoc</a></li>
90
+
91
+ </ul>
92
+ </div>
93
+
94
+
95
+ <div id="classindex-section" class="section project-section">
96
+ <h3 class="section-header">Class Index
97
+ <span class="search-toggle"><img src="../../images/find.png"
98
+ height="16" width="16" alt="[+]"
99
+ title="show/hide quicksearch" /></span></h3>
100
+ <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
101
+ <fieldset>
102
+ <legend>Quicksearch</legend>
103
+ <input type="text" name="quicksearch" value=""
104
+ class="quicksearch-field" />
105
+ </fieldset>
106
+ </form>
107
+
108
+ <ul class="link-list">
109
+
110
+ <li><a href="../../Journeta/Asynchronous.html">Journeta::Asynchronous</a></li>
111
+
112
+ <li><a href="../../Journeta/Common.html">Journeta::Common</a></li>
113
+
114
+ <li><a href="../../Journeta/Common/BasicMessage.html">Journeta::Common::BasicMessage</a></li>
115
+
116
+ <li><a href="../../Journeta/Common/DummyPeerHandler.html">Journeta::Common::DummyPeerHandler</a></li>
117
+
118
+ <li><a href="../../Journeta/Common/Job.html">Journeta::Common::Job</a></li>
119
+
120
+ <li><a href="../../Journeta/Common/Shutdown.html">Journeta::Common::Shutdown</a></li>
121
+
122
+ <li><a href="../../Journeta/DefaultPeerHandler.html">Journeta::DefaultPeerHandler</a></li>
123
+
124
+ <li><a href="../../Journeta/DefaultPeerRegisteredHandler.html">Journeta::DefaultPeerRegisteredHandler</a></li>
125
+
126
+ <li><a href="../../Journeta/DefaultPeerUnregisteredHandler.html">Journeta::DefaultPeerUnregisteredHandler</a></li>
127
+
128
+ <li><a href="../../Journeta/DefaultPeerUpdatedHandler.html">Journeta::DefaultPeerUpdatedHandler</a></li>
129
+
130
+ <li><a href="../../Journeta/Engine.html">Journeta::Engine</a></li>
131
+
132
+ <li><a href="../../Journeta/Logger.html">Journeta::Logger</a></li>
133
+
134
+ <li><a href="../../Journeta/NotImplementedException.html">Journeta::NotImplementedException</a></li>
135
+
136
+ <li><a href="../../Journeta/PeerConnection.html">Journeta::PeerConnection</a></li>
137
+
138
+ <li><a href="../../Journeta/PeerListener.html">Journeta::PeerListener</a></li>
139
+
140
+ <li><a href="../../Journeta/PeerRegistry.html">Journeta::PeerRegistry</a></li>
141
+
142
+ <li><a href="../../Journeta/PresenceBroadcaster.html">Journeta::PresenceBroadcaster</a></li>
143
+
144
+ <li><a href="../../Journeta/PresenceListener.html">Journeta::PresenceListener</a></li>
145
+
146
+ <li><a href="../../Journeta/PresenceMessage.html">Journeta::PresenceMessage</a></li>
147
+
148
+ <li><a href="../../Array.html">Array</a></li>
149
+
150
+ <li><a href="../../Diff.html">Diff</a></li>
151
+
152
+ <li><a href="../../Diffable.html">Diffable</a></li>
153
+
154
+ <li><a href="../../String.html">String</a></li>
155
+
156
+ </ul>
157
+ <div id="no-class-search-results" style="display: none;">No matching classes.</div>
158
+ </div>
159
+
160
+
161
+ </div>
162
+ </div>
163
+
164
+ <div id="documentation">
165
+ <h1 class="class">Journeta::Common::DummyPeerHandler</h1>
166
+
167
+ <div id="description">
168
+
169
+ </div>
170
+
171
+ <!-- Constants -->
172
+
173
+
174
+ <!-- Attributes -->
175
+
176
+
177
+ <!-- Methods -->
178
+
179
+ <div id="public-instance-method-details" class="method-section section">
180
+ <h3 class="section-header">Public Instance Methods</h3>
181
+
182
+
183
+ <div id="call-method" class="method-detail ">
184
+ <a name="method-i-call"></a>
185
+
186
+ <div class="method-heading">
187
+
188
+ <span class="method-name">call</span><span
189
+ class="method-args">(message)</span>
190
+ <span class="method-click-advice">click to toggle source</span>
191
+
192
+ </div>
193
+
194
+ <div class="method-description">
195
+
196
+
197
+
198
+
199
+
200
+ <div class="method-source-code"
201
+ id="call-source">
202
+ <pre>
203
+ <span class="ruby-comment cmt"># File lib/journeta/common/dummy_peer_handler.rb, line 6</span>
204
+ 6: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">call</span>(<span class="ruby-identifier">message</span>)
205
+ 7: <span class="ruby-comment cmt"># Intentionally ingore all messages.</span>
206
+ 8: <span class="ruby-keyword kw">end</span></pre>
207
+ </div>
208
+
209
+ </div>
210
+
211
+
212
+
213
+
214
+ </div>
215
+
216
+
217
+ </div>
218
+
219
+
220
+ </div>
221
+
222
+
223
+ <div id="rdoc-debugging-section-dump" class="debugging-section">
224
+
225
+ <p>Disabled; run with --debug to generate this.</p>
226
+
227
+ </div>
228
+
229
+ <div id="validator-badges">
230
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
231
+ <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
232
+ Rdoc Generator</a> 1.1.6</small>.</p>
233
+ </div>
234
+
235
+ </body>
236
+ </html>
237
+