bougyman-autumn 3.1.4 → 3.1.6

Sign up to get free protection for your applications and to get access to all the features.
data/AUTHORS CHANGED
@@ -2,7 +2,7 @@ Following persons have contributed to autumn.
2
2
  (Sorted by number of submitted patches, then alphabetically)
3
3
 
4
4
  113 Tim Morgan <riscfuture@gmail.com>
5
- 15 TJ Vanderpoel <bougy.man@gmail.com>
5
+ 21 TJ Vanderpoel <bougy.man@gmail.com>
6
6
  3 Dale Campbell <dale@save-state.net>
7
7
  1 bterlson <btthalion@gmail.com>
8
8
  1 comboy <kacper.ciesla@gmail.com>
data/CHANGELOG CHANGED
@@ -1,3 +1,19 @@
1
+ [5d61bfc | Sun May 03 16:20:42 UTC 2009] TJ Vanderpoel <bougy.man@gmail.com>
2
+
3
+ * updated readme to show autumn binary usage
4
+
5
+ [dc4e6a8 | Sun May 03 15:58:06 UTC 2009] TJ Vanderpoel <bougy.man@gmail.com>
6
+
7
+ * 3.1.5 adds working specs
8
+
9
+ [333d984 | Sun May 03 15:57:09 UTC 2009] TJ Vanderpoel <bougy.man@gmail.com>
10
+
11
+ * got specs working, added spec task as default in Rakefile
12
+
13
+ [be2662e | Sun May 03 15:32:10 UTC 2009] TJ Vanderpoel <bougy.man@gmail.com>
14
+
15
+ * Version 3.1.4
16
+
1
17
  [d099756 | Sun May 03 15:31:30 UTC 2009] TJ Vanderpoel <bougy.man@gmail.com>
2
18
 
3
19
  * added more complete release task and added authors generation to gemspec. Pulled Rakefile in from the http://github.com/riscfuture/autumn specs branch
data/MANIFEST CHANGED
@@ -95,7 +95,6 @@ spec/ctcp_spec.rb
95
95
  spec/daemon_spec.rb
96
96
  spec/datamapper_hacks_spec.rb
97
97
  tasks/authors.rake
98
- tasks/bacon.rake
99
98
  tasks/changelog.rake
100
99
  tasks/copyright.rake
101
100
  tasks/doc.rake
@@ -107,4 +106,5 @@ tasks/rcov.rake
107
106
  tasks/release.rake
108
107
  tasks/reversion.rake
109
108
  tasks/setup.rake
109
+ tasks/spec.rake
110
110
  tasks/yard.rake
data/README CHANGED
@@ -1,9 +1,9 @@
1
1
  = Autumn: A Ruby IRC Bot Framework
2
2
 
3
- <b>Version 3.0 (Jul 4, 2008)</b>
3
+ <b>Version 3.1.5 (May 3, 2009)</b>
4
4
 
5
5
  Author:: Tim Morgan (mailto:riscfuture@gmail.com)
6
- Copyright:: Copyright (c)2007-2008 Tim Morgan
6
+ Copyright:: Copyright (c)2007-2009 Tim Morgan
7
7
  License:: Distributed under the same terms as Ruby. Portions of this code are
8
8
  copyright (c)2004 David Heinemeier Hansson; please see
9
9
  libs/inheritable_attributes.rb for more information.
@@ -46,7 +46,6 @@ overview you can consult for future reference:
46
46
  * season.yml - Season configuration
47
47
  * stems.yml - Example IRC configuration file
48
48
  * <b>doc/</b> - HTML documentation generated by RDoc
49
- * <b>api/</b> - Autumn API documentation
50
49
  * <b>leaves/</b> - Autumn leaves documentation
51
50
  * <b>leaves/</b> - Autumn leaves. Each subdirectory contains all the code and
52
51
  data for a leaf.
@@ -60,40 +59,15 @@ overview you can consult for future reference:
60
59
  * <b>models/</b> - Active record-type database objects
61
60
  * <b>tasks</b> - Additional rake tasks for this leaf
62
61
  * <b>views/</b> - ERb views for each of the leaf's commands
63
- * <b>libs/</b> - Autumn core code
64
- * channel_leaf.rb - A leaf subclass that can ignore messages from certain
65
- channels its in
66
- * coder.rb - Used by script/generate to write out Ruby code
67
- * ctcp.rb - CTCP support library
68
- * daemon.rb - Provides support for different kinds of IRC servers
69
- * datamapper_hacks.rb - Some hacks to help DataMapper work with Autumn
70
- * foliater.rb - Instantiates and manages stems and leaves
71
- * formatting.rb - Provides support for different kinds of IRC client text
72
- formatting and colorization
73
- * generator.rb - Library used by script/generate
74
- * genesis.rb - Boots the Autumn environment
75
- * inheritable_attributes.rb - Adds support for class-level inheritable
76
- attributes
77
- * leaf.rb - The core bot superclass
78
- * log_facade.rb - Simplifies logging for stems and leaves
79
- * misc.rb - RubyCore class additions and other knick-knacks
80
- * script.rb - Library used by script/generate and script/destroy
81
- * speciator.rb - Manages global, season, stem, and leaf configurations
82
- * stem.rb - IRC client library
83
- * stem_facade.rb - Additional methods to simplify the Stem class
84
62
  * <b>log/</b> - Directory where (most) Autumn logs are written (see the "Logs"
85
63
  section)
