safubot 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (89) hide show
  1. data/.yardoc/checksums +9 -0
  2. data/.yardoc/objects/root.dat +0 -0
  3. data/.yardoc/proxy_types +0 -0
  4. data/README.md +52 -1
  5. data/doc/Safubot/Bot.html +1287 -652
  6. data/doc/Safubot/Evented.html +409 -276
  7. data/doc/Safubot/KnownUser.html +476 -254
  8. data/doc/Safubot/Log.html +184 -192
  9. data/doc/Safubot/Query.html +131 -164
  10. data/doc/Safubot/Request.html +158 -147
  11. data/doc/Safubot/Response.html +92 -135
  12. data/doc/Safubot/Test.html +166 -187
  13. data/doc/Safubot/Twitter/Bot.html +1005 -455
  14. data/doc/Safubot/Twitter/DirectMessage.html +417 -238
  15. data/doc/Safubot/Twitter/Tweet.html +725 -398
  16. data/doc/Safubot/Twitter.html +69 -116
  17. data/doc/Safubot/XMPP/Bot.html +625 -303
  18. data/doc/Safubot/XMPP/Message.html +372 -217
  19. data/doc/Safubot/XMPP.html +69 -116
  20. data/doc/Safubot.html +155 -126
  21. data/doc/_index.html +294 -0
  22. data/doc/class_list.html +47 -0
  23. data/doc/css/common.css +1 -0
  24. data/doc/css/full_list.css +55 -0
  25. data/doc/css/style.css +322 -0
  26. data/doc/file.README.html +140 -0
  27. data/doc/file_list.html +49 -0
  28. data/doc/frames.html +13 -0
  29. data/doc/index.html +129 -101
  30. data/doc/js/app.js +205 -0
  31. data/doc/js/full_list.js +167 -0
  32. data/doc/js/jquery.js +3 -5
  33. data/doc/method_list.html +638 -0
  34. data/doc/top-level-namespace.html +103 -0
  35. data/lib/safubot/bot.rb +22 -20
  36. data/lib/safubot/known_user.rb +2 -0
  37. data/lib/safubot/twitter.rb +30 -26
  38. data/lib/safubot/version.rb +1 -1
  39. data/lib/safubot/xmpp.rb +20 -14
  40. data/safubot.gemspec +1 -0
  41. metadata +50 -71
  42. data/doc/Gemfile.html +0 -119
  43. data/doc/Object.html +0 -171
  44. data/doc/Rakefile.html +0 -117
  45. data/doc/created.rid +0 -14
  46. data/doc/foo_rb.html +0 -115
  47. data/doc/images/add.png +0 -0
  48. data/doc/images/brick.png +0 -0
  49. data/doc/images/brick_link.png +0 -0
  50. data/doc/images/bug.png +0 -0
  51. data/doc/images/bullet_black.png +0 -0
  52. data/doc/images/bullet_toggle_minus.png +0 -0
  53. data/doc/images/bullet_toggle_plus.png +0 -0
  54. data/doc/images/date.png +0 -0
  55. data/doc/images/delete.png +0 -0
  56. data/doc/images/find.png +0 -0
  57. data/doc/images/loadingAnimation.gif +0 -0
  58. data/doc/images/macFFBgHack.png +0 -0
  59. data/doc/images/package.png +0 -0
  60. data/doc/images/page_green.png +0 -0
  61. data/doc/images/page_white_text.png +0 -0
  62. data/doc/images/page_white_width.png +0 -0
  63. data/doc/images/plugin.png +0 -0
  64. data/doc/images/ruby.png +0 -0
  65. data/doc/images/tag_blue.png +0 -0
  66. data/doc/images/tag_green.png +0 -0
  67. data/doc/images/transparent.png +0 -0
  68. data/doc/images/wrench.png +0 -0
  69. data/doc/images/wrench_orange.png +0 -0
  70. data/doc/images/zoom.png +0 -0
  71. data/doc/js/darkfish.js +0 -153
  72. data/doc/js/navigation.js +0 -142
  73. data/doc/js/search.js +0 -94
  74. data/doc/js/search_index.js +0 -1
  75. data/doc/js/searcher.js +0 -228
  76. data/doc/lib/safubot/bot_rb.html +0 -115
  77. data/doc/lib/safubot/evented_rb.html +0 -115
  78. data/doc/lib/safubot/known_user_rb.html +0 -115
  79. data/doc/lib/safubot/log_rb.html +0 -115
  80. data/doc/lib/safubot/safubot_rb.html +0 -115
  81. data/doc/lib/safubot/spec/bot_spec_rb.html +0 -115
  82. data/doc/lib/safubot/spec/twitter_spec_rb.html +0 -137
  83. data/doc/lib/safubot/test_helper_rb.html +0 -115
  84. data/doc/lib/safubot/twitter_rb.html +0 -115
  85. data/doc/lib/safubot/version_rb.html +0 -115
  86. data/doc/lib/safubot/xmpp_rb.html +0 -115
  87. data/doc/lib/safubot_rb.html +0 -115
  88. data/doc/rdoc.css +0 -543
  89. data/doc/table_of_contents.html +0 -224
