safubot 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -469,7 +469,7 @@ Unbinds the given handler.
469
469
  </div>
470
470
 
471
471
  <div id="footer">
472
- Generated on Tue Nov 29 11:44:04 2011 by
472
+ Generated on Thu Dec 1 18:19:17 2011 by
473
473
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
474
474
  0.7.3 (ruby-1.9.2).
475
475
  </div>
@@ -557,7 +557,7 @@ Plucky query with Tweets scoped to this user&#8217;s twitter id.
557
557
  </div>
558
558
 
559
559
  <div id="footer">
560
- Generated on Tue Nov 29 11:44:04 2011 by
560
+ Generated on Thu Dec 1 18:19:17 2011 by
561
561
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
562
562
  0.7.3 (ruby-1.9.2).
563
563
  </div>
data/doc/Safubot/Log.html CHANGED
@@ -264,7 +264,7 @@ Dispatch method calls to Logger objects.
264
264
  </div>
265
265
 
266
266
  <div id="footer">
267
- Generated on Tue Nov 29 11:44:04 2011 by
267
+ Generated on Thu Dec 1 18:19:17 2011 by
268
268
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
269
269
  0.7.3 (ruby-1.9.2).
270
270
  </div>
@@ -0,0 +1,130 @@
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
+ Class: Safubot::Problem
8
+
9
+ &mdash; Documentation by YARD 0.7.3
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" charset="utf-8" />
14
+
15
+ <link rel="stylesheet" href="../css/common.css" type="text/css" media="screen" charset="utf-8" />
16
+
17
+ <script type="text/javascript" charset="utf-8">
18
+ relpath = '..';
19
+ if (relpath != '') relpath += '/';
20
+ </script>
21
+
22
+ <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
23
+
24
+ <script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
25
+
26
+
27
+ </head>
28
+ <body>
29
+ <script type="text/javascript" charset="utf-8">
30
+ if (window.top.frames.main) document.body.className = 'frames';
31
+ </script>
32
+
33
+ <div id="header">
34
+ <div id="menu">
35
+
36
+ <a href="../_index.html">Index (P)</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">Problem</span>
40
+
41
+
42
+ <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
43
+ </div>
44
+
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>
50
+
51
+ <a id="file_list_link" href="#">File List</a>
52
+
53
+ </div>
54
+ <div class="clear"></div>
55
+ </div>
56
+
57
+ <iframe id="search_frame"></iframe>
58
+
59
+ <div id="content"><h1>Class: Safubot::Problem
60
+
61
+
62
+
63
+ </h1>
64
+
65
+ <dl class="box">
66
+
67
+ <dt class="r1">Inherits:</dt>
68
+ <dd class="r1">
69
+ <span class="inheritName">Object</span>
70
+
71
+ <ul class="fullTree">
72
+ <li>Object</li>
73
+
74
+ <li class="next">Safubot::Problem</li>
75
+
76
+ </ul>
77
+ <a href="#" class="inheritanceTree">show all</a>
78
+
79
+ </dd>
80
+
81
+
82
+
83
+
84
+
85
+
86
+ <dt class="r2">Includes:</dt>
87
+ <dd class="r2">MongoMapper::EmbeddedDocument</dd>
88
+
89
+
90
+
91
+
92
+
93
+ <dt class="r1 last">Defined in:</dt>
94
+ <dd class="r1 last">lib/safubot/bot.rb</dd>
95
+
96
+ </dl>
97
+ <div class="clear"></div>
98
+
99
+ <h2>Overview</h2><div class="docstring">
100
+ <div class="discussion">
101
+ <p>
102
+ An EmbeddedDocument for storing processing/dispatch errors.
103
+ </p>
104
+
105
+
106
+ </div>
107
+ </div>
108
+ <div class="tags">
109
+
110
+
111
+ </div>
112
+
113
+
114
+
115
+
116
+
117
+
118
+
119
+
120
+
121
+ </div>
122
+
123
+ <div id="footer">
124
+ Generated on Thu Dec 1 18:19:17 2011 by
125
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
126
+ 0.7.3 (ruby-1.9.2).
127
+ </div>
128
+
129
+ </body>
130
+ </html>
@@ -0,0 +1,282 @@
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::Problematic
8
+
9
+ &mdash; Documentation by YARD 0.7.3
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" charset="utf-8" />
14
+
15
+ <link rel="stylesheet" href="../css/common.css" type="text/css" media="screen" charset="utf-8" />
16
+
17
+ <script type="text/javascript" charset="utf-8">
18
+ relpath = '..';
19
+ if (relpath != '') relpath += '/';
20
+ </script>
21
+
22
+ <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
23
+
24
+ <script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
25
+
26
+
27
+ </head>
28
+ <body>
29
+ <script type="text/javascript" charset="utf-8">
30
+ if (window.top.frames.main) document.body.className = 'frames';
31
+ </script>
32
+
33
+ <div id="header">
34
+ <div id="menu">
35
+
36
+ <a href="../_index.html">Index (P)</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">Problematic</span>
40
+
41
+
42
+ <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
43
+ </div>
44
+
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>
50
+
51
+ <a id="file_list_link" href="#">File List</a>
52
+
53
+ </div>
54
+ <div class="clear"></div>
55
+ </div>
56
+
57
+ <iframe id="search_frame"></iframe>
58
+
59
+ <div id="content"><h1>Module: Safubot::Problematic
60
+
61
+
62
+
63
+ </h1>
64
+
65
+ <dl class="box">
66
+
67
+
68
+
69
+
70
+
71
+
72
+
73
+ <dt class="r1">Included in:</dt>
74
+ <dd class="r1"><span class='object_link'><a href="Request.html" title="Safubot::Request (class)">Request</a></span>, <span class='object_link'><a href="Response.html" title="Safubot::Response (class)">Response</a></span></dd>
75
+
76
+
77
+
78
+ <dt class="r2 last">Defined in:</dt>
79
+ <dd class="r2 last">lib/safubot/bot.rb</dd>
80
+
81
+ </dl>
82
+ <div class="clear"></div>
83
+
84
+ <h2>Overview</h2><div class="docstring">
85
+ <div class="discussion">
86
+ <p>
87
+ A mixin adding Problem handling.
88
+ </p>
89
+
90
+
91
+ </div>
92
+ </div>
93
+ <div class="tags">
94
+
95
+
96
+ </div>
97
+
98
+
99
+
100
+
101
+
102
+ <h2>
103
+ Instance Method Summary
104
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
105
+ </h2>
106
+
107
+ <ul class="summary">
108
+
109
+ <li class="public ">
110
+ <span class="summary_signature">
111
+
112
+ <a href="#add_problem-instance_method" title="#add_problem (instance method)">- (Object) <strong>add_problem</strong>(e) </a>
113
+
114
+
115
+
116
+ </span>
117
+
118
+
119
+
120
+
121
+
122
+
123
+
124
+
125
+ <span class="summary_desc"><div class='inline'><p>
126
+ Adds a timestamped Problem to the list.
127
+ </p>
128
+ </div></span>
129
+
130
+ </li>
131
+
132
+
133
+ <li class="public ">
134
+ <span class="summary_signature">
135
+
136
+ <a href="#last_problem-instance_method" title="#last_problem (instance method)">- (Object) <strong>last_problem</strong> </a>
137
+
138
+
139
+
140
+ </span>
141
+
142
+
143
+
144
+
145
+
146
+
147
+
148
+
149
+ <span class="summary_desc"><div class='inline'><p>
150
+ Fetches the most recent Problem.
151
+ </p>
152
+ </div></span>
153
+
154
+ </li>
155
+
156
+
157
+ </ul>
158
+
159
+
160
+
161
+
162
+ <div id="instance_method_details" class="method_details_list">
163
+ <h2>Instance Method Details</h2>
164
+
165
+
166
+ <div class="method_details first">
167
+ <p class="signature first" id="add_problem-instance_method">
168
+
169
+ - (<tt>Object</tt>) <strong>add_problem</strong>(e)
170
+
171
+
172
+
173
+ </p><div class="docstring">
174
+ <div class="discussion">
175
+ <p>
176
+ Adds a timestamped Problem to the list.
177
+ </p>
178
+
179
+
180
+ </div>
181
+ </div>
182
+ <div class="tags">
183
+ <h3>Parameters:</h3>
184
+ <ul class="param">
185
+
186
+ <li>
187
+
188
+ <span class='name'>e</span>
189
+
190
+
191
+ <span class='type'></span>
192
+
193
+
194
+
195
+ &mdash;
196
+ <div class='inline'><p>
197
+ Exception from which the Problem is derived.
198
+ </p>
199
+ </div>
200
+
201
+ </li>
202
+
203
+ </ul>
204
+
205
+
206
+ </div><table class="source_code">
207
+ <tr>
208
+ <td>
209
+ <pre class="lines">
210
+
211
+
212
+ 27
213
+ 28
214
+ 29
215
+ 30
216
+ 31</pre>
217
+ </td>
218
+ <td>
219
+ <pre class="code"><span class="info file"># File 'lib/safubot/bot.rb', line 27</span>
220
+
221
+ <span class='kw'>def</span> <span class='id add_problem'>add_problem</span><span class='lparen'>(</span><span class='id e'>e</span><span class='rparen'>)</span>
222
+ <span class='id problem'>problem</span> <span class='op'>=</span> <span class='const'>Problem</span><span class='period'>.</span><span class='id new'>new</span><span class='lparen'>(</span><span class='symbol'>:error</span> <span class='op'>=&gt;</span> <span class='id e'>e</span><span class='period'>.</span><span class='id to_s'>to_s</span><span class='comma'>,</span> <span class='symbol'>:type</span> <span class='op'>=&gt;</span> <span class='id e'>e</span><span class='period'>.</span><span class='id class'>class</span><span class='period'>.</span><span class='id to_s'>to_s</span><span class='comma'>,</span>
223
+ <span class='symbol'>:when</span> <span class='op'>=&gt;</span> <span class='const'>Time</span><span class='period'>.</span><span class='id now'>now</span><span class='comma'>,</span> <span class='symbol'>:backtrace</span> <span class='op'>=&gt;</span> <span class='id e'>e</span><span class='period'>.</span><span class='id backtrace'>backtrace</span><span class='rparen'>)</span>
224
+ <span class='kw'>self</span><span class='period'>.</span><span class='id problems'>problems</span><span class='period'>.</span><span class='id push'>push</span><span class='lparen'>(</span><span class='id problem'>problem</span><span class='rparen'>)</span>
225
+ <span class='kw'>end</span></pre>
226
+ </td>
227
+ </tr>
228
+ </table>
229
+ </div>
230
+
231
+ <div class="method_details ">
232
+ <p class="signature " id="last_problem-instance_method">
233
+
234
+ - (<tt>Object</tt>) <strong>last_problem</strong>
235
+
236
+
237
+
238
+ </p><div class="docstring">
239
+ <div class="discussion">
240
+ <p>
241
+ Fetches the most recent Problem.
242
+ </p>
243
+
244
+
245
+ </div>
246
+ </div>
247
+ <div class="tags">
248
+
249
+
250
+ </div><table class="source_code">
251
+ <tr>
252
+ <td>
253
+ <pre class="lines">
254
+
255
+
256
+ 35
257
+ 36
258
+ 37</pre>
259
+ </td>
260
+ <td>
261
+ <pre class="code"><span class="info file"># File 'lib/safubot/bot.rb', line 35</span>
262
+
263
+ <span class='kw'>def</span> <span class='id last_problem'>last_problem</span>
264
+ <span class='kw'>self</span><span class='period'>.</span><span class='id problems'>problems</span><span class='period'>.</span><span class='id sort'>sort</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id x'>x</span><span class='comma'>,</span><span class='id y'>y</span><span class='op'>|</span> <span class='id x'>x</span><span class='period'>.</span><span class='id when'>when</span> <span class='op'>&lt;=&gt;</span> <span class='id y'>y</span><span class='period'>.</span><span class='id when'>when</span> <span class='rbrace'>}</span><span class='period'>.</span><span class='id last'>last</span>
265
+ <span class='kw'>end</span></pre>
266
+ </td>
267
+ </tr>
268
+ </table>
269
+ </div>
270
+
271
+ </div>
272
+
273
+ </div>
274
+
275
+ <div id="footer">
276
+ Generated on Thu Dec 1 18:19:17 2011 by
277
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
278
+ 0.7.3 (ruby-1.9.2).
279
+ </div>
280
+
281
+ </body>
282
+ </html>
@@ -144,6 +144,27 @@ Find or create a Request sourced from this Query.
144
144
  </p>
