mod_spox 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (145) hide show
  1. data/CHANGELOG +31 -1
  2. data/LICENSE +674 -0
  3. data/README.rdoc +73 -0
  4. data/bin/mod_spox +28 -28
  5. data/data/mod_spox/extras/AOLSpeak.rb +2 -3
  6. data/data/mod_spox/extras/AutoKick.rb +10 -23
  7. data/data/mod_spox/extras/AutoMode.rb +12 -23
  8. data/data/mod_spox/extras/Bash.rb +55 -0
  9. data/data/mod_spox/extras/Bouncer.rb +85 -57
  10. data/data/mod_spox/extras/Bullshit.rb +1 -1
  11. data/data/mod_spox/extras/Bytes.rb +1 -2
  12. data/data/mod_spox/extras/Confess.rb +27 -29
  13. data/data/mod_spox/extras/DCC.rb +11 -20
  14. data/data/mod_spox/extras/DevWatch.rb +21 -23
  15. data/data/mod_spox/extras/DownForEveryoneOrJustMe.rb +47 -0
  16. data/data/mod_spox/extras/EightBall.rb +1 -1
  17. data/data/mod_spox/extras/FML.rb +35 -0
  18. data/data/mod_spox/extras/Headers.rb +31 -50
  19. data/data/mod_spox/extras/Karma.rb +81 -29
  20. data/data/mod_spox/extras/Logger.rb +2 -2
  21. data/data/mod_spox/extras/LolSpeak.rb +1 -2
  22. data/data/mod_spox/extras/PhpCli.rb +138 -8
  23. data/data/mod_spox/extras/PhpFuncLookup.rb +20 -23
  24. data/data/mod_spox/extras/Pinger.rb +1 -1
  25. data/data/mod_spox/extras/Quotes.rb +8 -10
  26. data/data/mod_spox/extras/RegexTracker.rb +2 -4
  27. data/data/mod_spox/extras/Roulette.rb +20 -27
  28. data/data/mod_spox/extras/RubyCli.rb +93 -0
  29. data/data/mod_spox/extras/Search.rb +17 -3
  30. data/data/mod_spox/extras/Seen.rb +150 -0
  31. data/data/mod_spox/extras/SlashdotHeadlineGenerator.rb +500 -0
  32. data/data/mod_spox/extras/Talk.rb +2 -4
  33. data/data/mod_spox/extras/Topten.rb +10 -12
  34. data/data/mod_spox/extras/TracTicket.rb +3 -5
  35. data/data/mod_spox/extras/Translate.rb +20 -22
  36. data/data/mod_spox/extras/Twitter.rb +118 -33
  37. data/data/mod_spox/extras/UrbanDictionary.rb +8 -17
  38. data/data/mod_spox/extras/Weather.rb +1 -2
  39. data/data/mod_spox/plugins/Authenticator.rb +93 -98
  40. data/data/mod_spox/plugins/Banner.rb +26 -56
  41. data/data/mod_spox/plugins/Helper.rb +5 -6
  42. data/data/mod_spox/plugins/Initializer.rb +4 -14
  43. data/data/mod_spox/plugins/Joiner.rb +1 -1
  44. data/data/mod_spox/plugins/Nicker.rb +13 -0
  45. data/data/mod_spox/plugins/Parter.rb +2 -2
  46. data/data/mod_spox/plugins/Permissions.rb +60 -0
  47. data/data/mod_spox/plugins/PluginLoader.rb +7 -12
  48. data/data/mod_spox/plugins/Ponger.rb +51 -0
  49. data/data/mod_spox/plugins/Quitter.rb +1 -2
  50. data/data/mod_spox/plugins/Servers.rb +57 -0
  51. data/data/mod_spox/plugins/Status.rb +3 -2
  52. data/data/mod_spox/plugins/Triggers.rb +9 -9
  53. data/lib/mod_spox/Bot.rb +109 -33
  54. data/lib/mod_spox/BotConfig.rb +2 -2
  55. data/lib/mod_spox/ConfigurationWizard.rb +12 -12
  56. data/lib/mod_spox/Database.rb +1 -4
  57. data/lib/mod_spox/Exceptions.rb +26 -0
  58. data/lib/mod_spox/Helpers.rb +29 -68
  59. data/lib/mod_spox/Loader.rb +23 -24
  60. data/lib/mod_spox/Logger.rb +19 -17
  61. data/lib/mod_spox/MessageFactory.rb +50 -24
  62. data/lib/mod_spox/Pipeline.rb +21 -7
  63. data/lib/mod_spox/Plugin.rb +27 -3
  64. data/lib/mod_spox/PluginManager.rb +28 -15
  65. data/lib/mod_spox/PriorityQueue.rb +69 -0
  66. data/lib/mod_spox/Socket.rb +93 -51
  67. data/lib/mod_spox/Sockets.rb +76 -63
  68. data/lib/mod_spox/Timer.rb +21 -141
  69. data/lib/mod_spox/Version.rb +14 -0
  70. data/lib/mod_spox/handlers/BadNick.rb +1 -1
  71. data/lib/mod_spox/handlers/Bounce.rb +5 -5
  72. data/lib/mod_spox/handlers/Created.rb +13 -5
  73. data/lib/mod_spox/handlers/Handler.rb +12 -3
  74. data/lib/mod_spox/handlers/Invite.rb +14 -8
  75. data/lib/mod_spox/handlers/Join.rb +24 -20
  76. data/lib/mod_spox/handlers/Kick.rb +22 -13
  77. data/lib/mod_spox/handlers/Mode.rb +42 -36
  78. data/lib/mod_spox/handlers/Motd.rb +4 -0
  79. data/lib/mod_spox/handlers/Names.rb +66 -39
  80. data/lib/mod_spox/handlers/Nick.rb +20 -14
  81. data/lib/mod_spox/handlers/Part.rb +25 -8
  82. data/lib/mod_spox/handlers/Ping.rb +11 -5
  83. data/lib/mod_spox/handlers/Pong.rb +9 -5
  84. data/lib/mod_spox/handlers/Privmsg.rb +25 -17
  85. data/lib/mod_spox/handlers/Quit.rb +13 -8
  86. data/lib/mod_spox/handlers/Topic.rb +4 -0
  87. data/lib/mod_spox/handlers/Welcome.rb +16 -24
  88. data/lib/mod_spox/handlers/Who.rb +64 -48
  89. data/lib/mod_spox/handlers/Whois.rb +92 -60
  90. data/lib/mod_spox/messages/incoming/Nick.rb +2 -2
  91. data/lib/mod_spox/messages/incoming/Privmsg.rb +1 -1
  92. data/lib/mod_spox/messages/incoming/Whois.rb +1 -0
  93. data/lib/mod_spox/messages/internal/EstablishConnection.rb +1 -1
  94. data/lib/mod_spox/messages/internal/PluginsReady.rb +10 -0
  95. data/lib/mod_spox/messages/internal/QueueSocket.rb +8 -0
  96. data/lib/mod_spox/messages/internal/Reconnect.rb +8 -0
  97. data/lib/mod_spox/messages/internal/UnqueueSocket.rb +8 -0
  98. data/lib/mod_spox/migrations/002_persistent_sigs.rb +14 -0
  99. data/lib/mod_spox/migrations/003_auth_restructure.rb +31 -0
  100. data/lib/mod_spox/migrations/004_mode_index_fix.rb +18 -0
  101. data/lib/mod_spox/migrations/005_nick_mode_nopark.rb +18 -0
  102. data/lib/mod_spox/models/Auth.rb +16 -46
  103. data/lib/mod_spox/models/AuthMask.rb +13 -0
  104. data/lib/mod_spox/models/Channel.rb +46 -27
  105. data/lib/mod_spox/models/Config.rb +10 -19
  106. data/lib/mod_spox/models/Group.rb +20 -8
  107. data/lib/mod_spox/models/Models.rb +1 -1
  108. data/lib/mod_spox/models/Nick.rb +105 -113
  109. data/lib/mod_spox/models/NickMode.rb +23 -9
  110. data/lib/mod_spox/models/Server.rb +12 -1
  111. data/lib/mod_spox/models/Setting.rb +12 -16
  112. data/lib/mod_spox/models/Signature.rb +28 -8
  113. data/tests/BotHolder.rb +24 -0
  114. data/tests/handlers/tc_BadNick.rb +21 -0
  115. data/tests/handlers/tc_Created.rb +24 -0
  116. data/tests/handlers/tc_Invite.rb +50 -0
  117. data/tests/handlers/tc_Join.rb +33 -0
  118. data/tests/handlers/tc_Kick.rb +32 -0
  119. data/tests/handlers/tc_Mode.rb +85 -0
  120. data/tests/handlers/tc_Names.rb +35 -0
  121. data/tests/handlers/tc_Nick.rb +55 -0
  122. data/tests/handlers/tc_Part.rb +44 -0
  123. data/tests/handlers/tc_Ping.rb +40 -0
  124. data/tests/handlers/tc_Pong.rb +28 -0
  125. data/tests/handlers/tc_Privmsg.rb +85 -0
  126. data/tests/handlers/tc_Quit.rb +40 -0
  127. data/tests/handlers/tc_Who.rb +50 -0
  128. data/tests/handlers/tc_Whois.rb +61 -0
  129. data/tests/models/tc_Auth.rb +34 -0
  130. data/tests/models/tc_Channel.rb +52 -0
  131. data/tests/models/tc_Config.rb +19 -0
  132. data/tests/models/tc_Nick.rb +142 -0
  133. data/tests/models/tc_NickMode.rb +40 -0
  134. data/tests/models/tc_Setting.rb +21 -0
  135. data/tests/models/tc_Signature.rb +14 -0
  136. data/tests/run_tests.rb +4 -0
  137. metadata +284 -212
  138. data/README +0 -36
  139. data/lib/mod_spox/Cache.rb +0 -57
  140. data/lib/mod_spox/Monitors.rb +0 -84
  141. data/lib/mod_spox/Pool.rb +0 -164
  142. data/lib/mod_spox/models/AuthGroup.rb +0 -16
  143. data/lib/mod_spox/models/ChannelMode.rb +0 -14
  144. data/lib/mod_spox/models/NickChannel.rb +0 -45
  145. data/lib/mod_spox/models/NickGroup.rb +0 -16
