net-yail 1.3.2 → 1.3.3
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/net/yail.rb +1 -1
- data/lib/net/yail/output_api.rb +6 -6
- metadata +16 -5
data/lib/net/yail.rb
CHANGED
data/lib/net/yail/output_api.rb
CHANGED
@@ -228,11 +228,11 @@ module IRCOutputAPI
|
|
228
228
|
def topic(channel, new_topic = nil)
|
229
229
|
# Dup for filter safety in outgoing handler
|
230
230
|
channel = channel.dup
|
231
|
-
new_topic = new_topic.dup
|
231
|
+
new_topic = new_topic.dup unless new_topic.nil?
|
232
232
|
|
233
233
|
handle(:outgoing_topic, channel, new_topic)
|
234
234
|
output = "TOPIC #{channel}"
|
235
|
-
output += "
|
235
|
+
output += " :#{new_topic}" unless new_topic.to_s.empty?
|
236
236
|
raw output
|
237
237
|
end
|
238
238
|
|
@@ -240,7 +240,7 @@ module IRCOutputAPI
|
|
240
240
|
# is specified, only shows users in that channel. Will not show invisible
|
241
241
|
# users or channels. Calls :outgoing_names and raw NAMES command.
|
242
242
|
def names(channel = nil)
|
243
|
-
channel = channel.dup
|
243
|
+
channel = channel.dup unless channel.nil?
|
244
244
|
|
245
245
|
handle(:outgoing_names, channel)
|
246
246
|
output = "NAMES"
|
@@ -252,8 +252,8 @@ module IRCOutputAPI
|
|
252
252
|
# channel is blank, lists all visible, otherwise just lists the channel in
|
253
253
|
# question. Calls :outgoing_list and raw LIST command.
|
254
254
|
def list(channel = nil, server = nil)
|
255
|
-
channel = channel.dup
|
256
|
-
server = server.dup
|
255
|
+
channel = channel.dup unless channel.nil?
|
256
|
+
server = server.dup unless server.nil?
|
257
257
|
|
258
258
|
handle(:outgoing_list, channel, server)
|
259
259
|
output = "LIST"
|
@@ -277,7 +277,7 @@ module IRCOutputAPI
|
|
277
277
|
def kick(nick, channel, comment = nil)
|
278
278
|
nick = nick.dup
|
279
279
|
channel = channel.dup
|
280
|
-
comment = comment.dup
|
280
|
+
comment = comment.dup unless comment.nil?
|
281
281
|
|
282
282
|
handle(:outgoing_kick, nick, channel, comment)
|
283
283
|
output = "KICK #{channel} #{nick}"
|
metadata
CHANGED
@@ -1,7 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: net-yail
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 1
|
7
|
+
- 3
|
8
|
+
- 3
|
9
|
+
version: 1.3.3
|
5
10
|
platform: ruby
|
6
11
|
authors:
|
7
12
|
- Jeremy Echols
|
@@ -9,7 +14,7 @@ autorequire: net/yail
|
|
9
14
|
bindir: bin
|
10
15
|
cert_chain: []
|
11
16
|
|
12
|
-
date:
|
17
|
+
date: 2010-06-18 00:00:00 -04:00
|
13
18
|
default_executable:
|
14
19
|
dependencies: []
|
15
20
|
|
@@ -32,6 +37,8 @@ files:
|
|
32
37
|
- lib/net/yail/default_events.rb
|
33
38
|
- lib/net/yail/output_api.rb
|
34
39
|
- lib/net/yail/message_parser.rb
|
40
|
+
- tests/net_yail.rb
|
41
|
+
- tests/tc_message_parser.rb
|
35
42
|
- README
|
36
43
|
has_rdoc: true
|
37
44
|
homepage: http://ruby-irc-yail.nerdbucket.com/
|
@@ -44,21 +51,25 @@ rdoc_options:
|
|
44
51
|
require_paths:
|
45
52
|
- lib
|
46
53
|
required_ruby_version: !ruby/object:Gem::Requirement
|
54
|
+
none: false
|
47
55
|
requirements:
|
48
56
|
- - ">="
|
49
57
|
- !ruby/object:Gem::Version
|
58
|
+
segments:
|
59
|
+
- 0
|
50
60
|
version: "0"
|
51
|
-
version:
|
52
61
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
62
|
+
none: false
|
53
63
|
requirements:
|
54
64
|
- - ">="
|
55
65
|
- !ruby/object:Gem::Version
|
66
|
+
segments:
|
67
|
+
- 0
|
56
68
|
version: "0"
|
57
|
-
version:
|
58
69
|
requirements: []
|
59
70
|
|
60
71
|
rubyforge_project: net-yail
|
61
|
-
rubygems_version: 1.3.
|
72
|
+
rubygems_version: 1.3.7
|
62
73
|
signing_key:
|
63
74
|
specification_version: 3
|
64
75
|
summary: "Yet Another IRC Library: wrapper for IRC communications in Ruby."
|