carrier-pigeon 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/carrier-pigeon.gemspec +1 -1
- data/lib/carrier-pigeon.rb +5 -0
- metadata +4 -4
data/carrier-pigeon.gemspec
CHANGED
data/lib/carrier-pigeon.rb
CHANGED
@@ -22,6 +22,7 @@ class CarrierPigeon
|
|
22
22
|
sendln "PASS #{options[:password]}" if options[:password]
|
23
23
|
sendln "NICK #{options[:nick]}"
|
24
24
|
sendln "USER #{options[:nick]} 0 * :#{options[:nick]}"
|
25
|
+
sendln options[:nickserv_command] if options[:nickserv_command]
|
25
26
|
sendln "JOIN #{options[:channel]} #{options[:channel_password]}" if options[:join]
|
26
27
|
end
|
27
28
|
|
@@ -44,6 +45,10 @@ class CarrierPigeon
|
|
44
45
|
options[:nick] = uri.user
|
45
46
|
options[:password] = uri.password
|
46
47
|
options[:channel] = "#" + uri.fragment
|
48
|
+
if options[:nickserv_password]
|
49
|
+
options[:nickserv_command] ||=
|
50
|
+
"PRIVMSG NICKSERV :IDENTIFY #{options[:nickserv_password]}"
|
51
|
+
end
|
47
52
|
pigeon = new(options)
|
48
53
|
pigeon.message(options[:channel], options[:message])
|
49
54
|
pigeon.die
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: carrier-pigeon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 15
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
8
|
+
- 4
|
9
9
|
- 0
|
10
|
-
version: 0.
|
10
|
+
version: 0.4.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Sean Porter
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date:
|
18
|
+
date: 2012-05-02 00:00:00 -07:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|