@@ -0,0 +1,40 @@
1
+ require "#{File.dirname(__FILE__)}/../BotHolder.rb"
2
+ require 'digest/sha1'
3
+
4
+ class TestNickModeModel < Test::Unit::TestCase
5
+ def setup
6
+ h = BotHolder.instance
7
+ @bot = h.bot
8
+ @nick = ModSpox::Models::Nick.find_or_create(:nick => 'foobar')
9
+ @channel = ModSpox::Models::Channel.find_or_create(:name => '#test')
10
+ @mode = ModSpox::Models::NickMode.find_or_create(:nick_id => @nick.pk, :channel_id => @channel.pk)
11
+ end
12
+
13
+ def teardown
14
+ end
15
+
16
+ def test_single_mode
17
+ @mode.set_mode('o')
18
+ assert(@mode.set?('o'))
19
+ @mode.unset_mode('o')
20
+ assert(!@mode.set?('o'))
21
+ end
22
+
23
+ def test_multiple_modes
24
+ @mode.set_mode('ov')
25
+ assert(@mode.set?('o'))
26
+ assert(@mode.set?('v'))
27
+ @mode.unset_mode('ov')
28
+ assert(!@mode.set?('o'))
29
+ assert(!@mode.set?('v'))
30
+ @mode.set_mode('o')
31
+ @mode.set_mode('v')
32
+ @mode.set_mode('v') # make sure this does nothing
33
+ assert(@mode.set?('o'))
34
+ assert(@mode.set?('v'))
35
+ @mode.clear_modes
36
+ assert(!@mode.set?('o'))
37
+ assert(!@mode.set?('v'))
38
+ end
39
+
40
+ end
@@ -0,0 +1,21 @@
1
+ require "#{File.dirname(__FILE__)}/../BotHolder.rb"
2
+ require 'digest/sha1'
3
+
4
+ class TestSettingModel < Test::Unit::TestCase
5
+ def setup
6
+ end
7
+
8
+ def teardown
9
+ end
10
+
11
+ def test_setting
12
+ ModSpox::Models::Setting.set('Foobar', [1,2])
13
+ s = ModSpox::Models::Setting.filter('Foobar').first
14
+ assert(s)
15
+ assert_equal('foobar', s.name)
16
+ assert_kind_of(Array, s.value)
17
+ assert_equal(2, s.value.size)
18
+ assert_equal(s, ModSpox::Models::Setting.val(:foobar))
19
+ end
20
+
21
+ end
@@ -0,0 +1,14 @@
1
+ require "#{File.dirname(__FILE__)}/../BotHolder.rb"
2
+ require 'digest/sha1'
3
+
4
+ class TestSignatureModel < Test::Unit::TestCase
5
+ def setup
6
+ end
7
+
8
+ def teardown
9
+ end
10
+
11
+ def test_signature
12
+ end
13
+
14
+ end
@@ -0,0 +1,4 @@
1
+ require 'test/unit'
2
+ Dir.new("#{File.dirname(__FILE__)}/handlers").each{|f|
3
+ require "#{File.dirname(__FILE__)}/handlers/#{f}" if f[-2..f.size] == 'rb'
4
+ }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mod_spox
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - spox
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-01-16 00:00:00 -08:00
12
+ date: 2009-06-28 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -22,247 +22,319 @@ dependencies:
22
22
  - !ruby/object:Gem::Version
