safubot 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -272,6 +272,30 @@ Returns the value of attribute username.
272
272
  <li class="public ">
273
273
  <span class="summary_signature">
274
274
 
275
+ <a href="#fork-instance_method" title="#fork (instance method)">- (Object) <strong>fork</strong> </a>
276
+
277
+
278
+
279
+ </span>
280
+
281
+
282
+
283
+
284
+
285
+
286
+
287
+
288
+ <span class="summary_desc"><div class='inline'><p>
289
+ Starts our TweetStream client running in a new process.
290
+ </p>
291
+ </div></span>
292
+
293
+ </li>
294
+
295
+
296
+ <li class="public ">
297
+ <span class="summary_signature">
298
+
275
299
  <a href="#handle_message-instance_method" title="#handle_message (instance method)">- (Object) <strong>handle_message</strong>(message) </a>
276
300
 
277
301
 
@@ -480,7 +504,7 @@ Constructs the appropriate series of mentions for a reply to this tweet.
480
504
 
481
505
 
482
506
  <span class="summary_desc"><div class='inline'><p>
483
- Starts our TweetStream client running in a new process.
507
+ Starts our TweetStream client running.
484
508
  </p>
485
509
  </div></span>
486
510
 
@@ -623,21 +647,21 @@ These are passed straight through to ::TweetStream and
623
647
  <pre class="lines">
624
648
 
625
649
 
626
- 299
627
- 300
628
- 301
629
- 302
630
- 303
631
650
  304
632
651
  305
633
652
  306
634
653
  307
635
654
  308
636
655
  309
637
- 310</pre>
656
+ 310
657
+ 311
658
+ 312
659
+ 313
660
+ 314
661
+ 315</pre>
638
662
  </td>
639
663
  <td>
640
- <pre class="code"><span class="info file"># File 'lib/safubot/twitter.rb', line 299</span>
664
+ <pre class="code"><span class="info file"># File 'lib/safubot/twitter.rb', line 304</span>
641
665
 