86
64
  * Rakefile - Contains the rake tasks used to control Autumn (see the "Tasks"
87
65
  section)
88
66
  * README - This file
89
67
  * README.textile - Textile-formatted readme
90
- * <b>resources/</b> - Data files used by Autumn
91
- * <b>daemons/</b> - Data files describing different IRC server types
92
68
  * <b>script/</b> - Helper scripts for controlling Autumn
93
- * daemon - Runs Autumn as a daemon
94
69
  * destroy - Destroys Autumn objects
95
70
  * generate - Creates Autumn objects
96
- * server - Starts Autumn
97
71
  * <b>shared/</b> - Shared code libraries available to all leaves
98
72
  * <b>tmp/</b> - Temporary files, such as PID files
99
73
 
@@ -102,6 +76,11 @@ overview you can consult for future reference:
102
76
  Before you can run Autumn and try out the example leaves, you'll need to set up
103
77
  a few things. Here are the steps:
104
78
 
79
+ === Creating your bot's tree
80
+ To create a new tree, change to a directory where you want your bot to run from,
81
+ then use <tt>autumn create PROJECT</tt> to create the directory (PROJECT should
82
+ be replaced with your bot's name) with the structure outlined above.
83
+
105
84
  === Configure Your Testing Season
106
85
 
107
86
  In Autumn, your leaves run in an environment, called a "season." Each season has
@@ -116,7 +95,7 @@ information, see "Stems" below.
116
95
 
117
96
  Next, edit the database.yml file. As mentioned previously, Scorekeeper requires
118
97
  the DataMapper gem because it uses a persistent store. By default it's set up to
119
- use a MySQL database, but you can use PostgreSQL or SQLite 3 if you'd like. If
98
+ use a SQLite 3 database, but you can use PostgreSQL or MySQL if you'd like. If
120
99
  you'd prefer not to install any of these database solutions, delete the
121
100
  database.yml file and remove the Scorekeeper leaf from the leaves.yml and
122
101
  stems.yml files.
@@ -132,15 +111,15 @@ more.
132
111
 
133
112
  === Starting the Server
134
113
 
135
- Run the shell command <tt>script/server</tt> to start the server. After a short
114
+ Run the shell command <tt>autumn start</tt> to start the server. After a short
136
115
  while, your leaf should appear in the channel you specified. You can type
137
116
  "!points Coolguy +5" and then "!points" to get started using Scorekeeper, or
138
117
  "!insult" to play with Insulter. Have some fun, and when you're satisfied, stop
139
118
  the server by typing "!quit".
140
119
 
141
- If you'd like to daemonize your server, you can use the shell commands <tt>rake
142
- app:start</tt> and <tt>rake app:stop</tt>. For more information, see "Tasks"
143
- below.
120
+ If you'd like to daemonize your server, you can use the shell commands <tt>autumn
121
+ start -D</tt> and <tt>autumn stop</tt>. For more information, see "Tasks"
122
+ below (app: namespace).
144
123
 
145
124
  == Making Your Own Leaf
146
125
 
@@ -261,7 +240,7 @@ For more information on view rendering, see the Autumn::Leaf#render method.
261
240
  Each time you start Autumn, the process launches in a certain season (a.k.a.
262
241
  environment context). This season is defined in the config/global.yml file. You
263
242
  can temporarily override it by setting the +SEASON+ environment variable (e.g.,
264
- <tt>SEASON=production script/server</tt>).
243
+ <tt>SEASON=production autumn start</tt>).
265
244
 
266
245
  It's important to realize that an season is just a name, nothing more. You can
267
246
  have as many seasons as you like, and name them anything that you like. Autumn
@@ -769,7 +748,7 @@ the tmp directory.
769
748
 
770
749
  The most tricky of errors can happen before the process is daemonized. If your
771
750
  process is quitting prematurely, and you don't see anything in either log file,
772
- consider running <tt>script/server</tt>, allowing you to see any exceptions for
751
+ consider running <tt>autumn start</tt>, allowing you to see any exceptions for
773
752
  yourself.
774
753
 
775
754
  Unfortunately, it's still possible that the bug might not appear when you do
@@ -978,7 +957,7 @@ Application tasks:
978
957
  * <b>rake app:restart</b> - Reloads the Autumn daemons.
979
958
  * <b>rake app:run</b> - Starts the Autumn daemon in the foreground.
980
959
  * <b>rake app:zap</b> - Forces the daemon to a stopped state. Use this command
981
- if your daemon is not running but script/daemon thinks it still is.
960
+ if your daemon is not running but autumn start -D thinks it still is.
982
961
 
983
962
  Database tasks:
984
963
 
@@ -1031,30 +1010,22 @@ where <options> may contain:
1031
1010
 
1032
1011
  You can alter the season by setting the +SEASON+ environment variable.