23
23
  version: "0"
24
24
  version:
25
- description: mod_spox is a Ruby IRC bot that is easily modifiable and extensible
26
- email: spox@rubyforge.org
25
+ - !ruby/object:Gem::Dependency
26
+ name: ActionPool
27
+ type: :runtime
28
+ version_requirement:
29
+ version_requirements: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: "0"
34
+ version:
35
+ - !ruby/object:Gem::Dependency
36
+ name: ActionTimer
37
+ type: :runtime
38
+ version_requirement:
39
+ version_requirements: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ version: "0"
44
+ version:
45
+ - !ruby/object:Gem::Dependency
46
+ name: spockets
47
+ type: :runtime
48
+ version_requirement:
49
+ version_requirements: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: "0"
54
+ version:
55
+ description: mod_spox is a Ruby based IRC bot
56
+ email: spox@modspox.com
27
57
  executables:
28
58
  - mod_spox
29
59
  extensions: []
30
60
 
31
- extra_rdoc_files: []
32
-
61
+ extra_rdoc_files:
62
+ - README.rdoc
33
63
  files:
34
- - README
35
- - INSTALL
36
64
  - CHANGELOG
37
- - lib/mod_spox/models/ChannelMode.rb
38
- - lib/mod_spox/models/NickChannel.rb
39
- - lib/mod_spox/models/Setting.rb
40
- - lib/mod_spox/models/AuthGroup.rb
41
- - lib/mod_spox/models/Auth.rb
42
- - lib/mod_spox/models/NickGroup.rb
43
- - lib/mod_spox/models/Signature.rb
44
- - lib/mod_spox/models/Models.rb
45
- - lib/mod_spox/models/Trigger.rb
46
- - lib/mod_spox/models/Nick.rb
47
- - lib/mod_spox/models/Config.rb
48
- - lib/mod_spox/models/Server.rb
49
- - lib/mod_spox/models/Channel.rb
50
- - lib/mod_spox/models/NickMode.rb
51
- - lib/mod_spox/models/Group.rb
52
- - lib/mod_spox/handlers/LuserClient.rb
65
+ - INSTALL
66
+ - LICENSE
67
+ - README.rdoc
68
+ - bin/mod_spox
69
+ - data/mod_spox/extras/AOLSpeak.rb
70
+ - data/mod_spox/extras/AutoKick.rb
71
+ - data/mod_spox/extras/AutoMode.rb
72
+ - data/mod_spox/extras/AutoRejoin.rb
73
+ - data/mod_spox/extras/Bash.rb
74
+ - data/mod_spox/extras/Bouncer.rb
75
+ - data/mod_spox/extras/Bullshit.rb
76
+ - data/mod_spox/extras/Bytes.rb
77
+ - data/mod_spox/extras/Confess.rb
78
+ - data/mod_spox/extras/DCC.rb
79
+ - data/mod_spox/extras/DevWatch.rb
80
+ - data/mod_spox/extras/DownForEveryoneOrJustMe.rb
81
+ - data/mod_spox/extras/EightBall.rb
82
+ - data/mod_spox/extras/FML.rb
83
+ - data/mod_spox/extras/FloodKicker.rb
84
+ - data/mod_spox/extras/GoogleIt.rb
85
+ - data/mod_spox/extras/Headers.rb
86
+ - data/mod_spox/extras/Karma.rb
87
+ - data/mod_spox/extras/Logger.rb
88
+ - data/mod_spox/extras/LolSpeak.rb
89
+ - data/mod_spox/extras/NickServ.rb
90
+ - data/mod_spox/extras/PhpCli.rb
91
+ - data/mod_spox/extras/PhpFuncLookup.rb
92
+ - data/mod_spox/extras/Pinger.rb
93
+ - data/mod_spox/extras/Quotes.rb
94
+ - data/mod_spox/extras/RegexTracker.rb
95
+ - data/mod_spox/extras/Roulette.rb
96
+ - data/mod_spox/extras/RubyCli.rb
97
+ - data/mod_spox/extras/Search.rb
98
+ - data/mod_spox/extras/Seen.rb
99
+ - data/mod_spox/extras/Slashdot.rb
100
+ - data/mod_spox/extras/SlashdotHeadlineGenerator.rb
101
+ - data/mod_spox/extras/Talk.rb
102
+ - data/mod_spox/extras/Topten.rb
103
+ - data/mod_spox/extras/TracTicket.rb
104
+ - data/mod_spox/extras/Translate.rb
105
+ - data/mod_spox/extras/Twitter.rb
106
+ - data/mod_spox/extras/UrbanDictionary.rb
107
+ - data/mod_spox/extras/Weather.rb
108
+ - data/mod_spox/plugins/Authenticator.rb
109
+ - data/mod_spox/plugins/Banner.rb
110
+ - data/mod_spox/plugins/BotNick.rb
111
+ - data/mod_spox/plugins/Helper.rb
112
+ - data/mod_spox/plugins/Initializer.rb
113
+ - data/mod_spox/plugins/Joiner.rb
114
+ - data/mod_spox/plugins/Nicker.rb
115
+ - data/mod_spox/plugins/Parter.rb
116
+ - data/mod_spox/plugins/Permissions.rb
117
+ - data/mod_spox/plugins/PluginLoader.rb
118
+ - data/mod_spox/plugins/Ponger.rb
119
+ - data/mod_spox/plugins/PoolConfig.rb
120
+ - data/mod_spox/plugins/Quitter.rb
121
+ - data/mod_spox/plugins/Servers.rb
122
+ - data/mod_spox/plugins/Status.rb
123
+ - data/mod_spox/plugins/Triggers.rb
124
+ - lib/mod_spox/Action.rb
125
+ - lib/mod_spox/BaseConfig.rb
126
+ - lib/mod_spox/Bot.rb
127
+ - lib/mod_spox/BotConfig.rb
128
+ - lib/mod_spox/ConfigurationWizard.rb
129
+ - lib/mod_spox/Database.rb
130
+ - lib/mod_spox/Exceptions.rb
131
+ - lib/mod_spox/Helpers.rb
132
+ - lib/mod_spox/Loader.rb
133
+ - lib/mod_spox/Logger.rb
134
+ - lib/mod_spox/MessageFactory.rb
135
+ - lib/mod_spox/Pipeline.rb
136
+ - lib/mod_spox/Plugin.rb
137
+ - lib/mod_spox/PluginHolder.rb
138
+ - lib/mod_spox/PluginManager.rb
139
+ - lib/mod_spox/PriorityQueue.rb
140
+ - lib/mod_spox/Socket.rb
141
+ - lib/mod_spox/Sockets.rb
142
+ - lib/mod_spox/Timer.rb
143
+ - lib/mod_spox/Version.rb
144
+ - lib/mod_spox/handlers/BadNick.rb
145
+ - lib/mod_spox/handlers/Bounce.rb
146
+ - lib/mod_spox/handlers/Created.rb
53
147
  - lib/mod_spox/handlers/Handler.rb
