net-irc 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +7 -0
- data/examples/hatena-star-stream.rb +265 -0
- data/examples/lig.rb +3 -0
- data/examples/mixi.rb +236 -0
- data/examples/tig.rb +68 -21
- data/lib/net/irc.rb +6 -811
- data/lib/net/irc/client.rb +227 -0
- data/lib/net/irc/constants.rb +214 -0
- data/lib/net/irc/message.rb +100 -0
- data/lib/net/irc/message/modeparser.rb +44 -0
- data/lib/net/irc/message/modeparser/hyperion.rb +88 -0
- data/lib/net/irc/message/modeparser/rfc1459.rb +21 -0
- data/lib/net/irc/pattern.rb +68 -0
- data/lib/net/irc/server.rb +188 -0
- data/spec/modeparser_spec.rb +43 -0
- data/spec/net-irc_spec.rb +7 -7
- metadata +17 -3
data/spec/net-irc_spec.rb
CHANGED
@@ -310,9 +310,9 @@ describe Net::IRC, "server and client" do
|
|
310
310
|
true until client_q.pop.to_s == "NOTICE #test sep3\r\n"
|
311
311
|
c.synchronize do
|
312
312
|
c["#test"][:users].should == ["foonick", "test1", "test2", "foo1", "foo2", "foo3", "foo4", "foo5"]
|
313
|
-
c["#test"][:modes].should include([
|
314
|
-
c["#test"][:modes].should include([
|
315
|
-
c["#test"][:modes].should include([
|
313
|
+
c["#test"][:modes].should include([:s, nil])
|
314
|
+
c["#test"][:modes].should include([:o, "foo4"])
|
315
|
+
c["#test"][:modes].should include([:v, "foo5"])
|
316
316
|
end
|
317
317
|
|
318
318
|
TestServerSession.instance.instance_eval do
|
@@ -330,10 +330,10 @@ describe Net::IRC, "server and client" do
|
|
330
330
|
c.synchronize do
|
331
331
|
c["#test"][:users].should == ["foonick", "test1", "test2", "foo2", "foo3", "foo5"]
|
332
332
|
c["#test1"][:users].should == ["foo1", "foo2", "foo3"]
|
333
|
-
c["#test"][:modes].should_not include([
|
334
|
-
c["#test"][:modes].should include([
|
335
|
-
c["#test1"][:modes].should_not include([
|
336
|
-
c["#test"][:modes].should include([
|
333
|
+
c["#test"][:modes].should_not include([:o, "foo4"])
|
334
|
+
c["#test"][:modes].should include([:v, "foo5"])
|
335
|
+
c["#test1"][:modes].should_not include([:v, "foo5"])
|
336
|
+
c["#test"][:modes].should include([:o, "foo2"])
|
337
337
|
end
|
338
338
|
end
|
339
339
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: net-irc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- cho45
|
@@ -9,7 +9,7 @@ autorequire: ""
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-06-
|
12
|
+
date: 2008-06-28 00:00:00 +09:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|
@@ -26,15 +26,29 @@ files:
|
|
26
26
|
- README
|
27
27
|
- ChangeLog
|
28
28
|
- Rakefile
|
29
|
+
- spec/modeparser_spec.rb
|
29
30
|
- spec/net-irc_spec.rb
|
30
31
|
- spec/spec.opts
|
31
32
|
- lib/net
|
32
33
|
- lib/net/irc.rb
|
34
|
+
- lib/net/irc
|
35
|
+
- lib/net/irc/constants.rb
|
36
|
+
- lib/net/irc/pattern.rb
|
37
|
+
- lib/net/irc/client.rb
|
38
|
+
- lib/net/irc/server.rb
|
39
|
+
- lib/net/irc/message.rb
|
40
|
+
- lib/net/irc/message
|
41
|
+
- lib/net/irc/message/modeparser
|
42
|
+
- lib/net/irc/message/modeparser/rfc1459.rb
|
43
|
+
- lib/net/irc/message/modeparser/hyperion.rb
|
44
|
+
- lib/net/irc/message/modeparser.rb
|
45
|
+
- examples/hatena-star-stream.rb
|
33
46
|
- examples/sig.rb
|
34
47
|
- examples/tig.rb
|
35
48
|
- examples/lingr.rb
|
36
49
|
- examples/client.rb
|
37
50
|
- examples/nig.rb
|
51
|
+
- examples/mixi.rb
|
38
52
|
- examples/lig.rb
|
39
53
|
- examples/wig.rb
|
40
54
|
has_rdoc: true
|
@@ -70,7 +84,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
70
84
|
requirements: []
|
71
85
|
|
72
86
|
rubyforge_project: lowreal
|
73
|
-
rubygems_version: 1.
|
87
|
+
rubygems_version: 1.2.0
|
74
88
|
signing_key:
|
75
89
|
specification_version: 2
|
76
90
|
summary: ""
|