websocket-client-simple 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ === 0.0.5 2013-03-23
2
+
3
+ * kill read thread on close
4
+
1
5
  === 0.0.4 2013-03-23
2
6
 
3
7
  * fix sample and README
@@ -23,7 +23,7 @@ module WebSocket
23
23
  emit :close, err
24
24
  end
25
25
 
26
- Thread.new do
26
+ @thread = Thread.new do
27
27
  while !@closed do
28
28
  begin
29
29
  recv_data = @socket.getc
@@ -63,6 +63,7 @@ module WebSocket
63
63
  return if @closed
64
64
  @closed = true
65
65
  @socket.close if @socket
66
+ Thread.kill @thread if @thread
66
67
  @socket = nil
67
68
  emit :__close
68
69
  end
@@ -1,7 +1,7 @@
1
1
  module WebSocket
2
2
  module Client
3
3
  module Simple
4
- VERSION = "0.0.4"
4
+ VERSION = "0.0.5"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: websocket-client-simple
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-03-22 00:00:00.000000000 Z
12
+ date: 2013-03-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -161,7 +161,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
161
161
  version: '0'
162
162
  segments:
163
163
  - 0
164
- hash: -918600573027988559
164
+ hash: 2779008891279892973
165
165
  required_rubygems_version: !ruby/object:Gem::Requirement
166
166
  none: false
167
167
  requirements:
@@ -170,7 +170,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
170
170
  version: '0'
171
171
  segments:
172
172
  - 0
173
- hash: -918600573027988559
173
+ hash: 2779008891279892973
174
174
  requirements: []
175
175
  rubyforge_project:
176
176
  rubygems_version: 1.8.24