145
145
  </div></span>
146
146
 
147
+ </li>
148
+
149
+
150
+ <li class="public ">
151
+ <span class="summary_signature">
152
+
153
+ <a href="#username-instance_method" title="#username (instance method)">- (Object) <strong>username</strong> </a>
154
+
155
+
156
+
157
+ </span>
158
+
159
+
160
+
161
+
162
+
163
+
164
+
165
+
166
+ <span class="summary_desc"><div class='inline'></div></span>
167
+
147
168
  </li>
148
169
 
149
170
 
@@ -195,6 +216,34 @@ Find or create a Request sourced from this Query.
195
216
  </td>
196
217
  </tr>
197
218
  </table>
219
+ </div>
220
+
221
+ <div class="method_details ">
222
+ <p class="signature " id="username-instance_method">
223
+
224
+ - (<tt>Object</tt>) <strong>username</strong>
225
+
226
+
227
+
228
+ </p><table class="source_code">
229
+ <tr>
230
+ <td>
231
+ <pre class="lines">
232
+
233
+
234
+ 56
235
+ 57
236
+ 58</pre>
237
+ </td>
238
+ <td>
239
+ <pre class="code"><span class="info file"># File 'lib/safubot/test_helper.rb', line 56</span>
240
+
241
+ <span class='kw'>def</span> <span class='id username'>username</span>
242
+ <span class='kw'>self</span><span class='period'>.</span><span class='id user'>user</span><span class='period'>.</span><span class='id name'>name</span>
243
+ <span class='kw'>end</span></pre>
244
+ </td>
245
+ </tr>
246
+ </table>
198
247
  </div>
