public
Description: Easy, fresh, feature-rich IRC bots in Ruby
Clone URL: git://github.com/RISCfuture/autumn.git
Facets 2.4.5
RISCfuture (author)
Mon Oct 06 11:34:18 -0700 2008
commit  770dc2cb8a95ed8de1875308094fc466a5718542
tree    a2bce7a4ce6306cb73f51e6263f073ab1428bac3
parent  331c618e049318f191645bc4ec4eabb13ef657ed
0
...
17
18
19
20
21
 
 
 
22
23
24
...
167
168
169
170
 
171
172
173
...
17
18
19
 
 
20
21
22
23
24
25
...
168
169
170
 
171
172
173
174
0
@@ -17,8 +17,9 @@ support.
0
 == Requirements
0
 
0
 Autumn requires RubyGems (http://www.rubygems.org) and the Daemons and Facets*
0
-gems. Install RubyGems then run <tt>sudo gem install daemons facets</tt> in a
0
-command line in order to run Autumn.
0
+gems, as well as some of the gems spun off from Facets. Install RubyGems then
0
+run <tt>sudo gem install daemons facets annotations english</tt> in a command
0
+line in order to run Autumn.
0
 
0
 If you wish to use a database backend for your bot, you will need the DataMapper
0
 gem. To install, see the DataMapper website (http://www.datamapper.org).
0
@@ -167,7 +168,7 @@ have to do is create a method called +fortune_command+ to make it work:
0
    FORTUNES.at_rand
0
  end
0
 
0
-The +at_rand+ method is provided by Facets, so you'll need to add a <tt>require
0
+The +at_rand+ method is provided by Facets, so you may need to add a <tt>require
0
 'facets/random'</tt> line at the top of your file. Our method returns a fortune
0
 at random, which is automatically transmitted to the channel or nick where the
0
 command was received.
...
15
16
17
18
19
 
 
 
20
21
22
...
168
169
170
171
 
172
173
174
...
15
16
17
 
 
18
19
20
21
22
23
...
169
170
171
 
172
173
174
175
0
@@ -15,8 +15,9 @@ support.
0
 h2. Requirements
0
 
0
 Autumn requires "RubyGems":http://www.rubygems.org and the Daemons and Facets*
0
-gems. Install RubyGems then run @sudo gem install daemons facets@ in a command
0
-line in order to run Autumn.
0
+gems, as well as some of the gems spun off from Facets. Install RubyGems then
0
+run @sudo gem install daemons facets annotations english@ in a command line in
0
+order to run Autumn.
0
 
0
 If you wish to use a database backend for your bot, you will need the DataMapper
0
 gem. To install, see the "DataMapper website":http://www.datamapper.org.
0
@@ -168,7 +169,7 @@ def fortune_command(stem, sender, reply_to, msg)
0
 end
0
 </code></pre>
0
 
0
-The @at_rand@ method is provided by Facets, so you'll need to add a
0
+The @at_rand@ method is provided by Facets, so you may need to add a
0
 <code>require 'facets/random'</code> line at the top of your file. Our method
0
 returns a fortune at random, which is automatically transmitted to the channel
0
 or nick where the command was received.
...
5
6
7
8
9
 
 
 
 
 
 
 
 
 
10
11
12
...
5
6
7
 
 
8
9
10
11
12
13
14
15
16
17
18
19
0
@@ -5,8 +5,15 @@ require 'set'
0
 require 'rubygems'
0
 require 'yaml'
0
 require 'logger'
0
-require 'facets'
0
-require 'facets/annotations'
0
+require 'facets/array'
0
+require 'facets/date'
0
+require 'facets/enumerable'
0
+require 'facets/hash'
0
+require 'facets/kernel'
0
+require 'facets/string'
0
+require 'facets/symbol'
0
+require 'facets/time'
0
+require 'facets/ann'
0
 require 'libs/misc'
0
 require 'libs/speciator'
0
 require 'libs/authentication'
...
2
3
4
5
 
6
7
8
...
27
28
29
30
 
31
32
33
...
2
3
4
 
5
6
7
8
...
27
28
29
 
30
31
32
33
0
@@ -2,7 +2,7 @@
0
 # Core objects.
0
 
0
 require 'thread'
0
-require 'facets/string/style'
0
+require 'english/style'
0
 
0
 class Numeric # :nodoc:
0
   
0
@@ -27,7 +27,7 @@ class Numeric # :nodoc:
0
 end
0
 
0
 class String # :nodoc:
0
- include Style
0
+ include English::Style
0
   
0
   # Returns a copy of this string with the first character dropped.
0
   

Comments

    No one has commented yet.