54
- - lib/mod_spox/handlers/Topic.rb
55
- - lib/mod_spox/handlers/Notice.rb
148
+ - lib/mod_spox/handlers/Invite.rb
149
+ - lib/mod_spox/handlers/Join.rb
56
150
  - lib/mod_spox/handlers/Kick.rb
57
- - lib/mod_spox/handlers/Quit.rb
58
- - lib/mod_spox/handlers/Nick.rb
59
- - lib/mod_spox/handlers/Mode.rb
60
- - lib/mod_spox/handlers/Privmsg.rb
61
- - lib/mod_spox/handlers/NickInUse.rb
62
- - lib/mod_spox/handlers/Whois.rb
63
151
  - lib/mod_spox/handlers/LuserChannels.rb
152
+ - lib/mod_spox/handlers/LuserClient.rb
153
+ - lib/mod_spox/handlers/LuserMe.rb
64
154
  - lib/mod_spox/handlers/LuserOp.rb
65
- - lib/mod_spox/handlers/Welcome.rb
66
- - lib/mod_spox/handlers/BadNick.rb
67
- - lib/mod_spox/handlers/YourHost.rb
68
- - lib/mod_spox/handlers/Ping.rb
69
- - lib/mod_spox/handlers/Who.rb
70
- - lib/mod_spox/handlers/Invite.rb
71
- - lib/mod_spox/handlers/Join.rb
155
+ - lib/mod_spox/handlers/LuserUnknown.rb
156
+ - lib/mod_spox/handlers/Mode.rb
157
+ - lib/mod_spox/handlers/Motd.rb
72
158
  - lib/mod_spox/handlers/MyInfo.rb
73
159
  - lib/mod_spox/handlers/Names.rb
74
- - lib/mod_spox/handlers/Motd.rb
75
- - lib/mod_spox/handlers/Pong.rb
76
- - lib/mod_spox/handlers/Created.rb
160
+ - lib/mod_spox/handlers/Nick.rb
161
+ - lib/mod_spox/handlers/NickInUse.rb
162
+ - lib/mod_spox/handlers/Notice.rb
77
163
  - lib/mod_spox/handlers/Part.rb