1033
1012
 
1034
- === script/daemon
1035
-
1036
- Controller for the Autumn daemon. Starts, stops, and manages the daemon. Must be
1037
- run from the Autumn root directory.
1038
-
1039
- Usage: script/daemon <command> <options> -- <application options>
1013
+ === autumn start|stop|status|restart -D
1040
1014
 
1041
- where <command> is one of:
1015
+ The autumn binary can be used to control an Autumn daemon.
1016
+ Starts, stops, shows status of and manages the daemon.
1042
1017
 
1043
1018
  +start+:: start an instance of the application
1044
1019
  +stop+:: stop all instances of the application
1045
1020
  +restart+:: stop all instances and restart them afterwards
1046
1021
  +run+:: start the application and stay on top
1047
- +zap+:: set the application to a stopped state
1048
1022
 
1049
- and where <options> may contain several of the following:
1050
-
1051
- <tt>-t, --ontop</tt>:: Stay on top (does not daemonize)
1052
- <tt>-f, --force</tt>:: Force operation
1023
+ where [options] are
1024
+ <tt>-D, --daemonize</tt>:: Daemonize the bot
1025
+ <tt>-m, --monitor</tt>:: Try to restart from crashes in daemon mode
1053
1026
 
1054
1027
  Common options:
1055
-
1056
- <tt>-h, --help</tt>:: Show this message
1057
- <tt>--version</tt>:: Show version
1028
+ <tt>-h, --help</tt>:: Show help
1058
1029
 
1059
1030
  === script/destroy
1060
1031
 
@@ -1087,7 +1058,7 @@ Usage: script/generate <options> <template> <name>
1087
1058
  version control system. (Autodetects CVS, Git, and
1088
1059
  Subversion.)
1089
1060
 
1090
- === script/server
1061
+ === autumn start
1091
1062
 
1092
1063
  Runs Autumn from the command line. This script will not exit until all leaves
1093
1064
  have exited. You can set the SEASON environment variable to override the season.
@@ -1123,7 +1094,7 @@ the Real World:
1123
1094
  1. Create a new production season. Configure your stems, leaves, and database
1124
1095
  as necessary for your production environment.
1125
1096
  2. In config/global.yml, set the season to your production season.
1126
- 3. If desired, in script/daemon, set the <tt>:monitor</tt> option to true. This
1097
+ 3. If desired, user autumn start -m to set the <tt>:monitor</tt> option to true. This
1127
1098
  will spawn a monitor process that will relaunch Autumn if it crashes.
1128
1099
 
1129
1100
  == Other Information
data/README.textile CHANGED
@@ -1,9 +1,9 @@
1
1
  h1. Autumn: A Ruby IRC Bot Framework
2
2
 
3
- *Version 3.0 (Jul 4, 2008)*
3
+ *Version 3.1.5 (May 3, 2009)*
4
4
 
5
5
  | Author | Tim Morgan (riscfuture@gmail.com) |
6
- | Copyright | Copyright (c)2007-2008 Tim Morgan |
6
+ | Copyright | Copyright (c)2007-2009 Tim Morgan |
7
7
  | License | Distributed under the same terms as Ruby. Portions of this code are copyright (c)2004 David Heinemeier Hansson; please see <tt>libs/inheritable_attributes.rb</tt> for more information. |
8
8
 
9
9
  Autumn is a full-featured framework on top of which IRC bots (called "leaves")
@@ -44,7 +44,6 @@ overview you can consult for future reference:
44
44
  ***** season.yml - Season configuration
45
45
  ***** stems.yml - Example IRC configuration file
