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
@@ -1,244 +1,223 @@
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::Test
8
+
9
+ &mdash; Documentation by YARD 0.7.3
10
+
11
+ </title>
6
12
 
7
- <title>Module: Safubot::Test</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
-
22
+ <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
45
23
 
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>
24
+ <script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
53
25
 
54
-
55
- </div>
56
26
 
57
- <div id="class-metadata">
58
-
27
+ </head>
28
+ <body>
29
+ <script type="text/javascript" charset="utf-8">
30
+ if (window.top.frames.main) document.body.className = 'frames';
31
+ </script>
59
32
 
60
-
61
- <!-- Method Quickref -->
62
- <nav id="method-list-section" class="section">
63
- <h3 class="section-header">Methods</h3>
64
-
65
- <ul class="link-list">
66
-
67
- <li><a href="#method-c-clean_environment">::clean_environment</a>
68
-
69
- <li><a href="#method-c-request">::request</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 (T)</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">Test</span>
83
40
 
84
- <li class="file"><a href="../Rakefile.html">Rakefile</a>
85
41
 
86
- </ul>
87
- </nav>
42
+ <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
43
+ </div>
88
44
 
89
- <nav id="classindex-section" class="section project-section">
90
- <h3 class="section-header">Class and Module Index</h3>
91
-
92
- <ul class="link-list">
93
-
94
- <li><a href="../Safubot.html">Safubot</a>
45
+ <div id="search">
95
46
 
96
- <li><a href="../Safubot/Bot.html">Safubot::Bot</a>
47
+ <a id="class_list_link" href="#">Class List</a>
97
48
 
98
- <li><a href="../Safubot/Evented.html">Safubot::Evented</a>
49
+ <a id="method_list_link" href="#">Method List</a>
99
50
 
100
- <li><a href="../Safubot/KnownUser.html">Safubot::KnownUser</a>
51
+ <a id="file_list_link" href="#">File List</a>
101
52
 
102
- <li><a href="../Safubot/Log.html">Safubot::Log</a>
103
-
104
- <li><a href="../Safubot/Query.html">Safubot::Query</a>
105
-
106
- <li><a href="../Safubot/Request.html">Safubot::Request</a>
107
-
108
- <li><a href="../Safubot/Response.html">Safubot::Response</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::Test
109
60
 
110
- <li><a href="../Safubot/Test.html">Safubot::Test</a>
111
61
 
112
- <li><a href="../Safubot/Twitter.html">Safubot::Twitter</a>
113
62
 
114
- <li><a href="../Safubot/Twitter/Bot.html">Safubot::Twitter::Bot</a>
63
+ </h1>
64
+
65
+ <dl class="box">
115
66
 
116
- <li><a href="../Safubot/Twitter/DirectMessage.html">Safubot::Twitter::DirectMessage</a>
117
67
 
118
- <li><a href="../Safubot/Twitter/Tweet.html">Safubot::Twitter::Tweet</a>
68
+
119
69
 
120
- <li><a href="../Safubot/XMPP.html">Safubot::XMPP</a>
70
+
121
71
 
122
- <li><a href="../Safubot/XMPP/Bot.html">Safubot::XMPP::Bot</a>
123
72
 
124
- <li><a href="../Safubot/XMPP/Message.html">Safubot::XMPP::Message</a>
125
73
 
126
- <li><a href="../Object.html">Object</a>
74
+ <dt class="r1 last">Defined in:</dt>
75
+ <dd class="r1 last">lib/safubot/test_helper.rb</dd>
127
76
 
128
- </ul>
129
- </nav>
77
+ </dl>
78
+ <div class="clear"></div>
79
+
80
+
130
81
 
131
- </div>
132
- </nav>
133
82
 
134
- <div id="documentation">
135
- <h1 class="module">module Safubot::Test</h1>
136
83
 
137
- <div id="description" class="description">
138
-
139
- </div><!-- description -->
140
84
 
141
85
 
142
-
143
-
144
- <section id="5Buntitled-5D" class="documentation-section">
145
-
86
+ <h2>
87
+ Class Method Summary
88
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
89
+ </h2>
146
90
 
91
+ <ul class="summary">
92
+
93
+ <li class="public ">
94
+ <span class="summary_signature">
147
95
 
148
-
96
+ <a href="#clean_environment-class_method" title="clean_environment (class method)">+ (Object) <strong>clean_environment</strong> </a>
149
97
 
