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.
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "carrier-pigeon"
3
- s.version = "0.3.0"
3
+ s.version = "0.4.0"
4
4
  s.platform = Gem::Platform::RUBY
5
5
  s.authors = ["Sean Porter"]
6
6
  s.email = ["portertech@gmail.com"]
@@ -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: 19
4
+ hash: 15
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
- - 3
8
+ - 4
9
9
  - 0
10
- version: 0.3.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: 2011-11-09 00:00:00 -08:00
18
+ date: 2012-05-02 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency