ircguerilla-irc 1.2.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/irc/client/command_handler.rb +2 -2
- data/lib/irc/client/connected_state.rb +53 -8
- data/lib/irc/client/connection.rb +41 -6
- data/lib/irc/client/connection_listener.rb +26 -11
- data/lib/irc/client/connection_state.rb +15 -2
- data/lib/irc/client/context.rb +49 -11
- data/lib/irc/client/disconnected_state.rb +28 -16
- data/lib/irc/client/message_handler.rb +40 -16
- data/lib/irc/client/registered_state.rb +18 -0
- data/lib/irc/client/unregistered_state.rb +51 -16
- data/lib/irc/commands/nick_command.rb +14 -0
- data/lib/irc/messages/error_join_message.rb +1 -1
- data/lib/irc/messages/error_message.rb +53 -24
- data/lib/irc/messages/error_nick_name_in_use_message.rb +70 -0
- data/lib/irc/messages/factory.rb +16 -0
- data/lib/irc/messages/isupport_message.rb +86 -0
- data/lib/irc/messages/kick_message.rb +114 -0
- data/lib/irc/messages/message.rb +21 -1
- data/lib/irc/messages/nick_message.rb +17 -2
- data/lib/irc/messages/pong_message.rb +1 -1
- data/lib/irc/messages/welcome_message.rb +72 -0
- data/lib/irc/util/color.rb +77 -0
- data/lib/irc/util/nick_generator.rb +58 -0
- data/test/functional/irc/client/connection_test.rb +34 -1
- data/test/functional/irc/client/context_test.rb +5 -2
- data/test/mocks/test/irc/client/connection.rb +128 -0
- data/test/mocks/test/irc/client/disconnected_state.rb +44 -0
- data/test/test_helper.rb +1 -1
- data/test/unit/irc/client/command_handler_test.rb +12 -12
- data/test/unit/irc/client/message_handler_test.rb +136 -0
- data/test/unit/irc/commands/command_test.rb +87 -84
- data/test/unit/irc/commands/join_command_test.rb +3 -1
- data/test/unit/irc/commands/nick_command_test.rb +7 -1
- data/test/unit/irc/commands/ping_command_test.rb +12 -16
- data/test/unit/irc/commands/pong_command_test.rb +2 -1
- data/test/unit/irc/messages/error_join_message_test.rb +23 -2
- data/test/unit/irc/messages/error_message_test.rb +56 -0
- data/test/unit/irc/messages/error_nick_name_in_use_message_test.rb +56 -0
- data/test/unit/irc/messages/factory_test.rb +25 -0
- data/test/unit/irc/messages/isupport_message_test.rb +138 -0
- data/test/unit/irc/messages/join_message_test.rb +22 -1
- data/test/unit/irc/messages/kick_message_test.rb +76 -0
- data/test/unit/irc/messages/message_test.rb +33 -0
- data/test/unit/irc/messages/nick_message_test.rb +22 -1
- data/test/unit/irc/messages/notice_message_test.rb +22 -1
- data/test/unit/irc/messages/part_message_test.rb +22 -1
- data/test/unit/irc/messages/ping_message_test.rb +21 -1
- data/test/unit/irc/messages/pong_message_test.rb +21 -1
- data/test/unit/irc/messages/private_message_test.rb +22 -1
- data/test/unit/irc/messages/welcome_message_test.rb +59 -0
- data/test/unit/irc/util/color_test.rb +97 -0
- data/test/unit/irc/util/nick_generator_test.rb +52 -0
- metadata +69 -52
@@ -24,10 +24,16 @@
|
|
24
24
|
# $Id: ping_message_test.rb 93 2006-08-13 21:30:53Z roman $
|
25
25
|
#
|
26
26
|
require 'irc/messages/invalid_message'
|
27
|
+
require 'irc/messages/message_test'
|
27
28
|
require 'irc/messages/ping_message'
|
28
29
|
require 'test/unit'
|
29
30
|
|
30
|
-
class IRC::Messages::PingMessageTest <
|
31
|
+
class IRC::Messages::PingMessageTest < IRC::Messages::MessageTest
|
32
|
+
|
33
|
+
# This method gets called when a ping message was received from the server.
|
34
|
+
def on_ping(connection, servers)
|
35
|
+
@servers = servers
|
36
|
+
end
|
31
37
|
|
32
38
|
def test_invalid_messages
|
33
39
|
assert_raise(IRC::Messages::InvalidMessage) { IRC::Messages::PingMessage.new("") }
|
@@ -54,4 +60,18 @@ class IRC::Messages::PingMessageTest < Test::Unit::TestCase
|
|
54
60
|
|
55
61
|
end
|
56
62
|
|
63
|
+
def test_handle
|
64
|
+
|
65
|
+
# Simulate a connection registration.
|
66
|
+
connection.add_connection_listener(self)
|
67
|
+
connection.connect(server)
|
68
|
+
connection.register
|
69
|
+
|
70
|
+
message = IRC::Messages::PingMessage.new("PING tolsun.oulu.fi irc.efnet.pl")
|
71
|
+
message.handle(connection.context)
|
72
|
+
|
73
|
+
assert_equal ["tolsun.oulu.fi", "irc.efnet.pl"], @servers
|
74
|
+
|
75
|
+
end
|
76
|
+
|
57
77
|
end
|
@@ -24,10 +24,16 @@
|
|
24
24
|
# $Id: pong_message_test.rb 93 2006-08-13 21:30:53Z roman $
|
25
25
|
#
|
26
26
|
require 'irc/messages/invalid_message'
|
27
|
+
require 'irc/messages/message_test'
|
27
28
|
require 'irc/messages/pong_message'
|
28
29
|
require 'test/unit'
|
29
30
|
|
30
|
-
class IRC::Messages::PongMessageTest <
|
31
|
+
class IRC::Messages::PongMessageTest < IRC::Messages::MessageTest
|
32
|
+
|
33
|
+
# This method gets called when a pong message was received from the server.
|
34
|
+
def on_pong(connection, daemons)
|
35
|
+
@daemons = daemons
|
36
|
+
end
|
31
37
|
|
32
38
|
def test_invalid_messages
|
33
39
|
assert_raise(IRC::Messages::InvalidMessage) { IRC::Messages::PongMessage.new("") }
|
@@ -54,4 +60,18 @@ class IRC::Messages::PongMessageTest < Test::Unit::TestCase
|
|
54
60
|
|
55
61
|
end
|
56
62
|
|
63
|
+
def test_handle
|
64
|
+
|
65
|
+
# Simulate a connection registration.
|
66
|
+
connection.add_connection_listener(self)
|
67
|
+
connection.connect(server)
|
68
|
+
connection.register
|
69
|
+
|
70
|
+
message = IRC::Messages::PongMessage.new("PONG csd.bu.edu tolsun.oulu.fi")
|
71
|
+
message.handle(connection.context)
|
72
|
+
|
73
|
+
assert_equal ["csd.bu.edu", "tolsun.oulu.fi"], @daemons
|
74
|
+
|
75
|
+
end
|
76
|
+
|
57
77
|
end
|
@@ -24,10 +24,16 @@
|
|
24
24
|
# $Id$
|
25
25
|
#
|
26
26
|
require 'irc/messages/invalid_message'
|
27
|
+
require 'irc/messages/message_test'
|
27
28
|
require 'irc/messages/private_message'
|
28
29
|
require 'test/unit'
|
29
30
|
|
30
|
-
class IRC::Messages::PrivateMessageTest <
|
31
|
+
class IRC::Messages::PrivateMessageTest < IRC::Messages::MessageTest
|
32
|
+
|
33
|
+
# This method gets called when a private message was received from a channel or an user.
|
34
|
+
def on_private_message(connection, target, message)
|
35
|
+
@target, @message = target, message
|
36
|
+
end
|
31
37
|
|
32
38
|
def test_message
|
33
39
|
|
@@ -39,4 +45,19 @@ class IRC::Messages::PrivateMessageTest < Test::Unit::TestCase
|
|
39
45
|
|
40
46
|
end
|
41
47
|
|
48
|
+
def test_handle
|
49
|
+
|
50
|
+
# Simulate a connection registration.
|
51
|
+
connection.add_connection_listener(self)
|
52
|
+
connection.connect(server)
|
53
|
+
connection.register
|
54
|
+
|
55
|
+
message = IRC::Messages::PrivateMessage.new(":Angel PRIVMSG Wiz :Hello are you receiving this message ?")
|
56
|
+
message.handle(connection.context)
|
57
|
+
|
58
|
+
assert_equal "Wiz", @target.nick
|
59
|
+
assert_equal "Hello are you receiving this message ?", @message
|
60
|
+
|
61
|
+
end
|
62
|
+
|
42
63
|
end
|
@@ -0,0 +1,59 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
#
|
3
|
+
# Copyright (c) 2006 Roman Scherer | IRC Guerilla | Rapid Packet Movement
|
4
|
+
#
|
5
|
+
# Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
# a copy of this software and associated documentation files (the
|
7
|
+
# "Software"), to deal in the Software without restriction, including
|
8
|
+
# without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
# distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
# permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
# the following conditions:
|
12
|
+
#
|
13
|
+
# The above copyright notice and this permission notice shall be
|
14
|
+
# included in all copies or substantial portions of the Software.
|
15
|
+
#
|
16
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
23
|
+
#
|
24
|
+
# $Id: nick_message_test.rb 89 2006-08-13 14:03:35Z roman $
|
25
|
+
#
|
26
|
+
require 'irc/messages/invalid_message'
|
27
|
+
require 'irc/messages/message_test'
|
28
|
+
require 'irc/messages/welcome_message'
|
29
|
+
require 'test/unit'
|
30
|
+
|
31
|
+
class IRC::Messages::NickMessageTest < IRC::Messages::MessageTest
|
32
|
+
|
33
|
+
# This method gets called when a welcome message was received.
|
34
|
+
def on_welcome(connection, user, text)
|
35
|
+
@user, @text = user, text
|
36
|
+
end
|
37
|
+
|
38
|
+
def test_nick_change
|
39
|
+
message = IRC::Messages::WelcomeMessage.new(":irc.easynews.com 001 fumanshu :Welcome to the EFNet IRC via Easynews fumanshu")
|
40
|
+
assert_equal "fumanshu", message.nick
|
41
|
+
assert_equal "Welcome to the EFNet IRC via Easynews fumanshu", message.text
|
42
|
+
end
|
43
|
+
|
44
|
+
def test_handle
|
45
|
+
|
46
|
+
# Simulate a connection registration.
|
47
|
+
connection.add_connection_listener(self)
|
48
|
+
connection.connect(server)
|
49
|
+
connection.register
|
50
|
+
|
51
|
+
message = IRC::Messages::WelcomeMessage.new(":irc.easynews.com 001 fumanshu :Welcome to the EFNet IRC via Easynews fumanshu")
|
52
|
+
message.handle(connection.context)
|
53
|
+
|
54
|
+
assert_equal "fumanshu", @user.nick
|
55
|
+
assert_equal "Welcome to the EFNet IRC via Easynews fumanshu", @text
|
56
|
+
|
57
|
+
end
|
58
|
+
|
59
|
+
end
|
@@ -0,0 +1,97 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
#
|
3
|
+
# Copyright (c) 2006 Roman Scherer | IRC Guerilla | Rapid Packet Movement
|
4
|
+
#
|
5
|
+
# Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
# a copy of this software and associated documentation files (the
|
7
|
+
# "Software"), to deal in the Software without restriction, including
|
8
|
+
# without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
# distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
# permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
# the following conditions:
|
12
|
+
#
|
13
|
+
# The above copyright notice and this permission notice shall be
|
14
|
+
# included in all copies or substantial portions of the Software.
|
15
|
+
#
|
16
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
23
|
+
#
|
24
|
+
# $Id$
|
25
|
+
#
|
26
|
+
require 'irc/util/color'
|
27
|
+
require 'test/unit'
|
28
|
+
require File.dirname(__FILE__) + '/../../../test_helper'
|
29
|
+
|
30
|
+
class IRC::Util::ColorTest < Test::Unit::TestCase
|
31
|
+
|
32
|
+
def setup
|
33
|
+
end
|
34
|
+
|
35
|
+
def test_remove_color
|
36
|
+
|
37
|
+
message_clean = "red blue"
|
38
|
+
message_dirty = IRC::Util::Color::RED + "red " + IRC::Util::Color::BLUE + "blue"
|
39
|
+
assert_equal message_clean, IRC::Util::Color.remove_color(message_dirty)
|
40
|
+
|
41
|
+
message_clean = "white blue black"
|
42
|
+
message_dirty = IRC::Util::Color::WHITE + "white " + IRC::Util::Color::MAGENTA + "blue " + IRC::Util::Color::BLACK + "black"
|
43
|
+
assert_equal message_clean, IRC::Util::Color.remove_color(message_dirty)
|
44
|
+
|
45
|
+
end
|
46
|
+
|
47
|
+
def test_remove_formatting
|
48
|
+
|
49
|
+
message_clean = "bold normal"
|
50
|
+
message_dirty = "bold normal"
|
51
|
+
assert_equal message_clean, IRC::Util::Color.remove_formatting(message_dirty)
|
52
|
+
|
53
|
+
message_clean = "normal bold underline reverse normal"
|
54
|
+
message_dirty = IRC::Util::Color::NORMAL + "normal " + IRC::Util::Color::BOLD + "bold " +
|
55
|
+
IRC::Util::Color::UNDERLINE + "underline " + IRC::Util::Color::REVERSE +
|
56
|
+
"reverse " + IRC::Util::Color::NORMAL + "normal"
|
57
|
+
|
58
|
+
assert_equal message_clean, IRC::Util::Color.remove_formatting(message_dirty)
|
59
|
+
|
60
|
+
end
|
61
|
+
|
62
|
+
def test_remove_color_and_formatting
|
63
|
+
|
64
|
+
message_clean = "bold normal red underline normal"
|
65
|
+
message_dirty = IRC::Util::Color::BOLD + "bold " + IRC::Util::Color::NORMAL + "normal " +
|
66
|
+
IRC::Util::Color::RED + "red " + IRC::Util::Color::UNDERLINE + "underline " +
|
67
|
+
IRC::Util::Color::NORMAL + "normal"
|
68
|
+
assert_equal message_clean, IRC::Util::Color.remove_color_and_formatting(message_dirty)
|
69
|
+
|
70
|
+
end
|
71
|
+
|
72
|
+
def test_remove_color_and_formatting_with_mirc_example
|
73
|
+
|
74
|
+
message_clean = "blabla to be colored text and background blabla"
|
75
|
+
message_dirty = "blabla \x035,12to be colored text and background\x03 blabla"
|
76
|
+
assert_equal message_clean, IRC::Util::Color.remove_color_and_formatting(message_dirty)
|
77
|
+
|
78
|
+
message_clean = "blabla to be colored text blabla"
|
79
|
+
message_dirty = "blabla \x035to be colored text\x03 blabla"
|
80
|
+
assert_equal message_clean, IRC::Util::Color.remove_color_and_formatting(message_dirty)
|
81
|
+
|
82
|
+
message_clean = "blabla to be colored text other colored text and also background blabla"
|
83
|
+
message_dirty = "blabla \x033to be colored text \x035,2other colored text and also background\x03 blabla"
|
84
|
+
assert_equal message_clean, IRC::Util::Color.remove_color_and_formatting(message_dirty)
|
85
|
+
|
86
|
+
message_clean = "blabla to be colored text and background other colored text but SAME background blabla"
|
87
|
+
message_dirty = "blabla \x033,5to be colored text and background \x038other colored text but SAME background\x03 blabla"
|
88
|
+
assert_equal message_clean, IRC::Util::Color.remove_color_and_formatting(message_dirty)
|
89
|
+
|
90
|
+
message_clean = "blabla to be colored text and background other colored text and other background blabla"
|
91
|
+
message_dirty = "blabla \x033,5to be colored text and background \x038,7other colored text and other background\x03 blabla"
|
92
|
+
assert_equal message_clean, IRC::Util::Color.remove_color_and_formatting(message_dirty)
|
93
|
+
|
94
|
+
end
|
95
|
+
|
96
|
+
|
97
|
+
end
|
@@ -0,0 +1,52 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
#
|
3
|
+
# Copyright (c) 2006 Roman Scherer | IRC Guerilla | Rapid Packet Movement
|
4
|
+
#
|
5
|
+
# Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
# a copy of this software and associated documentation files (the
|
7
|
+
# "Software"), to deal in the Software without restriction, including
|
8
|
+
# without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
# distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
# permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
# the following conditions:
|
12
|
+
#
|
13
|
+
# The above copyright notice and this permission notice shall be
|
14
|
+
# included in all copies or substantial portions of the Software.
|
15
|
+
#
|
16
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
23
|
+
#
|
24
|
+
# $Id$
|
25
|
+
#
|
26
|
+
require 'irc/util/nick_generator'
|
27
|
+
require 'test/unit'
|
28
|
+
require File.dirname(__FILE__) + '/../../../test_helper'
|
29
|
+
|
30
|
+
class IRC::Util::NickGeneratorTest < Test::Unit::TestCase
|
31
|
+
|
32
|
+
def test_names
|
33
|
+
generator = IRC::Util::NickGenerator.new("fumanshu")
|
34
|
+
assert_equal %w(fumanshu1 fumanshu2 fumanshu3 fumanshu4 fumanshu5 fumanshu6 fumanshu7 fumanshu8 fumanshu9 fumanshu10), generator.names
|
35
|
+
end
|
36
|
+
|
37
|
+
def test_names_with_nick_length
|
38
|
+
|
39
|
+
generator = IRC::Util::NickGenerator.new("fumanshu", 9)
|
40
|
+
assert_equal %w(fumanshu1 fumanshu2 fumanshu3 fumanshu4 fumanshu5 fumanshu6 fumanshu7 fumanshu8 fumanshu9 fumansh10), generator.names
|
41
|
+
|
42
|
+
generator = IRC::Util::NickGenerator.new("fumanshu", 8)
|
43
|
+
assert_equal %w(fumansh1 fumansh2 fumansh3 fumansh4 fumansh5 fumansh6 fumansh7 fumansh8 fumansh9 fumans10), generator.names
|
44
|
+
|
45
|
+
end
|
46
|
+
|
47
|
+
def test_names_with_max_nicks
|
48
|
+
generator = IRC::Util::NickGenerator.new("fumanshu", nil, 3)
|
49
|
+
assert_equal %w(fumanshu1 fumanshu2 fumanshu3), generator.names
|
50
|
+
end
|
51
|
+
|
52
|
+
end
|
metadata
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
|
-
rubygems_version: 0.
|
2
|
+
rubygems_version: 0.9.0
|
3
3
|
specification_version: 1
|
4
4
|
name: ircguerilla-irc
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 1.
|
7
|
-
date: 2006-
|
6
|
+
version: 1.3.0
|
7
|
+
date: 2006-10-24 00:00:00 +02:00
|
8
8
|
summary: A Ruby framework for the Internet Relay Chat (IRC) protocol.
|
9
9
|
require_paths:
|
10
10
|
- lib
|
@@ -15,7 +15,7 @@ description:
|
|
15
15
|
autorequire:
|
16
16
|
default_executable:
|
17
17
|
bindir: bin
|
18
|
-
has_rdoc:
|
18
|
+
has_rdoc: false
|
19
19
|
required_ruby_version: !ruby/object:Gem::Version::Requirement
|
20
20
|
requirements:
|
21
21
|
- - ">"
|
@@ -25,79 +25,96 @@ required_ruby_version: !ruby/object:Gem::Version::Requirement
|
|
25
25
|
platform: ruby
|
26
26
|
signing_key:
|
27
27
|
cert_chain:
|
28
|
+
post_install_message:
|
28
29
|
authors:
|
29
30
|
- Roman Scherer
|
30
31
|
files:
|
31
|
-
- lib/irc/commands/password_command.rb
|
32
|
-
- lib/irc/commands/join_command.rb
|
33
32
|
- lib/irc/commands/command.rb
|
33
|
+
- lib/irc/commands/nick_command.rb
|
34
34
|
- lib/irc/commands/invalid_command.rb
|
35
|
+
- lib/irc/commands/user_command.rb
|
36
|
+
- lib/irc/commands/password_command.rb
|
35
37
|
- lib/irc/commands/quit_command.rb
|
36
|
-
- lib/irc/commands/pong_command.rb
|
37
|
-
- lib/irc/commands/nick_command.rb
|
38
38
|
- lib/irc/commands/part_command.rb
|
39
|
+
- lib/irc/commands/join_command.rb
|
39
40
|
- lib/irc/commands/ping_command.rb
|
40
|
-
- lib/irc/commands/
|
41
|
-
- lib/irc/
|
42
|
-
- lib/irc/
|
43
|
-
- lib/irc/
|
44
|
-
- lib/irc/
|
45
|
-
- lib/irc/
|
46
|
-
- lib/irc/
|
47
|
-
- lib/irc/
|
41
|
+
- lib/irc/commands/pong_command.rb
|
42
|
+
- lib/irc/client/connection.rb
|
43
|
+
- lib/irc/client/context.rb
|
44
|
+
- lib/irc/client/connection_state.rb
|
45
|
+
- lib/irc/client/connected_state.rb
|
46
|
+
- lib/irc/client/client_error.rb
|
47
|
+
- lib/irc/client/disconnected_state.rb
|
48
|
+
- lib/irc/client/connection_listener.rb
|
49
|
+
- lib/irc/client/registered_state.rb
|
50
|
+
- lib/irc/client/unregistered_state.rb
|
51
|
+
- lib/irc/client/command_handler.rb
|
52
|
+
- lib/irc/client/message_handler.rb
|
48
53
|
- lib/irc/messages/codes.rb
|
49
|
-
- lib/irc/messages/
|
54
|
+
- lib/irc/messages/message.rb
|
55
|
+
- lib/irc/messages/factory.rb
|
56
|
+
- lib/irc/messages/nick_message.rb
|
57
|
+
- lib/irc/messages/invalid_message.rb
|
50
58
|
- lib/irc/messages/error_message.rb
|
51
|
-
- lib/irc/messages/notice_message.rb
|
52
59
|
- lib/irc/messages/ping_message.rb
|
53
|
-
- lib/irc/messages/join_message.rb
|
54
60
|
- lib/irc/messages/pong_message.rb
|
55
|
-
- lib/irc/messages/
|
56
|
-
- lib/irc/messages/
|
57
|
-
- lib/irc/messages/nick_message.rb
|
61
|
+
- lib/irc/messages/notice_message.rb
|
62
|
+
- lib/irc/messages/join_message.rb
|
58
63
|
- lib/irc/messages/part_message.rb
|
59
64
|
- lib/irc/messages/error_join_message.rb
|
60
|
-
- lib/irc/
|
61
|
-
- lib/irc/
|
62
|
-
- lib/irc/
|
63
|
-
- lib/irc/
|
64
|
-
- lib/irc/
|
65
|
-
- lib/irc/
|
66
|
-
- lib/irc/
|
67
|
-
- lib/irc/
|
68
|
-
- lib/irc/
|
69
|
-
- lib/irc/
|
70
|
-
- lib/irc/
|
65
|
+
- lib/irc/messages/private_message.rb
|
66
|
+
- lib/irc/messages/kick_message.rb
|
67
|
+
- lib/irc/messages/isupport_message.rb
|
68
|
+
- lib/irc/messages/welcome_message.rb
|
69
|
+
- lib/irc/messages/error_nick_name_in_use_message.rb
|
70
|
+
- lib/irc/models/bot.rb
|
71
|
+
- lib/irc/models/channel.rb
|
72
|
+
- lib/irc/models/network.rb
|
73
|
+
- lib/irc/models/packet.rb
|
74
|
+
- lib/irc/models/server.rb
|
75
|
+
- lib/irc/models/user.rb
|
76
|
+
- lib/irc/util/color.rb
|
77
|
+
- lib/irc/util/nick_generator.rb
|
71
78
|
test_files:
|
72
79
|
- test/test_helper.rb
|
73
|
-
- test/unit/irc/
|
74
|
-
- test/unit/irc/
|
75
|
-
- test/unit/irc/commands/password_command_test.rb
|
76
|
-
- test/unit/irc/commands/pong_command_test.rb
|
80
|
+
- test/unit/irc/client/command_handler_test.rb
|
81
|
+
- test/unit/irc/client/message_handler_test.rb
|
77
82
|
- test/unit/irc/commands/nick_command_test.rb
|
78
|
-
- test/unit/irc/commands/
|
79
|
-
- test/unit/irc/commands/ping_command_test.rb
|
83
|
+
- test/unit/irc/commands/password_command_test.rb
|
80
84
|
- test/unit/irc/commands/user_command_test.rb
|
85
|
+
- test/unit/irc/commands/quit_command_test.rb
|
86
|
+
- test/unit/irc/commands/part_command_test.rb
|
81
87
|
- test/unit/irc/commands/join_command_test.rb
|
82
|
-
- test/unit/irc/
|
83
|
-
- test/unit/irc/
|
84
|
-
- test/unit/irc/
|
85
|
-
- test/unit/irc/models/packet_test.rb
|
86
|
-
- test/unit/irc/models/channel_test.rb
|
87
|
-
- test/unit/irc/models/network_test.rb
|
88
|
-
- test/unit/irc/messages/error_join_message_test.rb
|
89
|
-
- test/unit/irc/messages/private_message_test.rb
|
88
|
+
- test/unit/irc/commands/ping_command_test.rb
|
89
|
+
- test/unit/irc/commands/pong_command_test.rb
|
90
|
+
- test/unit/irc/commands/command_test.rb
|
90
91
|
- test/unit/irc/messages/ping_message_test.rb
|
91
|
-
- test/unit/irc/messages/join_message_test.rb
|
92
92
|
- test/unit/irc/messages/message_test.rb
|
93
|
-
- test/unit/irc/messages/notice_message_test.rb
|
94
93
|
- test/unit/irc/messages/factory_test.rb
|
95
|
-
- test/unit/irc/messages/pong_message_test.rb
|
96
94
|
- test/unit/irc/messages/nick_message_test.rb
|
95
|
+
- test/unit/irc/messages/pong_message_test.rb
|
96
|
+
- test/unit/irc/messages/notice_message_test.rb
|
97
|
+
- test/unit/irc/messages/join_message_test.rb
|
97
98
|
- test/unit/irc/messages/part_message_test.rb
|
98
|
-
- test/unit/irc/
|
99
|
-
- test/
|
99
|
+
- test/unit/irc/messages/error_join_message_test.rb
|
100
|
+
- test/unit/irc/messages/private_message_test.rb
|
101
|
+
- test/unit/irc/messages/kick_message_test.rb
|
102
|
+
- test/unit/irc/messages/isupport_message_test.rb
|
103
|
+
- test/unit/irc/messages/welcome_message_test.rb
|
104
|
+
- test/unit/irc/messages/error_message_test.rb
|
105
|
+
- test/unit/irc/messages/error_nick_name_in_use_message_test.rb
|
106
|
+
- test/unit/irc/models/bot_test.rb
|
107
|
+
- test/unit/irc/models/channel_test.rb
|
108
|
+
- test/unit/irc/models/network_test.rb
|
109
|
+
- test/unit/irc/models/packet_test.rb
|
110
|
+
- test/unit/irc/models/server_test.rb
|
111
|
+
- test/unit/irc/models/user_test.rb
|
112
|
+
- test/unit/irc/util/color_test.rb
|
113
|
+
- test/unit/irc/util/nick_generator_test.rb
|
100
114
|
- test/functional/irc/client/context_test.rb
|
115
|
+
- test/functional/irc/client/connection_test.rb
|
116
|
+
- test/mocks/test/irc/client/disconnected_state.rb
|
117
|
+
- test/mocks/test/irc/client/connection.rb
|
101
118
|
rdoc_options: []
|
102
119
|
|
103
120
|
extra_rdoc_files: []
|