150
98
 
151
99
 
100
+ </span>
101
+
102
+
103
+
104
+
105
+
106
+
152
107
 
153
- <!-- Methods -->
108
+
109
+ <span class="summary_desc"><div class='inline'></div></span>
110
+
111
+ </li>
112
+
113
+
114
+ <li class="public ">
115
+ <span class="summary_signature">
116
+
117
+ <a href="#request-class_method" title="request (class method)">+ (Object) <strong>request</strong>(text) </a>
154
118
 
155
- <section id="public-class-5Buntitled-5D-method-details" class="method-section section">
156
- <h3 class="section-header">Public Class Methods</h3>
157
119
 
158
120
 
159
- <div id="method-c-clean_environment" class="method-detail ">
160
-
161
- <div class="method-heading">
162
- <span class="method-name">clean_environment</span><span
163
- class="method-args">()</span>
164
- <span class="method-click-advice">click to toggle source</span>
165
- </div>
166
-
121
+ </span>
122
+
123
+
124
+
125
+
126
+
127
+
167
128
 
168
- <div class="method-description">
169
-
170
-
171
-
129
+
130
+ <span class="summary_desc"><div class='inline'></div></span>
131
+
132
+ </li>
172
133
 
173
-
174
- <div class="method-source-code" id="clean_environment-source">
175
- <pre><span class="ruby-comment"># File lib/safubot/test_helper.rb, line 6</span>
176
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">clean_environment</span>
177
- <span class="ruby-constant">MongoMapper</span>.<span class="ruby-identifier">database</span> = <span class="ruby-string">&quot;safubot_testing&quot;</span>
178
- <span class="ruby-constant">Request</span>.<span class="ruby-identifier">destroy_all</span>
179
- <span class="ruby-constant">Query</span>.<span class="ruby-identifier">destroy_all</span>
180
- <span class="ruby-constant">Response</span>.<span class="ruby-identifier">destroy_all</span>
181
- <span class="ruby-identifier">$bot</span> = <span class="ruby-constant">Safubot</span>.<span class="ruby-identifier">new</span>({
182
- <span class="ruby-value">:database</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-string">&quot;safubot_testing&quot;</span>,
183
- <span class="ruby-value">:twitter_opts</span> =<span class="ruby-operator">&gt;</span> {
184
- <span class="ruby-value">:username</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-string">&quot;safubot&quot;</span>,
185
- <span class="ruby-value">:consumer_key</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-string">&quot;JgUdmeA1Q8GNm6o7iM6A&quot;</span>,
186
- <span class="ruby-value">:consumer_secret</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-string">&quot;wo7VKq4AGohHc4RgQEuWs1unjy7dtnKJn3Ojd4jPaA&quot;</span>,
187
- <span class="ruby-value">:oauth_token</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-string">&quot;391202224-jrdXljH8LxXdU1uz7QbSyRAU8VQId4p4soVJ3NWG&quot;</span>,
188
- <span class="ruby-value">:oauth_token_secret</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-string">&quot;j44x8UgMZfooPXrhm9XiuCDkWwqO0zHOsWgn8NoXw0&quot;</span>
189
- },
190
- })
191
- <span class="ruby-keyword">end</span></pre>
192
- </div><!-- clean_environment-source -->
193
-
194
- </div>
134
+
135
+ </ul>
136
+
195
137
 
196
-
197
138
 
198
-
199
- </div><!-- clean_environment-method -->
200
139
 
140
+ <div id="class_method_details" class="method_details_list">
141
+ <h2>Class Method Details</h2>
201
142
 
202
- <div id="method-c-request" class="method-detail ">
203
-
204
- <div class="method-heading">
205
- <span class="method-name">request</span><span
206
- class="method-args">(text)</span>
207
- <span class="method-click-advice">click to toggle source</span>
208
- </div>
209
-
210
-
211
- <div class="method-description">
212
-
213
-
214
-
143
+
144
+ <div class="method_details first">
145
+ <p class="signature first" id="clean_environment-class_method">
146
+
147
+ + (<tt>Object</tt>) <strong>clean_environment</strong>
148
+
215
149
 
216
-
217
- <div class="method-source-code" id="request-source">
218
- <pre><span class="ruby-comment"># File lib/safubot/test_helper.rb, line 23</span>
219
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">request</span>(<span class="ruby-identifier">text</span>)
220
- <span class="ruby-constant">Query</span>.<span class="ruby-identifier">create</span>(<span class="ruby-value">:user</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-constant">KnownUser</span>.<span class="ruby-identifier">by_name</span>(<span class="ruby-string">'testing'</span>), <span class="ruby-value">:text</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">text</span>).<span class="ruby-identifier">make_request</span>
221
- <span class="ruby-keyword">end</span></pre>
222
- </div><!-- request-source -->
223
-
224
- </div>
150
+
151
+ </p><table class="source_code">
152
+ <tr>
153
+ <td>
154
+ <pre class="lines">
225
155
 
226
-
227
156
 
228
-
229
- </div><!-- request-method -->
157
+ 20
158
+ 21
159
+ 22
160
+ 23
161
+ 24
162
+ 25
163
+ 26
164
+ 27
165
+ 28</pre>
166
+ </td>
167
+ <td>
168
+ <pre class="code"><span class="info file"># File 'lib/safubot/test_helper.rb', line 20</span>
230
169
 
170
+ <span class='kw'>def</span> <span class='id clean_environment'>clean_environment</span>
171
+ <span class='const'>MongoMapper</span><span class='period'>.</span><span class='id database'>database</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>safubot_testing</span><span class='tstring_end'>&quot;</span></span>
172
+ <span class='const'>Request</span><span class='period'>.</span><span class='id destroy_all'>destroy_all</span>
173
+ <span class='const'>Query</span><span class='period'>.</span><span class='id destroy_all'>destroy_all</span>
174
+ <span class='const'>Response</span><span class='period'>.</span><span class='id destroy_all'>destroy_all</span>
175
+ <span class='const'>KnownUser</span><span class='period'>.</span><span class='id destroy_all'>destroy_all</span>
176
+ <span class='const'>Safubot</span><span class='op'>::</span><span class='id mode'>mode</span> <span class='op'>=</span> <span class='symbol'>:testing</span>
177
+ <span class='gvar'>$bot</span> <span class='op'>=</span> <span class='const'>Safubot</span><span class='op'>::</span><span class='const'>Bot</span><span class='period'>.</span><span class='id new'>new</span><span class='lparen'>(</span><span class='symbol'>:database</span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>safubot_testing</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
178
+ <span class='kw'>end</span></pre>
179
+ </td>
180
+ </tr>
181
+ </table>
182
+ </div>
231
183
 
232
- </section><!-- public-class-method-details -->
184
+ <div class="method_details ">
185
+ <p class="signature " id="request-class_method">
186
+
187
+ + (<tt>Object</tt>) <strong>request</strong>(text)
188
+
189
+
233
190
 
234
- </section><!-- 5Buntitled-5D -->
191
+ </p><table class="source_code">
192
+ <tr>
193
+ <td>
194
+ <pre class="lines">
235
195
 
236
- </div><!-- documentation -->
237
196
 
197
+ 30
198
+ 31
199
+ 32</pre>
200
+ </td>
201
+ <td>
202
+ <pre class="code"><span class="info file"># File 'lib/safubot/test_helper.rb', line 30</span>
238
203
 
239
- <footer id="validator-badges">
240
- <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
241
- <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.11.
242
- <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
243
- </footer>
204
+ <span class='kw'>def</span> <span class='id request'>request</span><span class='lparen'>(</span><span class='id text'>text</span><span class='rparen'>)</span>
205
+ <span class='const'>Query</span><span class='period'>.</span><span class='id create'>create</span><span class='lparen'>(</span><span class='symbol'>:user</span> <span class='op'>=&gt;</span> <span class='const'>KnownUser</span><span class='period'>.</span><span class='id by_name'>by_name</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>testing</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span><span class='comma'>,</span> <span class='symbol'>:text</span> <span class='op'>=&gt;</span> <span class='id text'>text</span><span class='rparen'>)</span><span class='period'>.</span><span class='id make_request'>make_request</span>
206
+ <span class='kw'>end</span></pre>
207
+ </td>
208
+ </tr>
209
+ </table>
210
+ </div>
211
+
212
+ </div>
213
+
214
+ </div>
215
+
216
+ <div id="footer">
217
+ Generated on Mon Nov 28 20:20:04 2011 by
218
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
219
+ 0.7.3 (ruby-1.9.2).
220
+ </div>
244
221
 
222
+ </body>
223
+ </html>