safubot 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (91) hide show
  1. data/.gitignore +5 -0
  2. data/Gemfile +4 -0
  3. data/LICENSE.md +19 -0
  4. data/README.md +43 -0
  5. data/Rakefile +1 -0
  6. data/doc/Gemfile.html +119 -0
  7. data/doc/Object.html +171 -0
  8. data/doc/Rakefile.html +117 -0
  9. data/doc/Safubot.html +173 -0
  10. data/doc/Safubot/Bot.html +827 -0
  11. data/doc/Safubot/Evented.html +346 -0
  12. data/doc/Safubot/KnownUser.html +344 -0
  13. data/doc/Safubot/Log.html +254 -0
  14. data/doc/Safubot/Query.html +217 -0
  15. data/doc/Safubot/Request.html +201 -0
  16. data/doc/Safubot/Response.html +174 -0
  17. data/doc/Safubot/Test.html +244 -0
  18. data/doc/Safubot/Twitter.html +153 -0
  19. data/doc/Safubot/Twitter/Bot.html +591 -0
  20. data/doc/Safubot/Twitter/DirectMessage.html +327 -0
  21. data/doc/Safubot/Twitter/Tweet.html +522 -0
  22. data/doc/Safubot/XMPP.html +153 -0
  23. data/doc/Safubot/XMPP/Bot.html +403 -0
  24. data/doc/Safubot/XMPP/Message.html +298 -0
  25. data/doc/created.rid +14 -0
  26. data/doc/foo_rb.html +115 -0
  27. data/doc/images/add.png +0 -0
  28. data/doc/images/brick.png +0 -0
  29. data/doc/images/brick_link.png +0 -0
  30. data/doc/images/bug.png +0 -0
  31. data/doc/images/bullet_black.png +0 -0
  32. data/doc/images/bullet_toggle_minus.png +0 -0
  33. data/doc/images/bullet_toggle_plus.png +0 -0
  34. data/doc/images/date.png +0 -0
  35. data/doc/images/delete.png +0 -0
  36. data/doc/images/find.png +0 -0
  37. data/doc/images/loadingAnimation.gif +0 -0
  38. data/doc/images/macFFBgHack.png +0 -0
  39. data/doc/images/package.png +0 -0
  40. data/doc/images/page_green.png +0 -0
  41. data/doc/images/page_white_text.png +0 -0
  42. data/doc/images/page_white_width.png +0 -0
  43. data/doc/images/plugin.png +0 -0
  44. data/doc/images/ruby.png +0 -0
  45. data/doc/images/tag_blue.png +0 -0
  46. data/doc/images/tag_green.png +0 -0
  47. data/doc/images/transparent.png +0 -0
  48. data/doc/images/wrench.png +0 -0
  49. data/doc/images/wrench_orange.png +0 -0
  50. data/doc/images/zoom.png +0 -0
  51. data/doc/index.html +112 -0
  52. data/doc/js/darkfish.js +153 -0
  53. data/doc/js/jquery.js +18 -0
  54. data/doc/js/navigation.js +142 -0
  55. data/doc/js/search.js +94 -0
  56. data/doc/js/search_index.js +1 -0
  57. data/doc/js/searcher.js +228 -0
  58. data/doc/lib/safubot/bot_rb.html +115 -0
  59. data/doc/lib/safubot/evented_rb.html +115 -0
  60. data/doc/lib/safubot/known_user_rb.html +115 -0
  61. data/doc/lib/safubot/log_rb.html +115 -0
  62. data/doc/lib/safubot/safubot_rb.html +115 -0
  63. data/doc/lib/safubot/spec/bot_spec_rb.html +115 -0
  64. data/doc/lib/safubot/spec/twitter_spec_rb.html +137 -0
  65. data/doc/lib/safubot/test_helper_rb.html +115 -0
  66. data/doc/lib/safubot/twitter_rb.html +115 -0
  67. data/doc/lib/safubot/version_rb.html +115 -0
  68. data/doc/lib/safubot/xmpp_rb.html +115 -0
  69. data/doc/lib/safubot_rb.html +115 -0
  70. data/doc/rdoc.css +543 -0
  71. data/doc/table_of_contents.html +224 -0
  72. data/lib/safubot.rb +20 -0
  73. data/lib/safubot/bot.rb +177 -0
  74. data/lib/safubot/evented.rb +52 -0
  75. data/lib/safubot/known_user.rb +27 -0
  76. data/lib/safubot/log.rb +21 -0
  77. data/lib/safubot/test_helper.rb +62 -0
  78. data/lib/safubot/twitter.rb +279 -0
  79. data/lib/safubot/version.rb +3 -0
  80. data/lib/safubot/xmpp.rb +144 -0
  81. data/safubot.gemspec +32 -0
  82. data/spec/fixtures/twitter/direct_message +1 -0
  83. data/spec/fixtures/twitter/tweet +1 -0
  84. data/spec/fixtures/xmpp/message +3 -0
  85. data/spec/helper.rb +12 -0
  86. data/spec/safubot/bot_spec.rb +41 -0
  87. data/spec/safubot/evented_spec.rb +45 -0
  88. data/spec/safubot/known_user_spec.rb +22 -0
  89. data/spec/safubot/twitter_spec.rb +60 -0
  90. data/spec/safubot/xmpp_spec.rb +35 -0
  91. metadata +260 -0
