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/Query.html
CHANGED
@@ -1,217 +1,184 @@
|
|
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
|
+
Class: Safubot::Query
|
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
|
-
|
17
|
-
<script type="text/javascript" charset="utf-8" src="../js/
|
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="class">
|
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/test_helper.rb
|
51
|
-
</ul>
|
52
|
-
</nav>
|
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>
|
53
25
|
|
54
|
-
|
55
|
-
</div>
|
56
26
|
|
57
|
-
|
27
|
+
</head>
|
28
|
+
<body>
|
29
|
+
<script type="text/javascript" charset="utf-8">
|
30
|
+
if (window.top.frames.main) document.body.className = 'frames';
|
31
|
+
</script>
|
58
32
|
|
59
|
-
<
|
60
|
-
|
33
|
+
<div id="header">
|
34
|
+
<div id="menu">
|
61
35
|
|
62
|
-
|
36
|
+
<a href="../_index.html">Index (Q)</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">Query</span>
|
63
40
|
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
<nav id="includes-section" class="section">
|
68
|
-
<h3 class="section-header">Included Modules</h3>
|
41
|
+
|
42
|
+
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
43
|
+
</div>
|
69
44
|
|
70
|
-
|
45
|
+
<div id="search">
|
71
46
|
|
47
|
+
<a id="class_list_link" href="#">Class List</a>
|
72
48
|
|
73
|
-
<
|
49
|
+
<a id="method_list_link" href="#">Method List</a>
|
74
50
|
|
51
|
+
<a id="file_list_link" href="#">File List</a>
|
75
52
|
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
<!-- Method Quickref -->
|
80
|
-
<nav id="method-list-section" class="section">
|
81
|
-
<h3 class="section-header">Methods</h3>
|
82
|
-
|
83
|
-
<ul class="link-list">
|
53
|
+
</div>
|
54
|
+
<div class="clear"></div>
|
55
|
+
</div>
|
84
56
|
|
85
|
-
<
|
57
|
+
<iframe id="search_frame"></iframe>
|
86
58
|
|
87
|
-
|
88
|
-
</nav>
|
89
|
-
|
90
|
-
</div>
|
91
|
-
|
92
|
-
<div id="project-metadata">
|
93
|
-
<nav id="fileindex-section" class="section project-section">
|
94
|
-
<h3 class="section-header">Pages</h3>
|
95
|
-
|
96
|
-
<ul>
|
59
|
+
<div id="content"><h1>Class: Safubot::Query
|
97
60
|
|
98
|
-
<li class="file"><a href="../Gemfile.html">Gemfile</a>
|
99
61
|
|
100
|
-
<li class="file"><a href="../Rakefile.html">Rakefile</a>
|
101
62
|
|
102
|
-
|
103
|
-
</nav>
|
104
|
-
|
105
|
-
<nav id="classindex-section" class="section project-section">
|
106
|
-
<h3 class="section-header">Class and Module Index</h3>
|
63
|
+
</h1>
|
107
64
|
|
108
|
-
|
65
|
+
<dl class="box">
|
109
66
|
|
110
|
-
<
|
111
|
-
|
112
|
-
|
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::Query</li>
|
75
|
+
|
76
|
+
</ul>
|
77
|
+
<a href="#" class="inheritanceTree">show all</a>
|
78
|
+
|
79
|
+
</dd>
|
80
|
+
|
113
81
|
|
114
|
-
<li><a href="../Safubot/Evented.html">Safubot::Evented</a>
|
115
82
|
|
116
|
-
|
83
|
+
|
117
84
|
|
118
|
-
|
85
|
+
|
86
|
+
<dt class="r2">Includes:</dt>
|
87
|
+
<dd class="r2">MongoMapper::Document</dd>
|
88
|
+
|
89
|
+
|
119
90
|
|
120
|
-
<li><a href="../Safubot/Query.html">Safubot::Query</a>
|
121
91
|
|
122
|
-
<li><a href="../Safubot/Request.html">Safubot::Request</a>
|
123
92
|
|
124
|
-
<
|
93
|
+
<dt class="r1 last">Defined in:</dt>
|
94
|
+
<dd class="r1 last">lib/safubot/test_helper.rb</dd>
|
125
95
|
|
126
|
-
|
96
|
+
</dl>
|
97
|
+
<div class="clear"></div>
|
98
|
+
|
99
|
+
|
100
|
+
|
127
101
|
|
128
|
-
|
102
|
+
|
103
|
+
|
129
104
|
|
130
|
-
|
105
|
+
|
131
106
|
|
132
|
-
<
|
107
|
+
<h2>
|
108
|
+
Instance Method Summary
|
109
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
110
|
+
</h2>
|
111
|
+
|
112
|
+
<ul class="summary">
|
113
|
+
|
114
|
+
<li class="public ">
|
115
|
+
<span class="summary_signature">
|
116
|
+
|
117
|
+
<a href="#make_request-instance_method" title="#make_request (instance method)">- (Object) <strong>make_request</strong> </a>
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
</span>
|
133
122
|
|
134
|
-
<li><a href="../Safubot/Twitter/Tweet.html">Safubot::Twitter::Tweet</a>
|
135
123
|
|
136
|
-
<li><a href="../Safubot/XMPP.html">Safubot::XMPP</a>
|
137
124
|
|
138
|
-
<li><a href="../Safubot/XMPP/Bot.html">Safubot::XMPP::Bot</a>
|
139
125
|
|
140
|
-
<li><a href="../Safubot/XMPP/Message.html">Safubot::XMPP::Message</a>
|
141
126
|
|
142
|
-
<li><a href="../Object.html">Object</a>
|
143
127
|
|
144
|
-
</ul>
|
145
|
-
</nav>
|
146
|
-
|
147
|
-
</div>
|
148
|
-
</nav>
|
149
|
-
|
150
|
-
<div id="documentation">
|
151
|
-
<h1 class="class">class Safubot::Query</h1>
|
152
|
-
|
153
|
-
<div id="description" class="description">
|
154
|
-
|
155
|
-
</div><!-- description -->
|
156
128
|
|
157
129
|
|
130
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
158
131
|
|
132
|
+
</li>
|
133
|
+
|
134
|
+
|
135
|
+
</ul>
|
159
136
|
|
160
|
-
<section id="5Buntitled-5D" class="documentation-section">
|
161
|
-
|
162
137
|
|
163
|
-
|
164
138
|
|
165
|
-
|
166
|
-
|
167
|
-
|
139
|
+
|
168
140
|
|
169
|
-
|
141
|
+
<div id="instance_method_details" class="method_details_list">
|
142
|
+
<h2>Instance Method Details</h2>
|
170
143
|
|
171
|
-
<section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
|
172
|
-
<h3 class="section-header">Public Instance Methods</h3>
|
173
|
-
|
174
144
|
|
175
|
-
<div
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
<span class="method-click-advice">click to toggle source</span>
|
181
|
-
</div>
|
182
|
-
|
183
|
-
|
184
|
-
<div class="method-description">
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
<div class="method-source-code" id="make_request-source">
|
191
|
-
<pre><span class="ruby-comment"># File lib/safubot/test_helper.rb, line 40</span>
|
192
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">make_request</span>
|
193
|
-
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">request</span> <span class="ruby-operator">||</span> <span class="ruby-constant">Request</span>.<span class="ruby-identifier">create</span>(<span class="ruby-value">:user</span> =<span class="ruby-operator">></span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">user</span>, <span class="ruby-value">:text</span> =<span class="ruby-operator">></span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">text</span>, <span class="ruby-value">:source</span> =<span class="ruby-operator">></span> <span class="ruby-keyword">self</span>)
|
194
|
-
<span class="ruby-keyword">end</span></pre>
|
195
|
-
</div><!-- make_request-source -->
|
196
|
-
|
197
|
-
</div>
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
</div><!-- make_request-method -->
|
145
|
+
<div class="method_details first">
|
146
|
+
<p class="signature first" id="make_request-instance_method">
|
147
|
+
|
148
|
+
- (<tt>Object</tt>) <strong>make_request</strong>
|
149
|
+
|
203
150
|
|
204
|
-
|
205
|
-
</section><!-- public-instance-method-details -->
|
206
151
|
|
207
|
-
|
152
|
+
</p><table class="source_code">
|
153
|
+
<tr>
|
154
|
+
<td>
|
155
|
+
<pre class="lines">
|
208
156
|
|
209
|
-
</div><!-- documentation -->
|
210
157
|
|
158
|
+
47
|
159
|
+
48
|
160
|
+
49</pre>
|
161
|
+
</td>
|
162
|
+
<td>
|
163
|
+
<pre class="code"><span class="info file"># File 'lib/safubot/test_helper.rb', line 47</span>
|
211
164
|
|
212
|
-
<
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
</
|
165
|
+
<span class='kw'>def</span> <span class='id make_request'>make_request</span>
|
166
|
+
<span class='kw'>self</span><span class='period'>.</span><span class='id request'>request</span> <span class='op'>||</span> <span class='const'>Request</span><span class='period'>.</span><span class='id create'>create</span><span class='lparen'>(</span><span class='symbol'>:user</span> <span class='op'>=></span> <span class='kw'>self</span><span class='period'>.</span><span class='id user'>user</span><span class='comma'>,</span> <span class='symbol'>:text</span> <span class='op'>=></span> <span class='kw'>self</span><span class='period'>.</span><span class='id text'>text</span><span class='comma'>,</span> <span class='symbol'>:source</span> <span class='op'>=></span> <span class='kw'>self</span><span class='rparen'>)</span>
|
167
|
+
<span class='kw'>end</span></pre>
|
168
|
+
</td>
|
169
|
+
</tr>
|
170
|
+
</table>
|
171
|
+
</div>
|
172
|
+
|
173
|
+
</div>
|
217
174
|
|
175
|
+
</div>
|
176
|
+
|
177
|
+
<div id="footer">
|
178
|
+
Generated on Mon Nov 28 20:20:04 2011 by
|
179
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
180
|
+
0.7.3 (ruby-1.9.2).
|
181
|
+
</div>
|
182
|
+
|
183
|
+
</body>
|
184
|
+
</html>
|