Pulse 1.3.1.2 → 1.3.2
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/library/pulse/client.rb +5 -1
- data/library/pulse/queue.rb +1 -0
- data/library/pulse/settings.rb +1 -1
- data/library/pulse/user.rb +2 -0
- metadata +2 -3
data/library/pulse/client.rb
CHANGED
@@ -6,7 +6,7 @@ module Pulse
|
|
6
6
|
class Client
|
7
7
|
include Handling
|
8
8
|
|
9
|
-
|
9
|
+
attr_reader :channels, :callbacks, :conversations, :settings, :scripts
|
10
10
|
|
11
11
|
def initialize options
|
12
12
|
@conversations, @callbacks, @channels, @scripts = {}, {}, {}, []
|
@@ -28,6 +28,7 @@ module Pulse
|
|
28
28
|
|
29
29
|
def got_command command
|
30
30
|
name = :"got_#{command.name.downcase}"
|
31
|
+
puts "<< #{command.inspect}"
|
31
32
|
|
32
33
|
if respond_to? name
|
33
34
|
__send__ name, command
|
@@ -35,6 +36,8 @@ module Pulse
|
|
35
36
|
end
|
36
37
|
|
37
38
|
def connection_established connection
|
39
|
+
p @settings.password
|
40
|
+
transmit :PASS, @settings.password if @settings.password?
|
38
41
|
transmit :NICK, @settings.nickname
|
39
42
|
transmit :USER, @settings.username, ?*, ?*, @settings.realname
|
40
43
|
end
|
@@ -76,6 +79,7 @@ module Pulse
|
|
76
79
|
unload_scripts
|
77
80
|
|
78
81
|
transmit :QUIT, "Received kill signal (#{signal})"
|
82
|
+
@connection.close if @connection.established?
|
79
83
|
end
|
80
84
|
|
81
85
|
private
|
data/library/pulse/queue.rb
CHANGED
data/library/pulse/settings.rb
CHANGED
data/library/pulse/user.rb
CHANGED
metadata
CHANGED
@@ -5,9 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 1
|
7
7
|
- 3
|
8
|
-
- 1
|
9
8
|
- 2
|
10
|
-
version: 1.3.
|
9
|
+
version: 1.3.2
|
11
10
|
platform: ruby
|
12
11
|
authors:
|
13
12
|
- Mikkel Kroman
|
@@ -15,7 +14,7 @@ autorequire:
|
|
15
14
|
bindir: executables
|
16
15
|
cert_chain: []
|
17
16
|
|
18
|
-
date: 2010-12-
|
17
|
+
date: 2010-12-16 00:00:00 +01:00
|
19
18
|
default_executable:
|
20
19
|
dependencies: []
|
21
20
|
|