46
46
  * *doc/* - HTML documentation generated by RDoc
47
- ** *api/* - Autumn API documentation
48
47
  ** *leaves/* - Autumn leaves documentation
49
48
  * *leaves/* - Autumn leaves. Each subdirectory contains all the code and
50
49
  data for a leaf.
@@ -58,40 +57,15 @@ overview you can consult for future reference:
58
57
  *** *models/* - Active record-type database objects
59
58
  *** *tasks/* - Additional rake tasks for this leaf (see *Custom leaf tasks*)
60
59
  *** *views/* - ERb views for each of the leaf's commands
61
- * *libs/* - Autumn core code
62
- ** channel_leaf.rb - A leaf subclass that can ignore messages from certain
63
- channels its in
64
- ** coder.rb - Used by script/generate to write out Ruby code
65
- ** ctcp.rb - CTCP support library
66
- ** daemon.rb - Provides support for different kinds of IRC servers
67
- ** datamapper_hacks.rb - Some hacks to help DataMapper work with Autumn
68
- ** foliater.rb - Instantiates and manages stems and leaves
69
- ** formatting.rb - Provides support for different kinds of IRC client text
70
- formatting and colorization
71
- ** generator.rb - Library used by script/generate
72
- ** genesis.rb - Boots the Autumn environment
73
- ** inheritable_attributes.rb - Adds support for class-level inheritable
74
- attributes
75
- ** leaf.rb - The core bot superclass
76
- ** log_facade.rb - Simplifies logging for stems and leaves
77
- ** misc.rb - RubyCore class additions and other knick-knacks
78
- ** script.rb - Library used by script/generate and script/destroy
79
- ** speciator.rb - Manages global, season, stem, and leaf configurations
80
- ** stem.rb - IRC client library
81
- ** stem_facade.rb - Additional methods to simplify the Stem class
82
60
  * *log/* - Directory where (most) Autumn logs are written (see the *Logs*
83
61
  section)
84
62
  * Rakefile - Contains the rake tasks used to control Autumn (see the *Tasks*
85
63
  section)
86
64
  * README - RDoc-formatted readme
87
65
  * README.textile - This file
88
- * *resources/* - Data files used by Autumn
89
- ** *daemons/* - Data files describing different IRC server types
90
66
  * *script/* - Helper scripts for controlling Autumn
91
- ** daemon - Runs Autumn as a daemon
92
67
  ** destroy - Destroys Autumn objects
93
68
  ** generate - Creates Autumn objects
94
- ** server - Starts Autumn
95
69
  * *shared/* - Shared code libraries available to all leaves
96
70
  * *tmp/* - Temporary files, such as PID files
97
71
 
@@ -100,6 +74,11 @@ h2. Configuring Autumn for Your First Launch
100
74
  Before you can run Autumn and try out the example leaves, you'll need to set up
101
75
  a few things. Here are the steps:
102
76
 
77
+ h3. Creating your bot's tree
78
+ To create a new tree, change to a directory where you want your bot to run from,
79
+ then use <tt>autumn create PROJECT</tt> to create the directory (PROJECT should
80
+ be replaced with your bot's name) with the structure outlined above.
81
+
103
82
  h3. Configure Your Testing Season
104
83
 
105
84
  In Autumn, your leaves run in an environment, called a "season." Each season has
@@ -114,7 +93,7 @@ information, see *Stems* below.
114
93
 
115
94
  Next, edit the <tt>database.yml</tt> file. As mentioned previously, Scorekeeper
116
95
  requires the DataMapper gem because it uses a persistent store. By default it's
117
- set up to use a MySQL database, but you can use PostgreSQL or SQLite 3 if you'd
96
+ set up to use a SQLite 3 database, but you can use PostgreSQL or MySQL if you'd
118
97
  like. If you'd prefer not to install any of these database solutions, delete the
119
98
  <tt>database.yml</tt> file and remove the Scorekeeper leaf from the
120
99
  <tt>leaves.yml</tt> and <tt>stems.yml</tt> files.
@@ -130,7 +109,7 @@ and *Leaves* below for more.
130
109
 
131
110
  h3. Starting the Server
132
111
 
133
- Run the shell command @script/server@ to start the server. After a short
112
+ Run the shell command @autumn start@ to start the server. After a short
134
113
  while, your leaf should appear in the channel you specified. You can type
135
114
  "!points Coolguy +5" and then "!points" to get started using Scorekeeper, or
136
115
  "!insult" to play with Insulter. Have some fun, and when you're satisfied, stop
@@ -274,7 +253,7 @@ h2. Seasons
274
253
  Each time you start Autumn, the process launches in a certain season (a.k.a.
275
254
  environment context). This season is defined in the <tt>config/global.yml</tt>
276
255
  file. You can temporarily override it by setting the @SEASON@ environment
277
- variable (e.g., @SEASON=production script/server@).
256
+ variable (e.g., @SEASON=production autumn start@).
278
257
 
279
258
  It's important to realize that an season is just a name, nothing more. You can
280
259
  have as many seasons as you like, and name them anything that you like. Autumn
@@ -800,7 +779,7 @@ outs. They are in the <tt>tmp</tt> directory.
800
779
 
801
780
  The most tricky of errors can happen before the process is daemonized. If your
802
781
  process is quitting prematurely, and you don't see anything in either log file,
803
- consider running @script/server@, allowing you to see any exceptions for
782
+ consider running @autumn start@, allowing you to see any exceptions for
804
783
  yourself.
805
784
 
806
785
  Unfortunately, it's still possible that the bug might not appear when you do
@@ -1025,7 +1004,7 @@ Application tasks:
1025
1004
  | @rake app:stop@ | Stops the Autumn daemon. |
1026
1005
  | @rake app:restart@ | Reloads the Autumn daemons. |
1027
1006
  | @rake app:run@ | Starts the Autumn daemon in the foreground. |
1028
- | @rake app:zap@ | Forces the daemon to a stopped state. Use this command if your daemon is not running but <tt>script/daemon</tt> thinks it still is. |
1007
+ | @rake app:zap@ | Forces the daemon to a stopped state. Use this command if your daemon is not running but <tt>autumn</tt> thinks it still is. |
1029
1008
 
1030
1009
  Database tasks:
1031
1010
 
@@ -1074,30 +1053,27 @@ where [options] may contain:
1074
1053
 
1075
1054
  You can alter the season by setting the @SEASON@ environment variable.
1076
1055
 
1077
- h3. <tt>script/daemon</tt>
1056
+ h3. <tt>autumn start|stop|status|restart -D</tt>
1078
1057
 
1079
- Controller for the Autumn daemon. Starts, stops, and manages the daemon. Must be
1080
- run from the Autumn root directory.
1058
+ The @autumn@ command controls the Autumn daemon.
1081
1059
 
1082
- Usage: @script/daemon [command] [options] -- [application options]@
1060
+ Usage: autumn [command] [options] -- [application options]@
1083
1061
 
1084
1062
  where [command] is one of:
1085
1063
 
1086
1064
  | @start@ | start an instance of the application |
1087
1065
  | @stop@ | stop all instances of the application |
1088
1066
  | @restart@ | stop all instances and restart them afterwards |
1089
- | @run@ | start the application and stay on top |
1090
- | @zap@ | set the application to a stopped state |
1067
+ | @status@ | show the status of an application |
1091
1068
 
1092
- and where [options] may contain several of the following:
1069
+ and where [options] are:
1093
1070
 
1094
- | @-t, --ontop@ | Stay on top (does not daemonize) |
1095
- | @-f, --force@ | Force operation |
1071
+ | @-D, --daemonize@ | Daemonize the bot |
1072
+ | @-m, --monitor@ | Try to restart from crashes in daemon mode |
1096
1073
 
1097
1074
  Common options:
1098
1075
 
1099
- | @-h, --help@ | Show this message |
1100
- | @--version@ | Show version |
1076
+ | @-h, --help@ | Show usage |
1101
1077
 
1102
1078
  h3. <tt>script/destroy</tt>
1103
1079
 
@@ -1124,7 +1100,7 @@ Usage: @script/generate [options] [template] [name]@
1124
1100
  | @--help, -h@ | Displays this usage information. |
1125
1101
  | @--vcs, -c@ | Add any created files or directories to the project's version control system. (Autodetects CVS, Git, and Subversion.) |
1126
1102
 
1127
- h3. <tt>script/server</tt>
1103
+ h3. <tt>autumn start</tt>
1128
1104
 
1129
1105
  Runs Autumn from the command line. This script will not exit until all leaves
1130
1106
  have exited. You can set the @SEASON@ environment variable to override the
@@ -1157,7 +1133,7 @@ the Real World:
1157
1133
  # Create a new production season. Configure your stems, leaves, and database
1158
1134
  as necessary for your production environment.
1159
1135
  # In <tt>config/global.yml</tt>, set the season to your production season.
1160
- # If desired, in <tt>script/daemon</tt>, set the @:monitor@ option to true.
1136
+ # If desired, in <tt>autumn start -D</tt>, set the -m option.
1161
1137
  This will spawn a monitor process that will relaunch Autumn if it crashes.
1162
1138
 
1163
1139
  h2. Other Information
data/Rakefile CHANGED
@@ -41,7 +41,7 @@ GEMSPEC = Gem::Specification.new{|s|
41
41
  s.require_path = 'lib'
42
42
  s.bindir = "bin"
43
43
  s.executables = ["autumn"]
44
- # s.rubyforge_project = "autumn"
44
+ s.rubyforge_project = "pastr"
45
45
 
46
46
  s.add_dependency('facets')
47
47
  s.add_dependency('anise')
@@ -59,7 +59,7 @@ MESSAGE
59
59
 
60
60
  Dir['tasks/*.rake'].each{|f| import(f) }
61
61
 
62
- task :default => [:bacon]
62
+ task :default => [:spec]
63
63
 
64
64
  CLEAN.include %w[
65
65
  **/.*.sw?
