celluloid-websocket 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/celluloid-websocket.gemspec +1 -1
- data/lib/celluloid/websocket.rb +3 -1
- data/lib/celluloid/websocket/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5141925225c31c95994da4d4bac294394123129c
|
4
|
+
data.tar.gz: 11b969aa67e7dfbf85099de7e7164aa845ac83f1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 034b6a160c0ea47adff1a6c5f734ad5c6e5c2c7723314eb3c4f3341cb60f7491c1c88980816b31281be2693f3b9b99945d58e8f8d84d3ecfdfe280e370e97ba7
|
7
|
+
data.tar.gz: 9b5ec70213bde29d52099073a6bac2ab73e28067c8a1e8049107bb86fcb93fb48678c2665afb1c06c3edd4ed76f5c26d8db6e077dcdaaa792d44c0b0601148b0
|
data/celluloid-websocket.gemspec
CHANGED
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
|
|
9
9
|
spec.authors = ["Tinco Andringa"]
|
10
10
|
spec.email = ["mail@tinco.nl"]
|
11
11
|
spec.description = "Lets you make a websocket rack application using Celluloid."
|
12
|
-
spec.summary = "
|
12
|
+
spec.summary = "Lets you make a websocket rack application using Celluloid."
|
13
13
|
spec.homepage = "https://github.com/d-snp/celluloid-websocket"
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
data/lib/celluloid/websocket.rb
CHANGED
@@ -31,6 +31,8 @@ module Celluloid
|
|
31
31
|
on_open if respond_to? :on_open
|
32
32
|
rescue EOFError
|
33
33
|
close
|
34
|
+
rescue => e
|
35
|
+
on_error(e) if respond_to? :on_error
|
34
36
|
end
|
35
37
|
|
36
38
|
def read
|
@@ -55,7 +57,7 @@ module Celluloid
|
|
55
57
|
alias_method :<<, :write
|
56
58
|
|
57
59
|
def close
|
58
|
-
@driver.close unless @driver.nil?
|
60
|
+
@driver.close unless @driver.nil? rescue nil
|
59
61
|
@socket.close unless @socket.nil? || @socket.closed?
|
60
62
|
end
|
61
63
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: celluloid-websocket
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tinco Andringa
|
@@ -149,5 +149,5 @@ rubyforge_project:
|
|
149
149
|
rubygems_version: 2.2.2
|
150
150
|
signing_key:
|
151
151
|
specification_version: 4
|
152
|
-
summary:
|
152
|
+
summary: Lets you make a websocket rack application using Celluloid.
|
153
153
|
test_files: []
|