78
- - lib/mod_spox/handlers/LuserUnknown.rb
79
- - lib/mod_spox/handlers/Bounce.rb
80
- - lib/mod_spox/handlers/LuserMe.rb
81
- - lib/mod_spox/messages/incoming/Notice.rb
82
- - lib/mod_spox/messages/incoming/Topic.rb
83
- - lib/mod_spox/messages/incoming/Message.rb
84
- - lib/mod_spox/messages/incoming/Kick.rb
85
- - lib/mod_spox/messages/incoming/Quit.rb
86
- - lib/mod_spox/messages/incoming/Nick.rb
87
- - lib/mod_spox/messages/incoming/Privmsg.rb
88
- - lib/mod_spox/messages/incoming/Mode.rb
89
- - lib/mod_spox/messages/incoming/LuserClient.rb
90
- - lib/mod_spox/messages/incoming/NickInUse.rb
91
- - lib/mod_spox/messages/incoming/Whois.rb
92
- - lib/mod_spox/messages/incoming/LuserChannels.rb
93
- - lib/mod_spox/messages/incoming/LuserOp.rb
94
- - lib/mod_spox/messages/incoming/TopicInfo.rb
95
- - lib/mod_spox/messages/incoming/Welcome.rb
164
+ - lib/mod_spox/handlers/Ping.rb
165
+ - lib/mod_spox/handlers/Pong.rb
166
+ - lib/mod_spox/handlers/Privmsg.rb
167
+ - lib/mod_spox/handlers/Quit.rb
168
+ - lib/mod_spox/handlers/Topic.rb
169
+ - lib/mod_spox/handlers/Welcome.rb
170
+ - lib/mod_spox/handlers/Who.rb
171
+ - lib/mod_spox/handlers/Whois.rb
172
+ - lib/mod_spox/handlers/YourHost.rb
173
+ - lib/mod_spox/messages/Messages.rb
96
174
  - lib/mod_spox/messages/incoming/BadNick.rb
97
- - lib/mod_spox/messages/incoming/YourHost.rb
98
- - lib/mod_spox/messages/incoming/Ping.rb
99
- - lib/mod_spox/messages/incoming/Who.rb
175
+ - lib/mod_spox/messages/incoming/Bounce.rb
176
+ - lib/mod_spox/messages/incoming/Created.rb
100
177
  - lib/mod_spox/messages/incoming/Invite.rb
101
178
  - lib/mod_spox/messages/incoming/Join.rb
179
+ - lib/mod_spox/messages/incoming/Kick.rb
180
+ - lib/mod_spox/messages/incoming/LuserChannels.rb
181
+ - lib/mod_spox/messages/incoming/LuserClient.rb
182
+ - lib/mod_spox/messages/incoming/LuserMe.rb
183
+ - lib/mod_spox/messages/incoming/LuserOp.rb
184
+ - lib/mod_spox/messages/incoming/LuserUnknown.rb
185
+ - lib/mod_spox/messages/incoming/Message.rb
186
+ - lib/mod_spox/messages/incoming/Mode.rb
187
+ - lib/mod_spox/messages/incoming/Motd.rb
102
188
  - lib/mod_spox/messages/incoming/MyInfo.rb
103
189
  - lib/mod_spox/messages/incoming/Names.rb
104
- - lib/mod_spox/messages/incoming/Motd.rb
105
- - lib/mod_spox/messages/incoming/Pong.rb
106
- - lib/mod_spox/messages/incoming/Created.rb
190
+ - lib/mod_spox/messages/incoming/Nick.rb
191
+ - lib/mod_spox/messages/incoming/NickInUse.rb
192
+ - lib/mod_spox/messages/incoming/Notice.rb
107
193
  - lib/mod_spox/messages/incoming/Part.rb
108
- - lib/mod_spox/messages/incoming/LuserUnknown.rb
109
- - lib/mod_spox/messages/incoming/Bounce.rb
110
- - lib/mod_spox/messages/incoming/LuserMe.rb
194
+ - lib/mod_spox/messages/incoming/Ping.rb
195
+ - lib/mod_spox/messages/incoming/Pong.rb
196
+ - lib/mod_spox/messages/incoming/Privmsg.rb
197
+ - lib/mod_spox/messages/incoming/Quit.rb
198
+ - lib/mod_spox/messages/incoming/Topic.rb
199
+ - lib/mod_spox/messages/incoming/TopicInfo.rb
200
+ - lib/mod_spox/messages/incoming/Welcome.rb
201
+ - lib/mod_spox/messages/incoming/Who.rb
202
+ - lib/mod_spox/messages/incoming/Whois.rb
203
+ - lib/mod_spox/messages/incoming/YourHost.rb
204
+ - lib/mod_spox/messages/internal/BotInitialized.rb
205
+ - lib/mod_spox/messages/internal/ChangeNick.rb
206
+ - lib/mod_spox/messages/internal/Connected.rb
207
+ - lib/mod_spox/messages/internal/ConnectionFailed.rb
208
+ - lib/mod_spox/messages/internal/DCCListener.rb
209
+ - lib/mod_spox/messages/internal/DCCRequest.rb
210
+ - lib/mod_spox/messages/internal/DCCSocket.rb
211
+ - lib/mod_spox/messages/internal/Disconnected.rb
212
+ - lib/mod_spox/messages/internal/Disconnecting.rb
213
+ - lib/mod_spox/messages/internal/EstablishConnection.rb
214
+ - lib/mod_spox/messages/internal/HaltBot.rb
215
+ - lib/mod_spox/messages/internal/NickRequest.rb
216
+ - lib/mod_spox/messages/internal/NickResponse.rb
217
+ - lib/mod_spox/messages/internal/PluginLoadRequest.rb
218
+ - lib/mod_spox/messages/internal/PluginLoadResponse.rb
219
+ - lib/mod_spox/messages/internal/PluginModuleRequest.rb
220
+ - lib/mod_spox/messages/internal/PluginModuleResponse.rb
221
+ - lib/mod_spox/messages/internal/PluginReload.rb
222
+ - lib/mod_spox/messages/internal/PluginRequest.rb
223
+ - lib/mod_spox/messages/internal/PluginResponse.rb
224
+ - lib/mod_spox/messages/internal/PluginUnloadRequest.rb
225
+ - lib/mod_spox/messages/internal/PluginUnloadResponse.rb
226
+ - lib/mod_spox/messages/internal/PluginsReady.rb
227
+ - lib/mod_spox/messages/internal/QueueSocket.rb
228
+ - lib/mod_spox/messages/internal/Reconnect.rb
229
+ - lib/mod_spox/messages/internal/Request.rb
230
+ - lib/mod_spox/messages/internal/Response.rb
231
+ - lib/mod_spox/messages/internal/Shutdown.rb
232
+ - lib/mod_spox/messages/internal/SignaturesUpdate.rb
233
+ - lib/mod_spox/messages/internal/StatusRequest.rb
234
+ - lib/mod_spox/messages/internal/StatusResponse.rb
235
+ - lib/mod_spox/messages/internal/TimerAdd.rb
236
+ - lib/mod_spox/messages/internal/TimerClear.rb
237
+ - lib/mod_spox/messages/internal/TimerRemove.rb
238
+ - lib/mod_spox/messages/internal/TimerResponse.rb
239
+ - lib/mod_spox/messages/internal/TriggersUpdate.rb
240
+ - lib/mod_spox/messages/internal/UnqueueSocket.rb
241
+ - lib/mod_spox/messages/outgoing/Admin.rb
242
+ - lib/mod_spox/messages/outgoing/Away.rb
111
243
  - lib/mod_spox/messages/outgoing/ChannelMode.rb
112
- - lib/mod_spox/messages/outgoing/Summon.rb
113
- - lib/mod_spox/messages/outgoing/User.rb
114
- - lib/mod_spox/messages/outgoing/Notice.rb
244
+ - lib/mod_spox/messages/outgoing/Connect.rb
245
+ - lib/mod_spox/messages/outgoing/Die.rb
246
+ - lib/mod_spox/messages/outgoing/Info.rb
247
+ - lib/mod_spox/messages/outgoing/Invite.rb
248
+ - lib/mod_spox/messages/outgoing/Ison.rb
249
+ - lib/mod_spox/messages/outgoing/Join.rb
115
250
  - lib/mod_spox/messages/outgoing/Kick.rb
116
- - lib/mod_spox/messages/outgoing/Quit.rb
117
- - lib/mod_spox/messages/outgoing/UserMode.rb
251
+ - lib/mod_spox/messages/outgoing/Kill.rb
252
+ - lib/mod_spox/messages/outgoing/Links.rb
253
+ - lib/mod_spox/messages/outgoing/List.rb
254
+ - lib/mod_spox/messages/outgoing/Lusers.rb
255
+ - lib/mod_spox/messages/outgoing/Motd.rb
256
+ - lib/mod_spox/messages/outgoing/Names.rb
118
257
  - lib/mod_spox/messages/outgoing/Nick.rb
119
- - lib/mod_spox/messages/outgoing/Version.rb
120
- - lib/mod_spox/messages/outgoing/Privmsg.rb
121
- - lib/mod_spox/messages/outgoing/Raw.rb
122
- - lib/mod_spox/messages/outgoing/Connect.rb
123
- - lib/mod_spox/messages/outgoing/Ping.rb
124
- - lib/mod_spox/messages/outgoing/Time.rb
125
- - lib/mod_spox/messages/outgoing/Away.rb
126
- - lib/mod_spox/messages/outgoing/Pong.rb
258
+ - lib/mod_spox/messages/outgoing/Notice.rb
127
259
  - lib/mod_spox/messages/outgoing/Oper.rb
128
- - lib/mod_spox/messages/outgoing/Squit.rb
260
+ - lib/mod_spox/messages/outgoing/Part.rb
129
261
  - lib/mod_spox/messages/outgoing/Pass.rb
130
- - lib/mod_spox/messages/outgoing/WhoWas.rb
262
+ - lib/mod_spox/messages/outgoing/Ping.rb
263
+ - lib/mod_spox/messages/outgoing/Pong.rb
264
+ - lib/mod_spox/messages/outgoing/Privmsg.rb
265
+ - lib/mod_spox/messages/outgoing/Quit.rb
266
+ - lib/mod_spox/messages/outgoing/Raw.rb
131
267
  - lib/mod_spox/messages/outgoing/Rehash.rb
132
- - lib/mod_spox/messages/outgoing/Lusers.rb
133
- - lib/mod_spox/messages/outgoing/Topic.rb
134
- - lib/mod_spox/messages/outgoing/Links.rb
135
268
  - lib/mod_spox/messages/outgoing/Restart.rb
136
- - lib/mod_spox/messages/outgoing/Admin.rb
137
- - lib/mod_spox/messages/outgoing/Squery.rb
138
- - lib/mod_spox/messages/outgoing/Whois.rb
269
+ - lib/mod_spox/messages/outgoing/ServList.rb
139
270
  - lib/mod_spox/messages/outgoing/Simple.rb
140
- - lib/mod_spox/messages/outgoing/Kill.rb
141
- - lib/mod_spox/messages/outgoing/Info.rb
142
- - lib/mod_spox/messages/outgoing/Who.rb
143
- - lib/mod_spox/messages/outgoing/Invite.rb
271
+ - lib/mod_spox/messages/outgoing/Squery.rb
272
+ - lib/mod_spox/messages/outgoing/Squit.rb
144
273
  - lib/mod_spox/messages/outgoing/Stats.rb