199
248
 
200
249
  </div>
@@ -202,7 +251,7 @@ Find or create a Request sourced from this Query.
202
251
  </div>
203
252
 
204
253
  <div id="footer">
205
- Generated on Tue Nov 29 11:44:04 2011 by
254
+ Generated on Thu Dec 1 18:19:17 2011 by
206
255
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
207
256
  0.7.3 (ruby-1.9.2).
208
257
  </div>
@@ -84,7 +84,7 @@
84
84
 
85
85
 
86
86
  <dt class="r2">Includes:</dt>
87
- <dd class="r2">MongoMapper::Document</dd>
87
+ <dd class="r2">MongoMapper::Document, <span class='object_link'><a href="Problematic.html" title="Safubot::Problematic (module)">Problematic</a></span></dd>
88
88
 
89
89
 
90
90
 
@@ -114,17 +114,34 @@ be extended by service-specific modules.
114
114
  </div>
115
115
 
116
116
 
117
+
118
+
119
+
120
+
117
121
 
118
122
 
119
123
 
124
+
125
+
126
+
120
127
 
121
128
 
122
129
 
130
+
131
+
132
+
133
+
134
+ <h2>Method Summary</h2>
135
+
136
+ <h3 class="inherited">Methods included from <span class='object_link'><a href="Problematic.html" title="Safubot::Problematic (module)">Problematic</a></span></h3>
137
+ <p class="inherited"><span class='object_link'><a href="Problematic.html#add_problem-instance_method" title="Safubot::Problematic#add_problem (method)">#add_problem</a></span>, <span class='object_link'><a href="Problematic.html#last_problem-instance_method" title="Safubot::Problematic#last_problem (method)">#last_problem</a></span></p>
138
+
139
+
123
140
 
