socky 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.textile +8 -0
- data/VERSION +1 -1
- data/lib/socky/connection.rb +2 -2
- data/lib/socky/connection/authentication.rb +3 -2
- metadata +4 -4
data/CHANGELOG.textile
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.3
|
data/lib/socky/connection.rb
CHANGED
@@ -89,11 +89,11 @@ module Socky
|
|
89
89
|
connection_pool.delete(self)
|
90
90
|
end
|
91
91
|
|
92
|
-
def to_json
|
92
|
+
def to_json(*args)
|
93
93
|
{
|
94
94
|
:id => self.object_id,
|
95
95
|
:client_id => self.client,
|
96
|
-
:channels => self.channels
|
96
|
+
:channels => self.channels.reject{|channel| channel.nil?}
|
97
97
|
}.to_json
|
98
98
|
end
|
99
99
|
|
@@ -51,8 +51,9 @@ module Socky
|
|
51
51
|
debug [self.name, "sending subscribe request to", subscribe_url]
|
52
52
|
Socky::NetRequest.post(subscribe_url, params_for_request, &block)
|
53
53
|
true
|
54
|
+
else
|
55
|
+
yield true
|
54
56
|
end
|
55
|
-
true
|
56
57
|
end
|
57
58
|
|
58
59
|
def send_unsubscribe_request(&block)
|
@@ -61,7 +62,7 @@ module Socky
|
|
61
62
|
debug [self.name, "sending unsubscribe request to", unsubscribe_url]
|
62
63
|
Socky::NetRequest.post(unsubscribe_url, params_for_request, &block)
|
63
64
|
else
|
64
|
-
true
|
65
|
+
yield true
|
65
66
|
end
|
66
67
|
end
|
67
68
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: socky
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 29
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 3
|
10
|
+
version: 0.1.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Bernard Potocki
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-09-
|
18
|
+
date: 2010-09-23 00:00:00 +02:00
|
19
19
|
default_executable: socky
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|