274
+ - lib/mod_spox/messages/outgoing/Summon.rb
275
+ - lib/mod_spox/messages/outgoing/Time.rb
276
+ - lib/mod_spox/messages/outgoing/Topic.rb
145
277
  - lib/mod_spox/messages/outgoing/Trace.rb
146
- - lib/mod_spox/messages/outgoing/Join.rb
147
- - lib/mod_spox/messages/outgoing/Die.rb
148
- - lib/mod_spox/messages/outgoing/Users.rb
149
- - lib/mod_spox/messages/outgoing/Motd.rb
150
- - lib/mod_spox/messages/outgoing/Names.rb
151
278
  - lib/mod_spox/messages/outgoing/Unaway.rb
152
- - lib/mod_spox/messages/outgoing/Part.rb
153
- - lib/mod_spox/messages/outgoing/Ison.rb
154
- - lib/mod_spox/messages/outgoing/ServList.rb
155
- - lib/mod_spox/messages/outgoing/List.rb
279
+ - lib/mod_spox/messages/outgoing/User.rb
156
280
  - lib/mod_spox/messages/outgoing/UserHost.rb
157
- - lib/mod_spox/messages/internal/PluginLoadResponse.rb
158
- - lib/mod_spox/messages/internal/SignaturesUpdate.rb
159
- - lib/mod_spox/messages/internal/TriggersUpdate.rb
160
- - lib/mod_spox/messages/internal/StatusRequest.rb
161
- - lib/mod_spox/messages/internal/NickRequest.rb
162
- - lib/mod_spox/messages/internal/Response.rb
163
- - lib/mod_spox/messages/internal/EstablishConnection.rb
164
- - lib/mod_spox/messages/internal/DCCListener.rb
165
- - lib/mod_spox/messages/internal/Connected.rb
166
- - lib/mod_spox/messages/internal/DCCRequest.rb
167
- - lib/mod_spox/messages/internal/DCCSocket.rb
168
- - lib/mod_spox/messages/internal/NickResponse.rb
169
- - lib/mod_spox/messages/internal/ConnectionFailed.rb
170
- - lib/mod_spox/messages/internal/PluginRequest.rb
171
- - lib/mod_spox/messages/internal/BotInitialized.rb
172
- - lib/mod_spox/messages/internal/PluginModuleRequest.rb
173
- - lib/mod_spox/messages/internal/PluginResponse.rb
174
- - lib/mod_spox/messages/internal/PluginUnloadResponse.rb
175
- - lib/mod_spox/messages/internal/PluginModuleResponse.rb
176
- - lib/mod_spox/messages/internal/PluginReload.rb
177
- - lib/mod_spox/messages/internal/Disconnecting.rb
178
- - lib/mod_spox/messages/internal/TimerClear.rb
179
- - lib/mod_spox/messages/internal/Request.rb
180
- - lib/mod_spox/messages/internal/TimerAdd.rb
181
- - lib/mod_spox/messages/internal/ChangeNick.rb
182
- - lib/mod_spox/messages/internal/HaltBot.rb
183
- - lib/mod_spox/messages/internal/TimerRemove.rb
184
- - lib/mod_spox/messages/internal/TimerResponse.rb
185
- - lib/mod_spox/messages/internal/Disconnected.rb
186
- - lib/mod_spox/messages/internal/StatusResponse.rb
187
- - lib/mod_spox/messages/internal/PluginLoadRequest.rb
188
- - lib/mod_spox/messages/internal/PluginUnloadRequest.rb
189
- - lib/mod_spox/messages/internal/Shutdown.rb
190
- - lib/mod_spox/messages/Messages.rb
281
+ - lib/mod_spox/messages/outgoing/UserMode.rb
282
+ - lib/mod_spox/messages/outgoing/Users.rb
283
+ - lib/mod_spox/messages/outgoing/Version.rb
284
+ - lib/mod_spox/messages/outgoing/Who.rb
285
+ - lib/mod_spox/messages/outgoing/WhoWas.rb
286
+ - lib/mod_spox/messages/outgoing/Whois.rb
191
287
  - lib/mod_spox/migrations/001_initialize_models.rb
192
- - lib/mod_spox/Exceptions.rb
193
- - lib/mod_spox/Action.rb
194
- - lib/mod_spox/Logger.rb
195
- - lib/mod_spox/Timer.rb
288
+ - lib/mod_spox/migrations/002_persistent_sigs.rb
289
+ - lib/mod_spox/migrations/003_auth_restructure.rb
290
+ - lib/mod_spox/migrations/004_mode_index_fix.rb
291
+ - lib/mod_spox/migrations/005_nick_mode_nopark.rb
292
+ - lib/mod_spox/models/Auth.rb
293
+ - lib/mod_spox/models/AuthMask.rb
294
+ - lib/mod_spox/models/Channel.rb
295
+ - lib/mod_spox/models/Config.rb
296
+ - lib/mod_spox/models/Group.rb
297
+ - lib/mod_spox/models/Models.rb
298
+ - lib/mod_spox/models/Nick.rb
299
+ - lib/mod_spox/models/NickMode.rb
300
+ - lib/mod_spox/models/Server.rb
301
+ - lib/mod_spox/models/Setting.rb
302
+ - lib/mod_spox/models/Signature.rb
303
+ - lib/mod_spox/models/Trigger.rb
196
304
  - lib/mod_spox/rfc2812.rb
