celluloid_pubsub 0.0.13 → 0.0.14

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: ee4d93361a3109e5377aa2434b32c9efba276870
4
- data.tar.gz: 164fad715b42c791eca6c531720829a7dbb7a40a
3
+ metadata.gz: f8af88399f5d0b9726e1e25f3fbdee8cba0eeb00
4
+ data.tar.gz: ab23a3f7d94e986d6c8b9d192a2ce43cff2f3c72
5
5
  SHA512:
6
- metadata.gz: ede77bfac90ac7dfc6bcbf2d814ede297fb9238f62729e783c438912a787238929520e9bf90cdec93e1ef97232be0d62236115f84edb868ca8e0ea165b13d535
7
- data.tar.gz: afa3750ce0f42c6407e6ac58043815c72ce6f695c69829d609315017ee65b11aa248a8c2d6cec1f6b09535f6e4d4251b2274292e7bc58583e1746c6317cedbfe
6
+ metadata.gz: 54188ddf2711f16d9fd87c5e908cfb2287a8938a72eb55f6e1327fc1c4f36ef44e996e3a0577edd8f052ff1c892106dfde587f879dbcb829052555f717c4bd8d
7
+ data.tar.gz: cb4698f0a018336126479e367505ce71916039db9e62a3b05441c5b03f4c8210f64ec3ad2901fee4bad66a44cf13845ab48a709963a0ce43d5b25f4c3fe3d6bd
@@ -45,11 +45,19 @@ module CelluloidPubsub
45
45
  #
46
46
  # :nocov:
47
47
  def run
48
- while !@websocket.closed? && message = try_read_websocket
48
+ while Actor.current.alive? && !@websocket.closed? && message = try_read_websocket
49
49
  handle_websocket_message(message)
50
50
  end
51
51
  end
52
52
 
53
+ # will try to read the message from the websocket
54
+ # and if it fails will log the exception if debug is enabled
55
+ #
56
+ # @return [void]
57
+ #
58
+ # @api public
59
+ #
60
+ # :nocov:
53
61
  def try_read_websocket
54
62
  message = nil
55
63
  begin
@@ -17,7 +17,7 @@ module CelluloidPubsub
17
17
  # minor release version
18
18
  MINOR = 0
19
19
  # tiny release version
20
- TINY = 13
20
+ TINY = 14
21
21
  # prelease version ( set this only if it is a prelease)
22
22
  PRE = nil
23
23
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: celluloid_pubsub
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.13
4
+ version: 0.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - bogdanRada