celluloid_pubsub 0.8.2 → 0.8.3

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: e879eaae504001a0c761a3792dbb2f637f5b030b
4
- data.tar.gz: efb370498020e6ec14045cc2fc6af31a23ad47ca
3
+ metadata.gz: cef2fe4fd546a1212a5155623ec3ae3fb94f7fa1
4
+ data.tar.gz: 170c7644d4e795255cf1baeb460b7c5697a54bc1
5
5
  SHA512:
6
- metadata.gz: b58427c66918732d2a8c1e3a1bd241600162370e88f026ae659704a5abd9e491cc7dc9787ed891998bc803d0a0088086a02f5877b3565133d478f628fcfa4718
7
- data.tar.gz: 9cff4f98f75bd1cf3ba41bfe6db5c27378c159fa1c54a746fafde65bf2168a5dddff842d17640610d331ec9985aa7e8699f08b5b4556ab226b6c5c7992440f31
6
+ metadata.gz: c3a45b9c74e47978ccd990e36ce1bab76d20bf5ed893a767f80fba66ee7c49013d8163c64d5c08c463714defd3ccf83aa2c47f837ec21d80a86b9fd25d5fd2c1
7
+ data.tar.gz: 3465a0d8a0cd7893f8540de46a9642b933cf0eaa750296959e1c27ff50e3927c41746e483fc51d5d98b61574dd084cf120c980196c726f7b8508c5c40d13f0ce
@@ -312,7 +312,6 @@ module CelluloidPubsub
312
312
  # @api public
313
313
  def publish_event(current_topic, message)
314
314
  return if current_topic.blank? || message.blank?
315
- log_debug "#{self.class} tries to publish to #{current_topic} with #{message} into subscribers #{@server.subscribers[current_topic].inspect}"
316
315
  @server.mutex.synchronize do
317
316
  (@server.subscribers[current_topic].dup || []).pmap do |hash|
318
317
  hash[:reactor].websocket << message
@@ -17,7 +17,7 @@ module CelluloidPubsub
17
17
  # minor release version
18
18
  MINOR = 8
19
19
  # tiny release version
20
- TINY = 2
20
+ TINY = 3
21
21
  # prelease version ( set this only if it is a prelease)
22
22
  PRE = nil
23
23
 
@@ -231,13 +231,13 @@ module CelluloidPubsub
231
231
  #
232
232
  # @api public
233
233
  def route_websocket(reactor, socket)
234
- url = socket.url
235
- if url == path
234
+ url = socket.url
235
+ if url == path || url == "/?"
236
236
  reactor.async.work(socket, Actor.current)
237
- else
238
- log_debug "Received invalid WebSocket request for: #{url}"
239
- socket.close
240
- end
237
+ else
238
+ log_debug "Received invalid WebSocket request for: #{url}"
239
+ socket.close
240
+ end
241
241
  end
242
242
 
243
243
  # If the message can be parsed into a Hash it will respond to the reactor's websocket connection with the same message in JSON format
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.8.2
4
+ version: 0.8.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - bogdanRada