197
- - lib/mod_spox/Bot.rb
198
- - lib/mod_spox/PluginManager.rb
199
- - lib/mod_spox/Socket.rb
200
- - lib/mod_spox/Database.rb
201
- - lib/mod_spox/Cache.rb
202
- - lib/mod_spox/ConfigurationWizard.rb
203
- - lib/mod_spox/PluginHolder.rb
204
- - lib/mod_spox/Plugin.rb
205
- - lib/mod_spox/BaseConfig.rb
206
- - lib/mod_spox/Helpers.rb
207
- - lib/mod_spox/Pipeline.rb
208
- - lib/mod_spox/Loader.rb
209
- - lib/mod_spox/Pool.rb
210
- - lib/mod_spox/Monitors.rb
211
- - lib/mod_spox/BotConfig.rb
212
- - lib/mod_spox/Sockets.rb
213
- - lib/mod_spox/MessageFactory.rb
214
- - bin/mod_spox
215
- - data/mod_spox/plugins/PoolConfig.rb
216
- - data/mod_spox/plugins/Parter.rb
217
- - data/mod_spox/plugins/Quitter.rb
218
- - data/mod_spox/plugins/Helper.rb
219
- - data/mod_spox/plugins/Initializer.rb
220
- - data/mod_spox/plugins/Banner.rb
221
- - data/mod_spox/plugins/PluginLoader.rb
222
- - data/mod_spox/plugins/Joiner.rb
223
- - data/mod_spox/plugins/Triggers.rb
224
- - data/mod_spox/plugins/BotNick.rb
225
- - data/mod_spox/plugins/Authenticator.rb
226
- - data/mod_spox/plugins/Ponger.rb
227
- - data/mod_spox/plugins/Status.rb
228
- - data/mod_spox/extras/AutoRejoin.rb
229
- - data/mod_spox/extras/AutoMode.rb
230
- - data/mod_spox/extras/RegexTracker.rb
231
- - data/mod_spox/extras/Logger.rb
232
- - data/mod_spox/extras/PhpCli.rb
233
- - data/mod_spox/extras/Quotes.rb
234
- - data/mod_spox/extras/Slashdot.rb
235
- - data/mod_spox/extras/Pinger.rb
236
- - data/mod_spox/extras/PhpFuncLookup.rb
237
- - data/mod_spox/extras/Bullshit.rb
238
- - data/mod_spox/extras/Bytes.rb
239
- - data/mod_spox/extras/DCC.rb
240
- - data/mod_spox/extras/Talk.rb
241
- - data/mod_spox/extras/EightBall.rb
242
- - data/mod_spox/extras/Karma.rb
243
- - data/mod_spox/extras/TracTicket.rb
244
- - data/mod_spox/extras/Bouncer.rb
245
- - data/mod_spox/extras/Translate.rb
246
- - data/mod_spox/extras/AOLSpeak.rb
247
- - data/mod_spox/extras/UrbanDictionary.rb
248
- - data/mod_spox/extras/Weather.rb
249
- - data/mod_spox/extras/Confess.rb
250
- - data/mod_spox/extras/Roulette.rb
251
- - data/mod_spox/extras/DevWatch.rb
252
- - data/mod_spox/extras/Search.rb
253
- - data/mod_spox/extras/Topten.rb
254
- - data/mod_spox/extras/LolSpeak.rb
255
- - data/mod_spox/extras/AutoKick.rb
256
- - data/mod_spox/extras/Headers.rb
257
- - data/mod_spox/extras/FloodKicker.rb
258
- - data/mod_spox/extras/NickServ.rb
259
- - data/mod_spox/extras/GoogleIt.rb
260
- - data/mod_spox/extras/Twitter.rb
261
- has_rdoc: false
305
+ - tests/BotHolder.rb
306
+ - tests/handlers/tc_BadNick.rb
307
+ - tests/handlers/tc_Created.rb
308
+ - tests/handlers/tc_Invite.rb
309
+ - tests/handlers/tc_Join.rb
310
+ - tests/handlers/tc_Kick.rb
311
+ - tests/handlers/tc_Mode.rb
312
+ - tests/handlers/tc_Names.rb
313
+ - tests/handlers/tc_Nick.rb
314
+ - tests/handlers/tc_Part.rb
315
+ - tests/handlers/tc_Ping.rb
316
+ - tests/handlers/tc_Pong.rb
317
+ - tests/handlers/tc_Privmsg.rb
318
+ - tests/handlers/tc_Quit.rb
319
+ - tests/handlers/tc_Who.rb
320
+ - tests/handlers/tc_Whois.rb
321
+ - tests/models/tc_Auth.rb
322
+ - tests/models/tc_Channel.rb
323
+ - tests/models/tc_Config.rb
324
+ - tests/models/tc_Nick.rb
325
+ - tests/models/tc_NickMode.rb
326
+ - tests/models/tc_Setting.rb
327
+ - tests/models/tc_Signature.rb
328
+ - tests/run_tests.rb
329
+ has_rdoc: true
262
330
  homepage: http://dev.modspox.com
263
331
  post_install_message:
264
- rdoc_options: []
265
-
332
+ rdoc_options:
333
+ - --title
334
+ - mod_spox
335
+ - --main
336
+ - README.rdoc
337
+ - --line-numbers
266
338
  require_paths:
267
339
  - lib
268
340
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -277,12 +349,12 @@ required_rubygems_version: !ruby/object:Gem::Requirement
277
349
  - !ruby/object:Gem::Version
278
350
  version: "0"
279
351
  version:
280
- requirements:
281
- - sequel, espace-neverblock
352
+ requirements: []
353
+
282
354
  rubyforge_project: modspox
283
- rubygems_version: 1.3.0
355
+ rubygems_version: 1.3.1
284
356
  signing_key:
285
357
  specification_version: 2
286
- summary: The mod_spox IRC robot
358
+ summary: mod_spox IRC bot
287
359
  test_files: []
288
360