642
666
  <span class='kw'>def</span> <span class='id initialize'>initialize</span><span class='lparen'>(</span><span class='id options'>options</span><span class='op'>=</span><span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
643
667
  <span class='id defaults'>defaults</span> <span class='op'>=</span> <span class='lbrace'>{</span> <span class='symbol'>:username</span> <span class='op'>=&gt;</span> <span class='kw'>nil</span><span class='comma'>,</span>
@@ -884,7 +908,53 @@ Returns the value of attribute username
884
908
 
885
909
 
886
910
  <div class="method_details first">
887
- <p class="signature first" id="handle_message-instance_method">
911
+ <p class="signature first" id="fork-instance_method">
912
+
913
+ - (<tt>Object</tt>) <strong>fork</strong>
914
+
915
+
916
+
917
+ </p><div class="docstring">
918
+ <div class="discussion">
919
+ <p>
920
+ Starts our TweetStream client running in a new process.
921
+ </p>
922
+
923
+
924
+ </div>
925
+ </div>
926
+ <div class="tags">
927
+
928
+
929
+ </div><table class="source_code">
930
+ <tr>
931
+ <td>
932
+ <pre class="lines">
933
+
934
+
935
+ 283
936
+ 284
937
+ 285
938
+ 286
939
+ 287
940
+ 288</pre>
941
+ </td>
942
+ <td>
943
+ <pre class="code"><span class="info file"># File 'lib/safubot/twitter.rb', line 283</span>
944
+
945
+ <span class='kw'>def</span> <span class='id fork'>fork</span>
946
+ <span class='ivar'>@pid</span> <span class='op'>=</span> <span class='const'>Process</span><span class='period'>.</span><span class='id fork'>fork</span> <span class='kw'>do</span>
947
+ <span class='const'>Signal</span><span class='period'>.</span><span class='id trap'>trap</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>TERM</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span> <span class='lbrace'>{</span> <span class='id stop'>stop</span> <span class='rbrace'>}</span>
948
+ <span class='id run'>run</span>
949
+ <span class='kw'>end</span>
950
+ <span class='kw'>end</span></pre>
951
+ </td>
952
+ </tr>
953
+ </table>
954
+ </div>
955
+
956
+ <div class="method_details ">
957
+ <p class="signature " id="handle_message-instance_method">
888
958
 
889
959
  - (<tt>Object</tt>) <strong>handle_message</strong>(message)
890
960
 
@@ -1347,7 +1417,7 @@ Constructs the appropriate series of mentions for a reply to this tweet.
1347
1417
  </p><div class="docstring">
1348
1418
  <div class="discussion">
1349
1419
  <p>
1350
- Starts our TweetStream client running in a new process.
1420
+ Starts our TweetStream client running.
1351
1421
  </p>
1352
1422
 
1353
1423
 
@@ -1365,20 +1435,14 @@ Starts our TweetStream client running in a new process.
1365
1435
  277
1366
1436
  278
1367
1437
  279
1368
- 280
1369
- 281
1370
- 282
1371
- 283</pre>
1438
+ 280</pre>
1372
1439
  </td>
1373
1440
  <td>
1374
1441
  <pre class="code"><span class="info file"># File 'lib/safubot/twitter.rb', line 277</span>
1375
1442
 
1376
1443
  <span class='kw'>def</span> <span class='id run'>run</span>
1377
- <span class='ivar'>@pid</span> <span class='op'>=</span> <span class='const'>Process</span><span class='period'>.</span><span class='id fork'>fork</span> <span class='kw'>do</span>
1378
- <span class='const'>Signal</span><span class='period'>.</span><span class='id trap'>trap</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>TERM</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span> <span class='lbrace'>{</span> <span class='id stop'>stop</span> <span class='rbrace'>}</span>
1379
- <span class='id init_stream'>init_stream</span>
1380
- <span class='id run_stream'>run_stream</span>
1381
- <span class='kw'>end</span>
1444
+ <span class='id init_stream'>init_stream</span>
1445
+ <span class='id run_stream'>run_stream</span>
1382
1446
  <span class='kw'>end</span></pre>
1383
1447
  </td>
1384
1448
  </tr>
@@ -1440,7 +1504,7 @@ Runs the TweetStream client.
1440
1504
  <span class='kw'>else</span>
1441
1505
  <span class='const'>Log</span><span class='period'>.</span><span class='id error'>error</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>TweetStream client exited unexpectedly: </span><span class='embexpr_beg'>#{</span><span class='id error_report'>error_report</span><span class='lparen'>(</span><span class='id e'>e</span><span class='rparen'>)</span><span class='rbrace'>}</span><span class='tstring_end'>&quot;</span></span>
1442
1506
  <span class='const'>Log</span><span class='period'>.</span><span class='id error'>error</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Restarting TweetStream client in 5 seconds.</span><span class='tstring_end'>&quot;</span></span>
1443
- <span class='id sleep'>sleep</span> <span class='int'>5</span><span class='semicolon'>;</span> <span class='id init_stream'>init_stream</span><span class='semicolon'>;</span> <span class='id run_stream'>run_stream</span>
1507
+ <span class='const'>EM</span><span class='op'>::</span><span class='const'>Timer</span><span class='period'>.</span><span class='id new'>new</span><span class='lparen'>(</span><span class='int'>5</span><span class='rparen'>)</span> <span class='lbrace'>{</span> <span class='id init_stream'>init_stream</span><span class='semicolon'>;</span> <span class='id run_stream'>run_stream</span> <span class='rbrace'>}</span>
1444
1508
  <span class='kw'>end</span>
1445
1509
  <span class='kw'>end</span>
1446
1510
  <span class='kw'>end</span></pre>
@@ -1549,18 +1613,18 @@ Shut down the TweetStream client.
1549
1613
  <pre class="lines">
1550
1614
 
1551
1615
 
1552
- 286
1553
- 287
1554
- 288
1555
- 289
1556
- 290
1557
1616
  291
1558
1617
  292
1559
1618
  293
1560
- 294</pre>
1619
+ 294
1620
+ 295
1621
+ 296
1622
+ 297
1623
+ 298
1624
+ 299</pre>
1561
1625
  </td>
1562
1626
  <td>
1563
- <pre class="code"><span class="info file"># File 'lib/safubot/twitter.rb', line 286</span>
1627
+ <pre class="code"><span class="info file"># File 'lib/safubot/twitter.rb', line 291</span>
1564
1628
 
1565
1629
  <span class='kw'>def</span> <span class='id stop'>stop</span>
1566
1630
  <span class='kw'>if</span> <span class='ivar'>@stream</span>
@@ -1581,7 +1645,7 @@ Shut down the TweetStream client.
1581
1645
  </div>
1582
1646
 
1583
1647
  <div id="footer">
1584
- Generated on Thu Dec 1 18:19:17 2011 by
1648
+ Generated on Thu Dec 1 11:12:27 2011 by
1585
1649
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1586
1650
  0.7.3 (ruby-1.9.2).
1587
1651
  </div>
@@ -497,7 +497,7 @@ Finds the user&#8217;s screen_name.
497
497
  </div>
498
498
 
499
499
  <div id="footer">
500
- Generated on Thu Dec 1 18:19:17 2011 by
500
+ Generated on Thu Dec 1 11:12:27 2011 by
501
501
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
502
502
  0.7.3 (ruby-1.9.2).
503
503
  </div>
@@ -840,7 +840,7 @@ Finds the user&#8217;s screen_name.
840
840
  </div>
841
841
 
842
842
  <div id="footer">
843
- Generated on Thu Dec 1 18:19:17 2011 by
843
+ Generated on Thu Dec 1 11:12:27 2011 by
844
844
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
845
845
  0.7.3 (ruby-1.9.2).
846
846
  </div>
@@ -109,7 +109,7 @@ XMPP-specific functionality.
109
109
  </div>
110
110
 
111
111
  <div id="footer">
112
- Generated on Thu Dec 1 18:19:17 2011 by
112
+ Generated on Thu Dec 1 11:12:26 2011 by
113
113
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
114
114
  0.7.3 (ruby-1.9.2).
115
115
  </div>
@@ -232,6 +232,30 @@ Returns the value of attribute state.
232
232
  <li class="public ">
233
233
  <span class="summary_signature">
234
234
 
235
+ <a href="#fork-instance_method" title="#fork (instance method)">- (Object) <strong>fork</strong> </a>
236
+
237
+
238
+
239
+ </span>
240
+
241
+
242
+
243
+
244
+
245
+
246
+
247
+
248
+ <span class="summary_desc"><div class='inline'><p>
249
+ Starts our Blather client running in a new process.
250
+ </p>
251
+ </div></span>
252
+
253
+ </li>
254
+
255
+
256
+ <li class="public ">
257
+ <span class="summary_signature">
258
+
235
259
  <a href="#init_blather-instance_method" title="#init_blather (instance method)">- (Object) <strong>init_blather</strong> </a>
236
260
 
237
261
 
@@ -296,7 +320,7 @@ A new instance of Bot.
296
320
 
297
321
 
298
322
  <span class="summary_desc"><div class='inline'><p>
299
- Starts our Blather client running in a new process.
323
+ Starts our Blather client running.
300
324
  </p>
301
325
  </div></span>
302
326
 
@@ -437,14 +461,14 @@ A new instance of Bot
437
461
  <pre class="lines">
438
462
 
439
463
 
440
- 167
441
- 168
442
- 169
443
- 170
444
- 171</pre>
464
+ 171
465
+ 172
466
+ 173
467
+ 174
468
+ 175</pre>
445
469
  </td>
446
470
  <td>
447
- <pre class="code"><span class="info file"># File 'lib/safubot/xmpp.rb', line 167</span>
471
+ <pre class="code"><span class="info file"># File 'lib/safubot/xmpp.rb', line 171</span>
448
472
 
449
473
  <span class='kw'>def</span> <span class='id initialize'>initialize</span><span class='lparen'>(</span><span class='id opts'>opts</span><span class='rparen'>)</span>
450
474
  <span class='ivar'>@jid</span> <span class='op'>=</span> <span class='id opts'>opts</span><span class='lbracket'>[</span><span class='symbol'>:jid</span><span class='rbracket'>]</span>
@@ -641,7 +665,53 @@ Returns the value of attribute state
641
665
 
642
666
 
643
667
  <div class="method_details first">
644
- <p class="signature first" id="init_blather-instance_method">
668
+ <p class="signature first" id="fork-instance_method">
669
+
670
+ - (<tt>Object</tt>) <strong>fork</strong>
671
+
672
+
673
+
674
+ </p><div class="docstring">
675
+ <div class="discussion">
676
+ <p>
677
+ Starts our Blather client running in a new process.
678
+ </p>
679
+
680
+
681
+ </div>
682
+ </div>
683
+ <div class="tags">
684
+
685
+
686
+ </div><table class="source_code">
687
+ <tr>
688
+ <td>
689
+ <pre class="lines">
690
+
691
+
692
+ 136
693
+ 137
694
+ 138
695
+ 139
696
+ 140
697
+ 141</pre>
698
+ </td>
699
+ <td>
700
+ <pre class="code"><span class="info file"># File 'lib/safubot/xmpp.rb', line 136</span>
701
+
702
+ <span class='kw'>def</span> <span class='id fork'>fork</span>
703
+ <span class='ivar'>@pid</span> <span class='op'>=</span> <span class='const'>Process</span><span class='period'>.</span><span class='id fork'>fork</span> <span class='kw'>do</span>
704
+ <span class='const'>Signal</span><span class='period'>.</span><span class='id trap'>trap</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>TERM</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span> <span class='lbrace'>{</span> <span class='id stop'>stop</span> <span class='rbrace'>}</span>
705
+ <span class='id run'>run</span>
706
+ <span class='kw'>end</span>
707
+ <span class='kw'>end</span></pre>
708
+ </td>
709
+ </tr>
710
+ </table>
711
+ </div>
712
+
713
+ <div class="method_details ">
714
+ <p class="signature " id="init_blather-instance_method">
645
715
 
646
716
  - (<tt>Object</tt>) <strong>init_blather</strong>
647
717
 
@@ -697,8 +767,7 @@ Sets our Blather::Client event processor running.
697
767
  107
698
768
  108
699
769
  109
700
- 110
701
- 111</pre>
770
+ 110</pre>
702
771
  </td>
703
772
  <td>
704
773
  <pre class="code"><span class="info file"># File 'lib/safubot/xmpp.rb', line 78</span>
@@ -726,7 +795,7 @@ Sets our Blather::Client event processor running.
726
795
  <span class='id sleep'>sleep</span> <span class='int'>1</span> <span class='comment'># HACK (Mispy): Give the state a chance to change when we're stopped.
727
796
  </span> <span class='kw'>if</span> <span class='ivar'>@state</span> <span class='op'>==</span> <span class='symbol'>:running</span>
728
797
  <span class='const'>Log</span><span class='period'>.</span><span class='id warn'>warn</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>XMPP disconnected; attempting reconnection in 5 seconds.</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
729
- <span class='id sleep'>sleep</span> <span class='int'>5</span><span class='semicolon'>;</span> <span class='ivar'>@client</span><span class='period'>.</span><span class='id connect'>connect</span>
798
+ <span class='const'>EM</span><span class='op'>::</span><span class='const'>Timer</span><span class='period'>.</span><span class='id new'>new</span><span class='lparen'>(</span><span class='int'>5</span><span class='rparen'>)</span> <span class='lbrace'>{</span> <span class='ivar'>@client</span><span class='period'>.</span><span class='id connect'>connect</span> <span class='rbrace'>}</span>
730
799
  <span class='kw'>end</span>
731
800
  <span class='kw'>end</span>
732
801
 
@@ -734,7 +803,6 @@ Sets our Blather::Client event processor running.
734
803
  <span class='const'>Log</span><span class='period'>.</span><span class='id error'>error</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Unhandled Blather error: </span><span class='embexpr_beg'>#{</span><span class='id error_report'>error_report</span><span class='lparen'>(</span><span class='id e'>e</span><span class='rparen'>)</span><span class='rbrace'>}</span><span class='tstring_end'>&quot;</span></span>
735
804
  <span class='kw'>end</span>
736
805
 
737
-
738
806
  <span class='ivar'>@state</span> <span class='op'>=</span> <span class='symbol'>:running</span>
739
807
  <span class='kw'>end</span></pre>
740
808
  </td>
@@ -752,7 +820,7 @@ Sets our Blather::Client event processor running.
752
820
  </p><div class="docstring">
753
821
  <div class="discussion">
754
822
  <p>
755
- Starts our Blather client running in a new process.
823
+ Starts our Blather client running.
756
824
  </p>
757
825
 
758
826
 
@@ -767,23 +835,17 @@ Starts our Blather client running in a new process.
767
835
  <pre class="lines">
768
836
 
769
837
 
838
+ 130
770
839
  131
771
840
  132
772
- 133
773
- 134
774
- 135
775
- 136
776
- 137</pre>
841
+ 133</pre>
777
842
  </td>
778
843
  <td>
779
- <pre class="code"><span class="info file"># File 'lib/safubot/xmpp.rb', line 131</span>
844
+ <pre class="code"><span class="info file"># File 'lib/safubot/xmpp.rb', line 130</span>
780
845
 
781
846
  <span class='kw'>def</span> <span class='id run'>run</span>
782
- <span class='ivar'>@pid</span> <span class='op'>=</span> <span class='const'>Process</span><span class='period'>.</span><span class='id fork'>fork</span> <span class='kw'>do</span>
783
- <span class='const'>Signal</span><span class='period'>.</span><span class='id trap'>trap</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>TERM</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span> <span class='lbrace'>{</span> <span class='id stop'>stop</span> <span class='rbrace'>}</span>
784
- <span class='id init_blather'>init_blather</span>
785
- <span class='id run_blather'>run_blather</span>
786
- <span class='kw'>end</span>
847
+ <span class='id init_blather'>init_blather</span>
848
+ <span class='id run_blather'>run_blather</span>
787
849
  <span class='kw'>end</span></pre>
788
850
  </td>
789
851
  </tr>
@@ -815,6 +877,7 @@ Runs the Blather client.
815
877
  <pre class="lines">
816
878
 
817
879
 
880
+ 113
818
881
  114
819
882
  115
820
883
  116
@@ -828,11 +891,10 @@ Runs the Blather client.
828
891
  124
829
892
  125
830
893
  126
831
- 127
832
- 128</pre>
894
+ 127</pre>
833
895
  </td>
834
896
  <td>
835
- <pre class="code"><span class="info file"># File 'lib/safubot/xmpp.rb', line 114</span>
897
+ <pre class="code"><span class="info file"># File 'lib/safubot/xmpp.rb', line 113</span>
836
898
 
837
899
  <span class='kw'>def</span> <span class='id run_blather'>run_blather</span>
838
900
  <span class='kw'>begin</span>
@@ -845,7 +907,7 @@ Runs the Blather client.
845
907
  <span class='kw'>elsif</span> <span class='ivar'>@state</span> <span class='op'>==</span> <span class='symbol'>:running</span>
846
908
  <span class='const'>Log</span><span class='period'>.</span><span class='id error'>error</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>XMPP client exited unexpectedly: </span><span class='embexpr_beg'>#{</span><span class='id error_report'>error_report</span><span class='lparen'>(</span><span class='id e'>e</span><span class='rparen'>)</span><span class='rbrace'>}</span><span class='tstring_end'>&quot;</span></span>
847
909
  <span class='const'>Log</span><span class='period'>.</span><span class='id error'>error</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Restarting XMPP client in 5 seconds.</span><span class='tstring_end'>&quot;</span></span>
848
- <span class='id sleep'>sleep</span> <span class='int'>5</span><span class='semicolon'>;</span> <span class='id init_blather'>init_blather</span><span class='semicolon'>;</span> <span class='id run_blather'>run_blather</span>
910
+ <span class='const'>EM</span><span class='op'>::</span><span class='const'>Timer</span><span class='period'>.</span><span class='id new'>new</span><span class='lparen'>(</span><span class='int'>5</span><span class='rparen'>)</span> <span class='lbrace'>{</span> <span class='id init_blather'>init_blather</span><span class='semicolon'>;</span> <span class='id run_blather'>run_blather</span> <span class='rbrace'>}</span>
849
911
  <span class='kw'>end</span>
850
912
  <span class='kw'>end</span>
851
913
  <span class='kw'>end</span></pre>
@@ -879,16 +941,16 @@ Dispatch a Response via XMPP.
879
941
  <pre class="lines">
880
942
 
881
943
 
882
- 159
883
- 160
884
- 161
885
- 162
886
944
  163
887
945
  164
888
- 165</pre>
946
+ 165
947
+ 166
948
+ 167
949
+ 168
950
+ 169</pre>
889
951
  </td>
890
952
  <td>
891
- <pre class="code"><span class="info file"># File 'lib/safubot/xmpp.rb', line 159</span>
953
+ <pre class="code"><span class="info file"># File 'lib/safubot/xmpp.rb', line 163</span>
892
954
 
893
955
  <span class='kw'>def</span> <span class='id send'>send</span><span class='lparen'>(</span><span class='id resp'>resp</span><span class='rparen'>)</span>
894
956
  <span class='kw'>if</span> <span class='ivar'>@state</span> <span class='op'>==</span> <span class='symbol'>:running</span>
@@ -927,19 +989,19 @@ Shuts down the Blather client.
927
989
  <pre class="lines">
928
990
 
929
991
 
930
- 140
931
- 141
932
- 142
933
- 143
934
992
  144
935
993
  145
936
994
  146
937
995
  147
938
996
  148
939
- 149</pre>
997
+ 149
998
+ 150
999
+ 151
1000
+ 152
1001
+ 153</pre>
940
1002
  </td>
941
1003
  <td>
942
- <pre class="code"><span class="info file"># File 'lib/safubot/xmpp.rb', line 140</span>
1004
+ <pre class="code"><span class="info file"># File 'lib/safubot/xmpp.rb', line 144</span>
943
1005
 
944
1006
  <span class='kw'>def</span> <span class='id stop'>stop</span>
945
1007
  <span class='kw'>if</span> <span class='ivar'>@client</span>
@@ -969,15 +1031,15 @@ Shuts down the Blather client.
969
1031
  <pre class="lines">
970
1032
 
971
1033
 
972
- 151
973
- 152
974
- 153
975
- 154
976
1034
  155
977
- 156</pre>
1035
+ 156
1036
+ 157
1037
+ 158
1038
+ 159
1039
+ 160</pre>
978
1040
  </td>
979
1041
  <td>
980
- <pre class="code"><span class="info file"># File 'lib/safubot/xmpp.rb', line 151</span>
1042
+ <pre class="code"><span class="info file"># File 'lib/safubot/xmpp.rb', line 155</span>
981
1043
 
982
1044
  <span class='kw'>def</span> <span class='id tell'>tell</span><span class='lparen'>(</span><span class='id jid'>jid</span><span class='comma'>,</span> <span class='id text'>text</span><span class='rparen'>)</span>
983
1045
  <span class='id msg'>msg</span> <span class='op'>=</span> <span class='const'>Blather</span><span class='op'>::</span><span class='const'>Stanza</span><span class='op'>::</span><span class='const'>Message</span><span class='period'>.</span><span class='id new'>new</span>
@@ -995,7 +1057,7 @@ Shuts down the Blather client.
995
1057
  </div>
996
1058
 
997
1059
  <div id="footer">
998
- Generated on Thu Dec 1 18:19:17 2011 by
1060
+ Generated on Thu Dec 1 11:12:26 2011 by
999
1061
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1000
1062
  0.7.3 (ruby-1.9.2).
1001
1063
  </div>
@@ -444,7 +444,7 @@ Retrieves the sender&#8217;s username from the JID.
444
444
  </div>
445
445
 
446
446
  <div id="footer">
447
- Generated on Thu Dec 1 18:19:17 2011 by
447
+ Generated on Thu Dec 1 11:12:26 2011 by
448
448
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
449
449
  0.7.3 (ruby-1.9.2).
450
450
  </div>
@@ -109,7 +109,7 @@ XMPP-specific functionality.
109
109
  </div>
110
110
 
111
111
  <div id="footer">
112
- Generated on Thu Dec 1 18:19:17 2011 by
112
+ Generated on Thu Dec 1 11:12:26 2011 by
113
113
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
114
114
  0.7.3 (ruby-1.9.2).
115
115
  </div>
data/doc/Safubot.html CHANGED
@@ -73,7 +73,7 @@
73
73
 
74
74
  <dt class="r1 last">Defined in:</dt>
75
75
  <dd class="r1 last">lib/safubot.rb<span class="defines">,<br />
76
- lib/safubot/bot.rb,<br /> lib/safubot/log.rb,<br /> lib/safubot/xmpp.rb,<br /> lib/safubot/evented.rb,<br /> lib/safubot/version.rb,<br /> lib/safubot/twitter.rb,<br /> lib/safubot/known_user.rb,<br /> lib/safubot/test_helper.rb</span>
76
+ lib/safubot/log.rb,<br /> lib/safubot/bot.rb,<br /> lib/safubot/xmpp.rb,<br /> lib/safubot/twitter.rb,<br /> lib/safubot/evented.rb,<br /> lib/safubot/version.rb,<br /> lib/safubot/known_user.rb,<br /> lib/safubot/test_helper.rb</span>
77
77
  </dd>
78
78
 
79
79
  </dl>
@@ -99,7 +99,7 @@
99
99
  <dt id="VERSION-constant" class="">VERSION =
100
100
 
101
101
  </dt>
102
- <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>0.0.4</span><span class='tstring_end'>&quot;</span></span></pre></dd>
102
+ <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>0.0.6</span><span class='tstring_end'>&quot;</span></span></pre></dd>
103
103
 
104
104
  </dl>
105
105
 
@@ -295,7 +295,7 @@ An Exception to print.
295
295
  </div>
296
296
 
297
297
  <div id="footer">
298
- Generated on Thu Dec 1 18:19:17 2011 by
298
+ Generated on Thu Dec 1 11:12:26 2011 by
299
299
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
300
300
  0.7.3 (ruby-1.9.2).
301
301
  </div>
data/doc/_index.html CHANGED
@@ -88,16 +88,16 @@
88
88
  </li>
89
89
 
90
90
  <li>
91
- <span class='object_link'><a href="Safubot/Twitter/Bot.html" title="Safubot::Twitter::Bot (class)">Bot</a></span>
91
+ <span class='object_link'><a href="Safubot/Bot.html" title="Safubot::Bot (class)">Bot</a></span>
92
92
 
93
- <small>(Safubot::Twitter)</small>
93
+ <small>(Safubot)</small>
94
94
 
95
95
  </li>
96
96
 
97
97
  <li>
98
- <span class='object_link'><a href="Safubot/Bot.html" title="Safubot::Bot (class)">Bot</a></span>
98
+ <span class='object_link'><a href="Safubot/Twitter/Bot.html" title="Safubot::Twitter::Bot (class)">Bot</a></span>
99
99
 
100
- <small>(Safubot)</small>
100
+ <small>(Safubot::Twitter)</small>
101
101
 
102
102
  </li>
103
103
 
@@ -307,7 +307,7 @@
307
307
  </div>
308
308
 
309
309
  <div id="footer">
310
- Generated on Thu Dec 1 18:19:17 2011 by
310
+ Generated on Thu Dec 1 11:12:26 2011 by
311
311
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
312
312
  0.7.3 (ruby-1.9.2).
313
313
  </div>
data/doc/file.README.html CHANGED
@@ -119,9 +119,9 @@
119
119
  <span class='kw'>end</span>
120
120
  <span class='kw'>end</span>
121
121
 
122
- <span class='comment'># This will fork the Twitter/XMPP streaming processes as needed
123
- </span><span class='comment'># and then wait for them. You can call run_nowait if you want
124
- </span><span class='comment'># a non-blocking form.
122
+ <span class='comment'># This will run the Twitter/XMPP streaming processes.
123
+ </span><span class='comment'># If both are needed, the first-enabled one will be forked
124
+ </span><span class='comment'># into its own process.
125
125
  </span><span class='const'>NiftyBot</span><span class='period'>.</span><span class='id new'>new</span><span class='period'>.</span><span class='id run'>run</span>
126
126
  </pre>
127
127
 
@@ -166,11 +166,11 @@
166
166
 
167
167
  <h2><a name="caveats">Caveats</a></h2>
168
168
 
169
- <p>I've yet to determine how to make multiple libraries with their own EventMachine loops play nice together, so the TweetStream and Blather clients are currently run in their own processes. Keep in mind the effect this will have on the execution context of your event handlers. MongoDB is your friend!</p>
169
+ <p>I've yet to determine how to make multiple libraries with their own EventMachine loops play nice together, so the TweetStream and Blather clients are currently run in separate processes. Keep in mind the effect this will have on the execution context of your event handlers. MongoDB is your friend!</p>
170
170
  </div></div>
171
171
 
172
172
  <div id="footer">
173
- Generated on Thu Dec 1 18:19:17 2011 by
173
+ Generated on Thu Dec 1 11:12:26 2011 by
174
174
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
175
175
  0.7.3 (ruby-1.9.2).
176
176
  </div>