data/autumn.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{autumn}
5
- s.version = "3.1.4"
5
+ s.version = "3.1.6"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Tim 'riscfuture' Morgan"]
@@ -11,7 +11,7 @@ Gem::Specification.new do |s|
11
11
  s.description = %q{Autumn is a simple and modular irc framework}
12
12
  s.email = %q{bougy.man@gmail.com}
13
13
  s.executables = ["autumn"]
14
- s.files = ["AUTHORS", "CHANGELOG", "MANIFEST", "README", "README.textile", "Rakefile", "autumn.gemspec", "bin/autumn", "lib/autumn.rb", "lib/autumn/authentication.rb", "lib/autumn/channel_leaf.rb", "lib/autumn/coder.rb", "lib/autumn/console_boot.rb", "lib/autumn/ctcp.rb", "lib/autumn/daemon.rb", "lib/autumn/datamapper_hacks.rb", "lib/autumn/foliater.rb", "lib/autumn/formatting.rb", "lib/autumn/generator.rb", "lib/autumn/genesis.rb", "lib/autumn/inheritable_attributes.rb", "lib/autumn/leaf.rb", "lib/autumn/log_facade.rb", "lib/autumn/misc.rb", "lib/autumn/resources/daemons/Anothernet.yml", "lib/autumn/resources/daemons/AustHex.yml", "lib/autumn/resources/daemons/Bahamut.yml", "lib/autumn/resources/daemons/Dancer.yml", "lib/autumn/resources/daemons/GameSurge.yml", "lib/autumn/resources/daemons/IRCnet.yml", "lib/autumn/resources/daemons/Ithildin.yml", "lib/autumn/resources/daemons/KineIRCd.yml", "lib/autumn/resources/daemons/PTlink.yml", "lib/autumn/resources/daemons/QuakeNet.yml", "lib/autumn/resources/daemons/RFC1459.yml", "lib/autumn/resources/daemons/RFC2811.yml", "lib/autumn/resources/daemons/RFC2812.yml", "lib/autumn/resources/daemons/RatBox.yml", "lib/autumn/resources/daemons/Ultimate.yml", "lib/autumn/resources/daemons/Undernet.yml", "lib/autumn/resources/daemons/Unreal.yml", "lib/autumn/resources/daemons/_Other.yml", "lib/autumn/resources/daemons/aircd.yml", "lib/autumn/resources/daemons/bdq-ircd.yml", "lib/autumn/resources/daemons/hybrid.yml", "lib/autumn/resources/daemons/ircu.yml", "lib/autumn/resources/daemons/tr-ircd.yml", "lib/autumn/script.rb", "lib/autumn/speciator.rb", "lib/autumn/stem.rb", "lib/autumn/stem_facade.rb", "lib/autumn/tool/bin.rb", "lib/autumn/tool/create.rb", "lib/autumn/tool/project_creator.rb", "lib/autumn/version.rb", "lib/skel/Rakefile", "lib/skel/config/global.yml", "lib/skel/config/seasons/testing/database.yml", "lib/skel/config/seasons/testing/leaves.yml", "lib/skel/config/seasons/testing/season.yml", "lib/skel/config/seasons/testing/stems.yml", "lib/skel/leaves/administrator/README", "lib/skel/leaves/administrator/controller.rb", "lib/skel/leaves/administrator/views/autumn.txt.erb", "lib/skel/leaves/administrator/views/reload.txt.erb", "lib/skel/leaves/insulter/README", "lib/skel/leaves/insulter/controller.rb", "lib/skel/leaves/insulter/views/about.txt.erb", "lib/skel/leaves/insulter/views/help.txt.erb", "lib/skel/leaves/insulter/views/insult.txt.erb", "lib/skel/leaves/scorekeeper/README", "lib/skel/leaves/scorekeeper/config.yml", "lib/skel/leaves/scorekeeper/controller.rb", "lib/skel/leaves/scorekeeper/helpers/general.rb", "lib/skel/leaves/scorekeeper/models/channel.rb", "lib/skel/leaves/scorekeeper/models/person.rb", "lib/skel/leaves/scorekeeper/models/pseudonym.rb", "lib/skel/leaves/scorekeeper/models/score.rb", "lib/skel/leaves/scorekeeper/tasks/stats.rake", "lib/skel/leaves/scorekeeper/views/about.txt.erb", "lib/skel/leaves/scorekeeper/views/change.txt.erb", "lib/skel/leaves/scorekeeper/views/history.txt.erb", "lib/skel/leaves/scorekeeper/views/points.txt.erb", "lib/skel/leaves/scorekeeper/views/usage.txt.erb", "lib/skel/log/README", "lib/skel/script/console", "lib/skel/script/destroy", "lib/skel/script/generate", "lib/skel/shared/README", "lib/skel/tmp/README", "spec/authentication_spec.rb", "spec/channel_leaf_spec.rb", "spec/coder_spec.rb", "spec/ctcp_spec.rb", "spec/daemon_spec.rb", "spec/datamapper_hacks_spec.rb", "tasks/authors.rake", "tasks/bacon.rake", "tasks/changelog.rake", "tasks/copyright.rake", "tasks/doc.rake", "tasks/gem.rake", "tasks/gem_installer.rake", "tasks/install_dependencies.rake", "tasks/manifest.rake", "tasks/rcov.rake", "tasks/release.rake", "tasks/reversion.rake", "tasks/setup.rake", "tasks/yard.rake"]
14
+ s.files = ["AUTHORS", "CHANGELOG", "MANIFEST", "README", "README.textile", "Rakefile", "autumn.gemspec", "bin/autumn", "lib/autumn.rb", "lib/autumn/authentication.rb", "lib/autumn/channel_leaf.rb", "lib/autumn/coder.rb", "lib/autumn/console_boot.rb", "lib/autumn/ctcp.rb", "lib/autumn/daemon.rb", "lib/autumn/datamapper_hacks.rb", "lib/autumn/foliater.rb", "lib/autumn/formatting.rb", "lib/autumn/generator.rb", "lib/autumn/genesis.rb", "lib/autumn/inheritable_attributes.rb", "lib/autumn/leaf.rb", "lib/autumn/log_facade.rb", "lib/autumn/misc.rb", "lib/autumn/resources/daemons/Anothernet.yml", "lib/autumn/resources/daemons/AustHex.yml", "lib/autumn/resources/daemons/Bahamut.yml", "lib/autumn/resources/daemons/Dancer.yml", "lib/autumn/resources/daemons/GameSurge.yml", "lib/autumn/resources/daemons/IRCnet.yml", "lib/autumn/resources/daemons/Ithildin.yml", "lib/autumn/resources/daemons/KineIRCd.yml", "lib/autumn/resources/daemons/PTlink.yml", "lib/autumn/resources/daemons/QuakeNet.yml", "lib/autumn/resources/daemons/RFC1459.yml", "lib/autumn/resources/daemons/RFC2811.yml", "lib/autumn/resources/daemons/RFC2812.yml", "lib/autumn/resources/daemons/RatBox.yml", "lib/autumn/resources/daemons/Ultimate.yml", "lib/autumn/resources/daemons/Undernet.yml", "lib/autumn/resources/daemons/Unreal.yml", "lib/autumn/resources/daemons/_Other.yml", "lib/autumn/resources/daemons/aircd.yml", "lib/autumn/resources/daemons/bdq-ircd.yml", "lib/autumn/resources/daemons/hybrid.yml", "lib/autumn/resources/daemons/ircu.yml", "lib/autumn/resources/daemons/tr-ircd.yml", "lib/autumn/script.rb", "lib/autumn/speciator.rb", "lib/autumn/stem.rb", "lib/autumn/stem_facade.rb", "lib/autumn/tool/bin.rb", "lib/autumn/tool/create.rb", "lib/autumn/tool/project_creator.rb", "lib/autumn/version.rb", "lib/skel/Rakefile", "lib/skel/config/global.yml", "lib/skel/config/seasons/testing/database.yml", "lib/skel/config/seasons/testing/leaves.yml", "lib/skel/config/seasons/testing/season.yml", "lib/skel/config/seasons/testing/stems.yml", "lib/skel/leaves/administrator/README", "lib/skel/leaves/administrator/controller.rb", "lib/skel/leaves/administrator/views/autumn.txt.erb", "lib/skel/leaves/administrator/views/reload.txt.erb", "lib/skel/leaves/insulter/README", "lib/skel/leaves/insulter/controller.rb", "lib/skel/leaves/insulter/views/about.txt.erb", "lib/skel/leaves/insulter/views/help.txt.erb", "lib/skel/leaves/insulter/views/insult.txt.erb", "lib/skel/leaves/scorekeeper/README", "lib/skel/leaves/scorekeeper/config.yml", "lib/skel/leaves/scorekeeper/controller.rb", "lib/skel/leaves/scorekeeper/helpers/general.rb", "lib/skel/leaves/scorekeeper/models/channel.rb", "lib/skel/leaves/scorekeeper/models/person.rb", "lib/skel/leaves/scorekeeper/models/pseudonym.rb", "lib/skel/leaves/scorekeeper/models/score.rb", "lib/skel/leaves/scorekeeper/tasks/stats.rake", "lib/skel/leaves/scorekeeper/views/about.txt.erb", "lib/skel/leaves/scorekeeper/views/change.txt.erb", "lib/skel/leaves/scorekeeper/views/history.txt.erb", "lib/skel/leaves/scorekeeper/views/points.txt.erb", "lib/skel/leaves/scorekeeper/views/usage.txt.erb", "lib/skel/log/README", "lib/skel/script/console", "lib/skel/script/destroy", "lib/skel/script/generate", "lib/skel/shared/README", "lib/skel/tmp/README", "spec/authentication_spec.rb", "spec/channel_leaf_spec.rb", "spec/coder_spec.rb", "spec/ctcp_spec.rb", "spec/daemon_spec.rb", "spec/datamapper_hacks_spec.rb", "tasks/authors.rake", "tasks/changelog.rake", "tasks/copyright.rake", "tasks/doc.rake", "tasks/gem.rake", "tasks/gem_installer.rake", "tasks/install_dependencies.rake", "tasks/manifest.rake", "tasks/rcov.rake", "tasks/release.rake", "tasks/reversion.rake", "tasks/setup.rake", "tasks/spec.rake", "tasks/yard.rake"]
15
15
  s.has_rdoc = true