data/doc/Safubot/Log.html CHANGED
@@ -1,254 +1,246 @@
1
- <!DOCTYPE html>
2
-
3
- <html>
4
- <head>
5
- <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
+ <title>
7
+ Module: Safubot::Log
8
+
9
+ &mdash; Documentation by YARD 0.7.3
10
+
11
+ </title>
6
12
 
7
- <title>Module: Safubot::Log</title>
13
+ <link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" charset="utf-8" />
8
14
 
9
- <link type="text/css" media="screen" href="../rdoc.css" rel="stylesheet">
15
+ <link rel="stylesheet" href="../css/common.css" type="text/css" media="screen" charset="utf-8" />
10
16
 
11
- <script type="text/javascript">
12
- var rdoc_rel_prefix = "../";
17
+ <script type="text/javascript" charset="utf-8">
18
+ relpath = '..';
19
+ if (relpath != '') relpath += '/';
13
20
  </script>
14
21
 
15
- <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
16
- <script type="text/javascript" charset="utf-8" src="../js/navigation.js"></script>
17
- <script type="text/javascript" charset="utf-8" src="../js/search_index.js"></script>
18
- <script type="text/javascript" charset="utf-8" src="../js/search.js"></script>
19
- <script type="text/javascript" charset="utf-8" src="../js/searcher.js"></script>
20
- <script type="text/javascript" charset="utf-8" src="../js/darkfish.js"></script>
21
-
22
-
23
- <body id="top" class="module">
24
- <nav id="metadata">
25
- <nav id="home-section" class="section">
26
- <h3 class="section-header">
27
- <a href="../index.html">Home</a>
28
- <a href="../table_of_contents.html#classes">Classes</a>
29
- <a href="../table_of_contents.html#methods">Methods</a>
30
- </h3>
31
- </nav>
32
-
33
-
34
- <nav id="search-section" class="section project-section" class="initially-hidden">
35
- <form action="#" method="get" accept-charset="utf-8">
36
- <h3 class="section-header">
37
- <input type="text" name="search" placeholder="Search" id="search-field"
38
- title="Type to search, Up and Down to navigate, Enter to load">
39
- </h3>
40
- </form>
41
-
42
- <ul id="search-results" class="initially-hidden"></ul>
43
- </nav>
44
-
45
-
46
- <div id="file-metadata">
47
- <nav id="file-list-section" class="section">
48
- <h3 class="section-header">Defined In</h3>
49
- <ul>
50
- <li>lib/safubot/log.rb
51
- </ul>
52
- </nav>
22
+ <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
53
23
 
54
-
55
- </div>
24
+ <script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
56
25
 
57
- <div id="class-metadata">
58
-
59
-
60
-
61
- <!-- Method Quickref -->
62
- <nav id="method-list-section" class="section">
63
- <h3 class="section-header">Methods</h3>
64
26
 
65
- <ul class="link-list">
66
-
67
- <li><a href="#method-c-method_missing">::method_missing</a>
27
+ </head>
28
+ <body>
29
+ <script type="text/javascript" charset="utf-8">
30
+ if (window.top.frames.main) document.body.className = 'frames';
31
+ </script>
68
32
 
69
- <li><a href="#method-c-path-3D">::path=</a>
70
-
71
- </ul>
72
- </nav>
73
-
74
- </div>
75
-
76
- <div id="project-metadata">
77
- <nav id="fileindex-section" class="section project-section">
78
- <h3 class="section-header">Pages</h3>
79
-
80
- <ul>
33
+ <div id="header">
34
+ <div id="menu">
81
35
 
82
- <li class="file"><a href="../Gemfile.html">Gemfile</a>
36
+ <a href="../_index.html">Index (L)</a> &raquo;
37
+ <span class='title'><span class='object_link'><a href="../Safubot.html" title="Safubot (module)">Safubot</a></span></span>
38
+ &raquo;
39
+ <span class="title">Log</span>
83
40
 
84
- <li class="file"><a href="../Rakefile.html">Rakefile</a>
85
41
 
86
- </ul>
87
- </nav>
88
-
89
- <nav id="classindex-section" class="section project-section">
90
- <h3 class="section-header">Class and Module Index</h3>
42
+ <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
43
+ </div>
91
44
 
92
- <ul class="link-list">
45
+ <div id="search">
46
+
47
+ <a id="class_list_link" href="#">Class List</a>
48
+
49
+ <a id="method_list_link" href="#">Method List</a>
93
50
 
94
- <li><a href="../Safubot.html">Safubot</a>
51
+ <a id="file_list_link" href="#">File List</a>
95
52
 
96
- <li><a href="../Safubot/Bot.html">Safubot::Bot</a>
53
+ </div>
54
+ <div class="clear"></div>
55
+ </div>
56
+
57
+ <iframe id="search_frame"></iframe>
58
+
59
+ <div id="content"><h1>Module: Safubot::Log
60
+
61
+
62
+
63
+ </h1>
64
+
65
+ <dl class="box">
97
66
 
98
- <li><a href="../Safubot/Evented.html">Safubot::Evented</a>
99
67
 
100
- <li><a href="../Safubot/KnownUser.html">Safubot::KnownUser</a>
68
+
101
69
 
102
- <li><a href="../Safubot/Log.html">Safubot::Log</a>
70
+
103
71
 
104
- <li><a href="../Safubot/Query.html">Safubot::Query</a>
105
72
 
106
- <li><a href="../Safubot/Request.html">Safubot::Request</a>
107
73
 
108
- <li><a href="../Safubot/Response.html">Safubot::Response</a>
74
+ <dt class="r1 last">Defined in:</dt>
75
+ <dd class="r1 last">lib/safubot/log.rb</dd>
109
76
 
110
- <li><a href="../Safubot/Test.html">Safubot::Test</a>
77
+ </dl>
78
+ <div class="clear"></div>
79
+
80
+
81
+
82
+ <h2>Class Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
83
+ <ul class="summary">
84
+
85
+ <li class="public ">
86
+ <span class="summary_signature">
87
+
88
+ <a href="#path-class_method" title="path (class method)">+ (Object) <strong>path</strong> </a>
89
+
90
+
91
+
92
+ </span>
111
93
 
112
- <li><a href="../Safubot/Twitter.html">Safubot::Twitter</a>
113
94
 
114
- <li><a href="../Safubot/Twitter/Bot.html">Safubot::Twitter::Bot</a>
95
+
96
+
115
97
 
116
- <li><a href="../Safubot/Twitter/DirectMessage.html">Safubot::Twitter::DirectMessage</a>
117
98
 
118
- <li><a href="../Safubot/Twitter/Tweet.html">Safubot::Twitter::Tweet</a>
119
99
 
120
- <li><a href="../Safubot/XMPP.html">Safubot::XMPP</a>
121
100
 
122
- <li><a href="../Safubot/XMPP/Bot.html">Safubot::XMPP::Bot</a>
123
101
 
124
- <li><a href="../Safubot/XMPP/Message.html">Safubot::XMPP::Message</a>
102
+
125
103
 
126
- <li><a href="../Object.html">Object</a>
104
+ <span class="summary_desc"><div class='inline'><p>
105
+ Returns the value of attribute path.
106
+ </p>
107
+ </div></span>
127
108
 
109
+ </li>
110
+
111
+
128
112
  </ul>
