celluloid_pubsub 0.7.8 → 0.7.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e2eb0109ea135c9b42108f5f4db80974a3838048
4
- data.tar.gz: 3ffd573f3a17a224b70576bdc158f53b3199da8b
3
+ metadata.gz: 1a3359e6bed373e2823baba89ebc16b1c23a7854
4
+ data.tar.gz: 8863612bacc3f790b801fb5ee83a2cc64448de1b
5
5
  SHA512:
6
- metadata.gz: 76e716f4ad7d1465a9ccc6999e4398081e434c641b62d5ec5d62da4ff4d359a382a9016175526d0509210b914dc4aac871c899bb47d79216e72713fbd0841a03
7
- data.tar.gz: 0cbe72567279e79e252d0c4a779d809ed9b78321f947ce83e6febbf07c85a0bbda4e8c6cb6668dc24f90afb210c4c9b8be90dad26b63055389271fa47dadda8f
6
+ metadata.gz: 2d3d910f4eb374c47bfe50073c59f4e10e2b3cf01de8a33a7e7870dae3b55d72a91ae0522a7f0ee0e427f47a7aaae5cf79937f67561e629f8a3eae5d06c690ca
7
+ data.tar.gz: d43bbebe970d977110d1096edc17f30167f95fdbe43c0ffc5d5193f819c970d521545da864a084d725c6c51c40409e44ebfe685d79faa17ebab14ac7cfdbc56b
@@ -199,7 +199,11 @@ module CelluloidPubsub
199
199
  def on_message(data)
200
200
  message = JSON.parse(data)
201
201
  log_debug("#{@actor.class} received JSON #{message}")
202
- @actor.async.on_message(message)
202
+ if @actor.respond_to?(:async)
203
+ @actor.async.on_message(message)
204
+ else
205
+ @actor.on_message(message)
206
+ end
203
207
  end
204
208
 
205
209
  # callback executes when connection closes
@@ -215,7 +219,11 @@ module CelluloidPubsub
215
219
  connection.terminate
216
220
  terminate
217
221
  log_debug("#{@actor.class} dispatching on close #{code} #{reason}")
218
- @actor.async.on_close(code, reason)
222
+ if @actor.respond_to?(:async)
223
+ @actor.async.on_close(code, reason)
224
+ else
225
+ @actor.on_close(code, reason)
226
+ end
219
227
  end
220
228
 
221
229
  private
@@ -17,7 +17,7 @@ module CelluloidPubsub
17
17
  # minor release version
18
18
  MINOR = 7
19
19
  # tiny release version
20
- TINY = 8
20
+ TINY = 9
21
21
  # prelease version ( set this only if it is a prelease)
22
22
  PRE = nil
23
23
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: celluloid_pubsub
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.8
4
+ version: 0.7.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - bogdanRada
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-09 00:00:00.000000000 Z
11
+ date: 2016-06-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: celluloid