celluloid_pubsub 0.7.8 → 0.7.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/celluloid_pubsub/client.rb +10 -2
- data/lib/celluloid_pubsub/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: 1a3359e6bed373e2823baba89ebc16b1c23a7854
|
4
|
+
data.tar.gz: 8863612bacc3f790b801fb5ee83a2cc64448de1b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
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
|
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.
|
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-
|
11
|
+
date: 2016-06-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: celluloid
|