@@ -0,0 +1,201 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
6
+
7
+ <title>Class: Safubot::Request</title>
8
+
9
+ <link type="text/css" media="screen" href="../rdoc.css" rel="stylesheet">
10
+
11
+ <script type="text/javascript">
12
+ var rdoc_rel_prefix = "../";
13
+ </script>
14
+
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="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/xmpp.rb
51
+ <li>lib/safubot/bot.rb
52
+ <li>lib/safubot/twitter.rb
53
+ </ul>
54
+ </nav>
55
+
56
+
57
+ </div>
58
+
59
+ <div id="class-metadata">
60
+
61
+ <nav id="parent-class-section" class="section">
62
+ <h3 class="section-header">Parent</h3>
63
+
64
+ <p class="link"><a href="../Object.html">Object</a>
65
+
66
+ </nav>
67
+
68
+ <!-- Included Modules -->
69
+ <nav id="includes-section" class="section">
70
+ <h3 class="section-header">Included Modules</h3>
71
+
72
+ <ul class="link-list">
73
+
74
+
75
+ <li><span class="include">MongoMapper::Document</span>
76
+
77
+
78
+ </ul>
79
+ </nav>
80
+
81
+
82
+ </div>
83
+
84
+ <div id="project-metadata">
85
+ <nav id="fileindex-section" class="section project-section">
86
+ <h3 class="section-header">Pages</h3>
87
+
88
+ <ul>
89
+
90
+ <li class="file"><a href="../Gemfile.html">Gemfile</a>
91
+
92
+ <li class="file"><a href="../Rakefile.html">Rakefile</a>
93
+
94
+ </ul>
95
+ </nav>
96
+
97
+ <nav id="classindex-section" class="section project-section">
98
+ <h3 class="section-header">Class and Module Index</h3>
99
+
100
+ <ul class="link-list">
101
+
102
+ <li><a href="../Safubot.html">Safubot</a>
103
+
104
+ <li><a href="../Safubot/Bot.html">Safubot::Bot</a>
105
+
106
+ <li><a href="../Safubot/Evented.html">Safubot::Evented</a>
107
+
108
+ <li><a href="../Safubot/KnownUser.html">Safubot::KnownUser</a>
109
+
110
+ <li><a href="../Safubot/Log.html">Safubot::Log</a>
111
+
112
+ <li><a href="../Safubot/Query.html">Safubot::Query</a>
113
+
114
+ <li><a href="../Safubot/Request.html">Safubot::Request</a>
115
+
116
+ <li><a href="../Safubot/Response.html">Safubot::Response</a>
117
+
118
+ <li><a href="../Safubot/Test.html">Safubot::Test</a>
119
+
120
+ <li><a href="../Safubot/Twitter.html">Safubot::Twitter</a>
121
+
122
+ <li><a href="../Safubot/Twitter/Bot.html">Safubot::Twitter::Bot</a>
123
+
124
+ <li><a href="../Safubot/Twitter/DirectMessage.html">Safubot::Twitter::DirectMessage</a>
125
+
126
+ <li><a href="../Safubot/Twitter/Tweet.html">Safubot::Twitter::Tweet</a>
127
+
128
+ <li><a href="../Safubot/XMPP.html">Safubot::XMPP</a>
129
+
130
+ <li><a href="../Safubot/XMPP/Bot.html">Safubot::XMPP::Bot</a>
131
+
132
+ <li><a href="../Safubot/XMPP/Message.html">Safubot::XMPP::Message</a>
133
+
134
+ <li><a href="../Object.html">Object</a>
135
+
136
+ </ul>
137
+ </nav>
138
+
139
+ </div>
140
+ </nav>
141
+
142
+ <div id="documentation">
143
+ <h1 class="class">class Safubot::Request</h1>
144
+
145
+ <div id="description" class="description">
146
+
147
+ <p>XMPP-specific extensions to <a href="Request.html">Request</a>.</p>
148
+
149
+ <p>Defines elements of the input queue, agnostic of the transfer medium. May
150
+ be extended by service-specific modules.</p>
151
+
152
+ <p>Extend the <a href="Request.html">Request</a> class with Twitter-related
153
+ source_type scoping.</p>
154
+
155
+ </div><!-- description -->
156
+
157
+
158
+
159
+
160
+ <section id="5Buntitled-5D" class="documentation-section">
161
+
162
+
163
+
164
+
165
+
166
+
167
+
168
+ <!-- Attributes -->
169
+ <section id="attribute-method-details" class="method-section section">
170
+ <h3 class="section-header">Attributes</h3>
171
+
172
+
173
+ <div id="attribute-i-callback" class="method-detail">
174
+ <div class="method-heading attribute-method-heading">
175
+ <span class="method-name">callback</span><span
176
+ class="attribute-access-type">[RW]</span>
177
+ </div>
178
+
179
+ <div class="method-description">
180
+
181
+
182
+
183
+ </div>
184
+ </div>
185
+
186
+ </section><!-- attribute-method-details -->
187
+
188
+
189
+ <!-- Methods -->
190
+
191
+ </section><!-- 5Buntitled-5D -->
192
+
193
+ </div><!-- documentation -->
194
+
195
+
196
+ <footer id="validator-badges">
197
+ <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
198
+ <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.11.
199
+ <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
200
+ </footer>
201
+
@@ -0,0 +1,174 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
6
+
7
+ <title>Class: Safubot::Response</title>
8
+
9
+ <link type="text/css" media="screen" href="../rdoc.css" rel="stylesheet">
10
+
11
+ <script type="text/javascript">
12
+ var rdoc_rel_prefix = "../";
13
+ </script>
14
+
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="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/bot.rb
51
+ </ul>
52
+ </nav>
53
+
54
+
55
+ </div>
56
+
57
+ <div id="class-metadata">
58
+
59
+ <nav id="parent-class-section" class="section">
60
+ <h3 class="section-header">Parent</h3>
61
+
62
+ <p class="link"><a href="../Object.html">Object</a>
63
+
64
+ </nav>
65
+
66
+ <!-- Included Modules -->
67
+ <nav id="includes-section" class="section">
68
+ <h3 class="section-header">Included Modules</h3>
69
+
70
+ <ul class="link-list">
71
+
72
+
73
+ <li><span class="include">MongoMapper::Document</span>
74
+
75
+
76
+ </ul>
77
+ </nav>
78
+
79
+
80
+ </div>
81
+
82
+ <div id="project-metadata">
83
+ <nav id="fileindex-section" class="section project-section">
84
+ <h3 class="section-header">Pages</h3>
85
+
86
+ <ul>
87
+
88
+ <li class="file"><a href="../Gemfile.html">Gemfile</a>
89
+
90
+ <li class="file"><a href="../Rakefile.html">Rakefile</a>
91
+
92
+ </ul>
93
+ </nav>
94
+
95
+ <nav id="classindex-section" class="section project-section">
96
+ <h3 class="section-header">Class and Module Index</h3>
97
+
98
+ <ul class="link-list">
99
+
100
+ <li><a href="../Safubot.html">Safubot</a>
101
+
102
+ <li><a href="../Safubot/Bot.html">Safubot::Bot</a>
103
+
104
+ <li><a href="../Safubot/Evented.html">Safubot::Evented</a>
105
+
106
+ <li><a href="../Safubot/KnownUser.html">Safubot::KnownUser</a>
107
+
108
+ <li><a href="../Safubot/Log.html">Safubot::Log</a>
109
+
110
+ <li><a href="../Safubot/Query.html">Safubot::Query</a>
111
+
112
+ <li><a href="../Safubot/Request.html">Safubot::Request</a>
113
+
114
+ <li><a href="../Safubot/Response.html">Safubot::Response</a>
115
+
116
+ <li><a href="../Safubot/Test.html">Safubot::Test</a>
117
+
118
+ <li><a href="../Safubot/Twitter.html">Safubot::Twitter</a>
119
+
120
+ <li><a href="../Safubot/Twitter/Bot.html">Safubot::Twitter::Bot</a>
121
+
122
+ <li><a href="../Safubot/Twitter/DirectMessage.html">Safubot::Twitter::DirectMessage</a>
123
+
124
+ <li><a href="../Safubot/Twitter/Tweet.html">Safubot::Twitter::Tweet</a>
125
+
126
+ <li><a href="../Safubot/XMPP.html">Safubot::XMPP</a>
127
+
128
+ <li><a href="../Safubot/XMPP/Bot.html">Safubot::XMPP::Bot</a>
129
+
130
+ <li><a href="../Safubot/XMPP/Message.html">Safubot::XMPP::Message</a>
131
+
132
+ <li><a href="../Object.html">Object</a>
133
+
134
+ </ul>
135
+ </nav>
136
+
137
+ </div>
138
+ </nav>
139
+
140
+ <div id="documentation">
141
+ <h1 class="class">class Safubot::Response</h1>
142
+
143
+ <div id="description" class="description">
144
+
145
+ <p>Defines elements of the output queue, agnostic of the transfer medium. May
146
+ be extended by service-specific modules.</p>
147
+
148
+ </div><!-- description -->
149
+
150
+
151
+
152
+
153
+ <section id="5Buntitled-5D" class="documentation-section">
154
+
155
+
156
+
157
+
158
+
159
+
160
+
161
+
162
+ <!-- Methods -->
163
+
164
+ </section><!-- 5Buntitled-5D -->
165
+
166
+ </div><!-- documentation -->
167
+
168
+
169
+ <footer id="validator-badges">
170
+ <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
171
+ <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.11.
172
+ <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
173
+ </footer>
174
+
@@ -0,0 +1,244 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
6
+
7
+ <title>Module: Safubot::Test</title>
8
+
9
+ <link type="text/css" media="screen" href="../rdoc.css" rel="stylesheet">
10
+
11
+ <script type="text/javascript">
12
+ var rdoc_rel_prefix = "../";
13
+ </script>
14
+
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/test_helper.rb
51
+ </ul>
52
+ </nav>
53
+
54
+
55
+ </div>
56
+
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
+
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>
81
+
82
+ <li class="file"><a href="../Gemfile.html">Gemfile</a>
83
+
84
+ <li class="file"><a href="../Rakefile.html">Rakefile</a>
85
+
86
+ </ul>
87
+ </nav>
88
+
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>
95
+
96
+ <li><a href="../Safubot/Bot.html">Safubot::Bot</a>
97
+
98
+ <li><a href="../Safubot/Evented.html">Safubot::Evented</a>
99
+
100
+ <li><a href="../Safubot/KnownUser.html">Safubot::KnownUser</a>
101
+
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>
109
+
110
+ <li><a href="../Safubot/Test.html">Safubot::Test</a>
111
+
112
+ <li><a href="../Safubot/Twitter.html">Safubot::Twitter</a>
113
+
114
+ <li><a href="../Safubot/Twitter/Bot.html">Safubot::Twitter::Bot</a>
115
+
116
+ <li><a href="../Safubot/Twitter/DirectMessage.html">Safubot::Twitter::DirectMessage</a>
117
+
118
+ <li><a href="../Safubot/Twitter/Tweet.html">Safubot::Twitter::Tweet</a>
119
+
120
+ <li><a href="../Safubot/XMPP.html">Safubot::XMPP</a>
121
+
122
+ <li><a href="../Safubot/XMPP/Bot.html">Safubot::XMPP::Bot</a>
123
+
124
+ <li><a href="../Safubot/XMPP/Message.html">Safubot::XMPP::Message</a>
125
+
126
+ <li><a href="../Object.html">Object</a>
127
+
128
+ </ul>
129
+ </nav>
130
+
131
+ </div>
132
+ </nav>
133
+
134
+ <div id="documentation">
135
+ <h1 class="module">module Safubot::Test</h1>
136
+
137
+ <div id="description" class="description">
138
+
139
+ </div><!-- description -->
140
+
141
+
142
+
143
+
144
+ <section id="5Buntitled-5D" class="documentation-section">
145
+
146
+
147
+
148
+
149
+
150
+
151
+
152
+
153
+ <!-- Methods -->
154
+
155
+ <section id="public-class-5Buntitled-5D-method-details" class="method-section section">
156
+ <h3 class="section-header">Public Class Methods</h3>
157
+
158
+
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
+
167
+
168
+ <div class="method-description">
169
+
170
+
171
+
172
+
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>
195
+
196
+
197
+
198
+
199
+ </div><!-- clean_environment-method -->
200
+
201
+
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
+
215
+
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>
225
+
226
+
227
+
228
+
229
+ </div><!-- request-method -->
230
+
231
+
232
+ </section><!-- public-class-method-details -->
233
+
234
+ </section><!-- 5Buntitled-5D -->
235
+
236
+ </div><!-- documentation -->
237
+
238
+
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>
244
+