16
16
  s.homepage = %q{http://github.com/bougyman/autumn}
17
17
  s.post_install_message = %q{============================================================
@@ -22,6 +22,7 @@ You can now create a new bot:
22
22
 
23
23
  ============================================================}
24
24
  s.require_paths = ["lib"]
25
+ s.rubyforge_project = %q{pastr}
25
26
  s.rubygems_version = %q{1.3.1}
26
27
  s.summary = %q{Autumn is a simple and modular irc framework}
27
28
 
@@ -1,3 +1,3 @@
1
1
  module Autumn
2
- VERSION = "3.1.4"
2
+ VERSION = "3.1.6"
3
3
  end
@@ -1,7 +1,8 @@
1
1
  require 'logger'
2
2
  require 'set'
3
3
 
4
- require 'libs/genesis'
4
+ require 'autumn'
5
+ require 'autumn/genesis'
5
6
 
6
7
  gen = Autumn::Genesis.new
7
8
  gen.load_libraries
data/spec/coder_spec.rb CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
2
2
  require 'facets/array'
3
3
  require 'facets/string'
4
4
 
5
- require "libs/coder"
5
+ require "autumn/coder"
6
6
 
7
7
  describe Autumn::Coder do
8
8
  before :each do
data/spec/ctcp_spec.rb CHANGED
@@ -6,11 +6,11 @@ require 'facets/kernel'
6
6
  require 'facets/string'
7
7
  require 'anise'
8
8
 
9
- require 'libs/misc'
10
- require 'libs/stem_facade'
11
- require 'libs/daemon'
12
- require 'libs/stem'
13
- require 'libs/ctcp'
9
+ require 'autumn/misc'
10
+ require 'autumn/stem_facade'
11
+ require 'autumn/daemon'
12
+ require 'autumn/stem'
13
+ require 'autumn/ctcp'
14
14
 
15
15
  describe Autumn::CTCP do
16
16
  before :each do
data/spec/daemon_spec.rb CHANGED
@@ -3,8 +3,8 @@ require 'rubygems'
3
3
  require 'facets/array'
4
4
  require 'facets/string'
5
5
 
6
- require 'libs/misc'
7
- require 'libs/daemon'
6
+ require 'autumn/misc'
7
+ require 'autumn/daemon'
8
8
 
9
9
  describe Autumn::Daemon do
10
10
  it "should not allow the creation of a default Daemon" do
@@ -2,8 +2,8 @@ require 'rubygems'
2
2
  require 'facets/symbol'
3
3
  require 'dm-core'
4
4
 
5
- require 'libs/misc'
6
- require 'libs/datamapper_hacks'
5
+ require 'autumn/misc'
6
+ require 'autumn/datamapper_hacks'
7
7
 
8
8
  describe DataMapper::Resource do
9
9
  describe "within a module" do
data/tasks/spec.rake ADDED
@@ -0,0 +1,7 @@
1
+ require 'spec/rake/spectask'
2
+ desc "Verify API specs"
3
+ Spec::Rake::SpecTask.new('spec') do |t|
4
+ t.spec_files = FileList['spec/**/*.rb']
5
+ t.spec_opts = [ '-cfs' ]
6
+ end
7
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bougyman-autumn
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.4
4
+ version: 3.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim 'riscfuture' Morgan
@@ -138,7 +138,6 @@ files:
138
138
  - spec/daemon_spec.rb
139
139
  - spec/datamapper_hacks_spec.rb
140
140
  - tasks/authors.rake
141
- - tasks/bacon.rake
142
141
  - tasks/changelog.rake
143
142
  - tasks/copyright.rake
144
143
  - tasks/doc.rake
@@ -150,6 +149,7 @@ files:
150
149
  - tasks/release.rake
151
150
  - tasks/reversion.rake
152
151
  - tasks/setup.rake
152
+ - tasks/spec.rake
153
153
  - tasks/yard.rake
154
154
  has_rdoc: true
155
155
  homepage: http://github.com/bougyman/autumn
@@ -179,7 +179,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
179
179
  version:
180
180
  requirements: []
181
181
 
182
- rubyforge_project:
182
+ rubyforge_project: pastr
183
183
  rubygems_version: 1.2.0
184
184
  signing_key:
185
185
  specification_version: 2
data/tasks/bacon.rake DELETED
@@ -1,66 +0,0 @@
1
- desc 'Run all bacon specs with pretty output'
2
- task :bacon => :install_dependencies do
3
- require 'open3'
4
- require 'scanf'
5
- require 'matrix'
6
-
7
- specs = PROJECT_SPECS
8
-
9
- some_failed = false
10
- specs_size = specs.size
11
- len = specs.map{|s| s.size }.sort.last
12
- total_tests = total_assertions = total_failures = total_errors = 0
13
- totals = Vector[0, 0, 0, 0]
14
-
15
- red, yellow, green = "\e[31m%s\e[0m", "\e[33m%s\e[0m", "\e[32m%s\e[0m"
16
- left_format = "%4d/%d: %-#{len + 11}s"
17
- spec_format = "%d specifications (%d requirements), %d failures, %d errors"
18
-
19
- specs.each_with_index do |spec, idx|
20
- print(left_format % [idx + 1, specs_size, spec])
21
-
22
- Open3.popen3(RUBY, spec) do |sin, sout, serr|
23
- out = sout.read.strip
24
- err = serr.read.strip
25
-
26
- # this is conventional, see spec/innate/state/fiber.rb for usage
27
- if out =~ /^Bacon::Error: (needed .*)/
28
- puts(yellow % ("%6s %s" % ['', $1]))
29
- else
30
- total = nil
31
-
32
- out.each_line do |line|
33
- scanned = line.scanf(spec_format)
34
-
35
- next unless scanned.size == 4
36
-
37
- total = Vector[*scanned]
38
- break
39
- end
40
-
41
- if total
42
- totals += total
43
- tests, assertions, failures, errors = total_array = total.to_a
44
-
45
- if tests > 0 && failures + errors == 0
46
- puts((green % "%6d passed") % tests)
47
- else
48
- some_failed = true
49
- puts(red % " failed")
50
- puts out unless out.empty?
51
- puts err unless err.empty?
52
- end
53
- else
54
- some_failed = true
55
- puts(red % " failed")
56
- puts out unless out.empty?
57
- puts err unless err.empty?
58
- end
59
- end
60
- end
61
- end
62
-
63
- total_color = some_failed ? red : green
64
- puts(total_color % (spec_format % totals.to_a))
65
- exit 1 if some_failed
66
- end