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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 38412eb46cf2d31b4a97c740a83c35032e4acd20
4
- data.tar.gz: 3b0f5f14039647e635f45e09db4db7da82c84d88
3
+ metadata.gz: 5141925225c31c95994da4d4bac294394123129c
4
+ data.tar.gz: 11b969aa67e7dfbf85099de7e7164aa845ac83f1
5
5
  SHA512:
6
- metadata.gz: 8729bcac7a29d74446d02aff47b6263a7c607a940e36acdcc8f33976e984b76d2a167ba9b1ad15a780b715db53c75a8070039ca488825eb6a8e9f9c41512eae7
7
- data.tar.gz: 712fb6f81684df547d35697d75276c9dcfb85c8899e5945305ef062e20cb83c8e9f34101eb0ce14623c18e71f7ee6687bbc28a7269d576514dbdc929ff361b1f
6
+ metadata.gz: 034b6a160c0ea47adff1a6c5f734ad5c6e5c2c7723314eb3c4f3341cb60f7491c1c88980816b31281be2693f3b9b99945d58e8f8d84d3ecfdfe280e370e97ba7
7
+ data.tar.gz: 9b5ec70213bde29d52099073a6bac2ab73e28067c8a1e8049107bb86fcb93fb48678c2665afb1c06c3edd4ed76f5c26d8db6e077dcdaaa792d44c0b0601148b0
@@ -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 = "This is basically a small wrapper around Tony Arcieri's Reel::Websocket class."
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
 
@@ -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
 
@@ -1,5 +1,5 @@
1
1
  module Celluloid
2
2
  class WebSocket
3
- VERSION = "0.0.8"
3
+ VERSION = "0.0.9"
4
4
  end
5
5
  end
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.8
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: This is basically a small wrapper around Tony Arcieri's Reel::Websocket class.
152
+ summary: Lets you make a websocket rack application using Celluloid.
153
153
  test_files: []