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 CHANGED
@@ -1,5 +1,13 @@
1
1
  h1. Changelog
2
2
 
3
+ h2. 0.1.3 / 2010-09-23
4
+
5
+ * new features:
6
+ ** none
7
+ * bugfixes:
8
+ ** fix query :show_connections in ruby 1.9
9
+ ** fix user authentication when url subscribe/unsubscribe is disabled
10
+
3
11
  h2. 0.1.2 / 2010-09-21
4
12
 
5
13
  * new features:
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.2
1
+ 0.1.3
@@ -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: 31
4
+ hash: 29
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 2
10
- version: 0.1.2
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-21 00:00:00 +02:00
18
+ date: 2010-09-23 00:00:00 +02:00
19
19
  default_executable: socky
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency