safubot 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.yardoc/checksums +9 -0
- data/.yardoc/objects/root.dat +0 -0
- data/.yardoc/proxy_types +0 -0
- data/README.md +52 -1
- data/doc/Safubot/Bot.html +1287 -652
- data/doc/Safubot/Evented.html +409 -276
- data/doc/Safubot/KnownUser.html +476 -254
- data/doc/Safubot/Log.html +184 -192
- data/doc/Safubot/Query.html +131 -164
- data/doc/Safubot/Request.html +158 -147
- data/doc/Safubot/Response.html +92 -135
- data/doc/Safubot/Test.html +166 -187
- data/doc/Safubot/Twitter/Bot.html +1005 -455
- data/doc/Safubot/Twitter/DirectMessage.html +417 -238
- data/doc/Safubot/Twitter/Tweet.html +725 -398
- data/doc/Safubot/Twitter.html +69 -116
- data/doc/Safubot/XMPP/Bot.html +625 -303
- data/doc/Safubot/XMPP/Message.html +372 -217
- data/doc/Safubot/XMPP.html +69 -116
- data/doc/Safubot.html +155 -126
- data/doc/_index.html +294 -0
- data/doc/class_list.html +47 -0
- data/doc/css/common.css +1 -0
- data/doc/css/full_list.css +55 -0
- data/doc/css/style.css +322 -0
- data/doc/file.README.html +140 -0
- data/doc/file_list.html +49 -0
- data/doc/frames.html +13 -0
- data/doc/index.html +129 -101
- data/doc/js/app.js +205 -0
- data/doc/js/full_list.js +167 -0
- data/doc/js/jquery.js +3 -5
- data/doc/method_list.html +638 -0
- data/doc/top-level-namespace.html +103 -0
- data/lib/safubot/bot.rb +22 -20
- data/lib/safubot/known_user.rb +2 -0
- data/lib/safubot/twitter.rb +30 -26
- data/lib/safubot/version.rb +1 -1
- data/lib/safubot/xmpp.rb +20 -14
- data/safubot.gemspec +1 -0
- metadata +50 -71
- data/doc/Gemfile.html +0 -119
- data/doc/Object.html +0 -171
- data/doc/Rakefile.html +0 -117
- data/doc/created.rid +0 -14
- data/doc/foo_rb.html +0 -115
- data/doc/images/add.png +0 -0
- data/doc/images/brick.png +0 -0
- data/doc/images/brick_link.png +0 -0
- data/doc/images/bug.png +0 -0
- data/doc/images/bullet_black.png +0 -0
- data/doc/images/bullet_toggle_minus.png +0 -0
- data/doc/images/bullet_toggle_plus.png +0 -0
- data/doc/images/date.png +0 -0
- data/doc/images/delete.png +0 -0
- data/doc/images/find.png +0 -0
- data/doc/images/loadingAnimation.gif +0 -0
- data/doc/images/macFFBgHack.png +0 -0
- data/doc/images/package.png +0 -0
- data/doc/images/page_green.png +0 -0
- data/doc/images/page_white_text.png +0 -0
- data/doc/images/page_white_width.png +0 -0
- data/doc/images/plugin.png +0 -0
- data/doc/images/ruby.png +0 -0
- data/doc/images/tag_blue.png +0 -0
- data/doc/images/tag_green.png +0 -0
- data/doc/images/transparent.png +0 -0
- data/doc/images/wrench.png +0 -0
- data/doc/images/wrench_orange.png +0 -0
- data/doc/images/zoom.png +0 -0
- data/doc/js/darkfish.js +0 -153
- data/doc/js/navigation.js +0 -142
- data/doc/js/search.js +0 -94
- data/doc/js/search_index.js +0 -1
- data/doc/js/searcher.js +0 -228
- data/doc/lib/safubot/bot_rb.html +0 -115
- data/doc/lib/safubot/evented_rb.html +0 -115
- data/doc/lib/safubot/known_user_rb.html +0 -115
- data/doc/lib/safubot/log_rb.html +0 -115
- data/doc/lib/safubot/safubot_rb.html +0 -115
- data/doc/lib/safubot/spec/bot_spec_rb.html +0 -115
- data/doc/lib/safubot/spec/twitter_spec_rb.html +0 -137
- data/doc/lib/safubot/test_helper_rb.html +0 -115
- data/doc/lib/safubot/twitter_rb.html +0 -115
- data/doc/lib/safubot/version_rb.html +0 -115
- data/doc/lib/safubot/xmpp_rb.html +0 -115
- data/doc/lib/safubot_rb.html +0 -115
- data/doc/rdoc.css +0 -543
- 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=
|
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
|
+
— Documentation by YARD 0.7.3
|
10
|
+
|
11
|
+
</title>
|
6
12
|
|
7
|
-
<
|
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"
|
15
|
+
<link rel="stylesheet" href="../css/common.css" type="text/css" media="screen" charset="utf-8" />
|
10
16
|
|
11
|
-
<script type="text/javascript">
|
12
|
-
|
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
|
-
|
66
|
-
|
67
|
-
<
|
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
|
-
<
|
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
|
-
<
|
36
|
+
<a href="../_index.html">Index (L)</a> »
|
37
|
+
<span class='title'><span class='object_link'><a href="../Safubot.html" title="Safubot (module)">Safubot</a></span></span>
|
38
|
+
»
|
39
|
+
<span class="title">Log</span>
|
83
40
|
|
84
|
-
<li class="file"><a href="../Rakefile.html">Rakefile</a>
|
85
41
|
|
86
|
-
</
|
87
|
-
</
|
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
|
-
|
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
|
-
<
|
51
|
+
<a id="file_list_link" href="#">File List</a>
|
95
52
|
|
96
|
-
|
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
|
-
|
68
|
+
|
101
69
|
|
102
|
-
|
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
|
-
<
|
74
|
+
<dt class="r1 last">Defined in:</dt>
|
75
|
+
<dd class="r1 last">lib/safubot/log.rb</dd>
|
109
76
|
|
110
|
-
|
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
|
-
|
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
|
-
|
102
|
+
|
125
103
|
|
126
|
-
<
|
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
|
-
|
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
|
-
|
153
|
-
|
154
|
-
|
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
|
-
|
158
|
-
|
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
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
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
|
-
|
195
|
-
|
196
|
-
<
|
197
|
-
|
198
|
-
|
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
|
-
|
170
|
+
</div>
|
171
|
+
</div>
|
172
|
+
<div class="tags">
|
173
|
+
|
209
174
|
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
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
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
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
|
-
|
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
|
-
|
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
|
-
<
|
250
|
-
<
|
251
|
-
<
|
252
|
-
<
|
253
|
-
</
|
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>
|