124
141
  </div>
125
142
 
126
143
  <div id="footer">
127
- Generated on Tue Nov 29 11:44:04 2011 by
144
+ Generated on Thu Dec 1 18:19:17 2011 by
128
145
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
129
146
  0.7.3 (ruby-1.9.2).
130
147
  </div>
@@ -84,7 +84,7 @@
84
84
 
85
85
 
86
86
  <dt class="r2">Includes:</dt>
87
- <dd class="r2">MongoMapper::Document</dd>
87
+ <dd class="r2">MongoMapper::Document, <span class='object_link'><a href="Problematic.html" title="Safubot::Problematic (module)">Problematic</a></span></dd>
88
88
 
89
89
 
90
90
 
@@ -112,17 +112,34 @@ be extended by service-specific modules.
112
112
  </div>
113
113
 
114
114
 
115
+
116
+
117
+
118
+
115
119
 
116
120
 
117
121
 
122
+
123
+
124
+
118
125
 
119
126
 
120
127
 
128
+
129
+
130
+
131
+
132
+ <h2>Method Summary</h2>
133
+
134
+ <h3 class="inherited">Methods included from <span class='object_link'><a href="Problematic.html" title="Safubot::Problematic (module)">Problematic</a></span></h3>
135
+ <p class="inherited"><span class='object_link'><a href="Problematic.html#add_problem-instance_method" title="Safubot::Problematic#add_problem (method)">#add_problem</a></span>, <span class='object_link'><a href="Problematic.html#last_problem-instance_method" title="Safubot::Problematic#last_problem (method)">#last_problem</a></span></p>
136
+
137
+
121
138
 
122
139
  </div>
123
140
 
124
141
  <div id="footer">
125
- Generated on Tue Nov 29 11:44:04 2011 by
142
+ Generated on Thu Dec 1 18:19:17 2011 by
126
143
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
127
144
  0.7.3 (ruby-1.9.2).
128
145
  </div>
@@ -277,7 +277,7 @@ The body of the Request.
277
277
  </div>
278
278
 
279
279
  <div id="footer">
280
- Generated on Tue Nov 29 11:44:04 2011 by
280
+ Generated on Thu Dec 1 18:19:17 2011 by
281
281
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
282
282
  0.7.3 (ruby-1.9.2).
283
283
  </div>