129
- </nav>
130
113
 
131
- </div>
132
- </nav>
133
114
 
134
- <div id="documentation">
135
- <h1 class="module">module Safubot::Log</h1>
136
115
 
137
- <div id="description" class="description">
138
-
139
- </div><!-- description -->
140
116
 
141
117
 
142
-
143
-
144
- <section id="5Buntitled-5D" class="documentation-section">
145
-
118
+ <h2>
119
+ Class Method Summary
120
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
121
+ </h2>
146
122
 
123
+ <ul class="summary">
124
+
125
+ <li class="public ">
126
+ <span class="summary_signature">
147
127
 
148
-
128
+ <a href="#method_missing-class_method" title="method_missing (class method)">+ (Object) <strong>method_missing</strong>(method, *args) </a>
149
129
 
150
130
 
151
131
 
152
- <!-- Attributes -->
153
- <section id="attribute-method-details" class="method-section section">
154
- <h3 class="section-header">Attributes</h3>
132
+ </span>
133
+
134
+
135
+
136
+
137
+
138
+
139
+
140
+
141
+ <span class="summary_desc"><div class='inline'></div></span>
142
+
143
+ </li>
155
144
 
156
145
 
157
- <div id="attribute-c-path" class="method-detail">
158
- <div class="method-heading attribute-method-heading">
159
- <span class="method-name">path</span><span
160
- class="attribute-access-type">[R]</span>
161
- </div>
162
-
163
- <div class="method-description">
164
-
165
-
166
-
167
- </div>
168
- </div>
169
-
170
- </section><!-- attribute-method-details -->
171
-
146
+ </ul>
147
+
172
148
 
173
- <!-- Methods -->
174
-
175
- <section id="public-class-5Buntitled-5D-method-details" class="method-section section">
176
- <h3 class="section-header">Public Class Methods</h3>
177
149
 
150
+ <div id="class_attr_details" class="attr_details">
151
+ <h2>Class Attribute Details</h2>
178
152
 
179
- <div id="method-c-method_missing" class="method-detail ">
180
-
181
- <div class="method-heading">
182
- <span class="method-name">method_missing</span><span
183
- class="method-args">(method, *args)</span>
184
- <span class="method-click-advice">click to toggle source</span>
185
- </div>
186
-
187
-
188
- <div class="method-description">
189
-
190
-
191
-
153
+
154
+ <span id="path=-class_method"></span>
155
+ <span id="path-class_method"></span>
156
+ <div class="method_details first">
157
+ <p class="signature first" id="path-class_method">
158
+
159
+ + (<tt>Object</tt>) <strong>path</strong>
160
+
192
161
 
193
-
194
- <div class="method-source-code" id="method_missing-source">
195
- <pre><span class="ruby-comment"># File lib/safubot/log.rb, line 12</span>
196
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">method_missing</span>(<span class="ruby-identifier">method</span>, *<span class="ruby-identifier">args</span>)
197
- <span class="ruby-ivar">@stdlog</span> <span class="ruby-operator">||=</span> <span class="ruby-constant">Logger</span>.<span class="ruby-identifier">new</span>(<span class="ruby-constant">STDOUT</span>)
198
- <span class="ruby-ivar">@stdlog</span>.<span class="ruby-identifier">send</span>(<span class="ruby-identifier">method</span>, *<span class="ruby-identifier">args</span>)
199
- <span class="ruby-ivar">@filelog</span>.<span class="ruby-identifier">send</span>(<span class="ruby-identifier">method</span>, *<span class="ruby-identifier">args</span>) <span class="ruby-keyword">if</span> <span class="ruby-ivar">@filelog</span>
200
- <span class="ruby-keyword">end</span></pre>
201
- </div><!-- method_missing-source -->
202
-
203
- </div>
162
+
163
+ </p><div class="docstring">
164
+ <div class="discussion">
165
+ <p>
166
+ Returns the value of attribute path
167
+ </p>
204
168
 
205
-
206
169
 
207
-
208
- </div><!-- method_missing-method -->
170
+ </div>
171
+ </div>
172
+ <div class="tags">
173
+
209
174
 
210
-
211
- <div id="method-c-path-3D" class="method-detail ">
212
-
213
- <div class="method-heading">
214
- <span class="method-name">path=</span><span
215
- class="method-args">(str)</span>
216
- <span class="method-click-advice">click to toggle source</span>
217
- </div>
218
-
175
+ </div><table class="source_code">
176
+ <tr>
177
+ <td>
178
+ <pre class="lines">
219
179
 
220
- <div class="method-description">
221
-
222
- <p>Commence logging to the specified file path.</p>
223
-
224
180
 
225
-
226
- <div class="method-source-code" id="path-3D-source">
227
- <pre><span class="ruby-comment"># File lib/safubot/log.rb, line 7</span>
228
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">path=</span>(<span class="ruby-identifier">str</span>)
229
- <span class="ruby-ivar">@path</span> = <span class="ruby-identifier">str</span>
230
- <span class="ruby-ivar">@filelog</span> = <span class="ruby-constant">Logger</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">str</span>)
231
- <span class="ruby-keyword">end</span></pre>
232
- </div><!-- path-3D-source -->
233
-
234
- </div>
181
+ 6
182
+ 7
183
+ 8</pre>
184
+ </td>
185
+ <td>
186
+ <pre class="code"><span class="info file"># File 'lib/safubot/log.rb', line 6</span>
235
187
 
236
-
188
+ <span class='kw'>def</span> <span class='id path'>path</span>
189
+ <span class='ivar'>@path</span>
190
+ <span class='kw'>end</span></pre>
191
+ </td>
192
+ </tr>
193
+ </table>
194
+ </div>
195
+
196
+ </div>
237
197
 
238
-
239
- </div><!-- path-3D-method -->
240
198
 
199
+ <div id="class_method_details" class="method_details_list">
200
+ <h2>Class Method Details</h2>
201
+
241
202
 
242
- </section><!-- public-class-method-details -->
203
+ <div class="method_details first">
204
+ <p class="signature first" id="method_missing-class_method">
205
+
206
+ + (<tt>Object</tt>) <strong>method_missing</strong>(method, *args)
207
+
208
+
243
209
 
244
- </section><!-- 5Buntitled-5D -->
210
+ </p><table class="source_code">
211
+ <tr>
212
+ <td>
213
+ <pre class="lines">
245
214
 
246
- </div><!-- documentation -->
247
215
 
216
+ 14
217
+ 15
218
+ 16
219
+ 17
220
+ 18</pre>
221
+ </td>
222
+ <td>
223
+ <pre class="code"><span class="info file"># File 'lib/safubot/log.rb', line 14</span>
248
224
 
249
- <footer id="validator-badges">
250
- <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
251
- <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.11.
252
- <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
253
- </footer>
225
+ <span class='kw'>def</span> <span class='id method_missing'>method_missing</span><span class='lparen'>(</span><span class='id method'>method</span><span class='comma'>,</span> <span class='op'>*</span><span class='id args'>args</span><span class='rparen'>)</span>
226
+ <span class='ivar'>@stdlog</span> <span class='op'>||=</span> <span class='const'>Logger</span><span class='period'>.</span><span class='id new'>new</span><span class='lparen'>(</span><span class='const'>STDOUT</span><span class='rparen'>)</span>
227
+ <span class='ivar'>@stdlog</span><span class='period'>.</span><span class='id send'>send</span><span class='lparen'>(</span><span class='id method'>method</span><span class='comma'>,</span> <span class='op'>*</span><span class='id args'>args</span><span class='rparen'>)</span>
228
+ <span class='ivar'>@filelog</span><span class='period'>.</span><span class='id send'>send</span><span class='lparen'>(</span><span class='id method'>method</span><span class='comma'>,</span> <span class='op'>*</span><span class='id args'>args</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='ivar'>@filelog</span>
229
+ <span class='kw'>end</span></pre>
230
+ </td>
231
+ </tr>
232
+ </table>
233
+ </div>
234
+
235
+ </div>
236
+
237
+ </div>
238
+
239
+ <div id="footer">
240
+ Generated on Mon Nov 28 20:20:03 2011 by
241
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
242
+ 0.7.3 (ruby-1.9.2).
243
+ </div>
254
244
 
245
+ </body>
246
+ </html>