celluloid_pubsub 0.7.6 → 0.7.7

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: 45752b8258e088d68de832177b5eeb0606d0f5e3
4
- data.tar.gz: 074adf35ace6a387685c0407cb34caf7b93007b9
3
+ metadata.gz: 64037f395a37be9150986b326ee3f3105b2ff9bf
4
+ data.tar.gz: c01714037f344763829781654ca80f9eb9367f81
5
5
  SHA512:
6
- metadata.gz: 26366761f06114479a77a0fd54f0a238f7556af1963b8662aea28689e33832ae25f8bda8e56eee6867ac66ae4016cf5a4fd313ef6c98efa586e45a2cbf08fb36
7
- data.tar.gz: 2420f2a1b37a32ae98011bb7cd5c232e22bff68f6c91882fa232a1191e46a99c7703cfc139b868faf3cc4926353f6980dc86b0f7d0b25277fa6ad37b0384d91f
6
+ metadata.gz: 916f2f5f88590df0946934257acf6604cc4ef803d2240f737509013abeffb153ab551ff0ad08706afec251c643fd4bfd3d57ebc28bcbce9636ebeb5b32c9bd60
7
+ data.tar.gz: 0b8578cf7055b3f196f91e38e5607b9698d6a0f98735d480463b696a687a4dd9d846fc66efea9aadddad04a957fb92263856f6714b587c11e1027bdd83011a03
@@ -308,7 +308,7 @@ module CelluloidPubsub
308
308
  # @api public
309
309
  def publish_event(current_topic, message)
310
310
  return if current_topic.blank? || message.blank?
311
- (@server.subscribers[current_topic].dup || []).each do |hash|
311
+ (@server.subscribers[current_topic].dup || []).pmap do |hash|
312
312
  hash[:reactor].websocket << message
313
313
  end
314
314
  rescue => exception
@@ -322,7 +322,7 @@ module CelluloidPubsub
322
322
  # @api public
323
323
  def unsubscribe_all
324
324
  log_debug "#{self.class} runs 'unsubscribe_all' method"
325
- CelluloidPubsub::Registry.channels.dup.each do |channel|
325
+ CelluloidPubsub::Registry.channels.dup.pmap do |channel|
326
326
  unsubscribe_clients(channel)
327
327
  end
328
328
  log_debug 'clearing connections'
@@ -337,7 +337,7 @@ module CelluloidPubsub
337
337
  # @api public
338
338
  def unsubscribe_from_channel(channel)
339
339
  log_debug "#{self.class} runs 'unsubscribe_from_channel' method with #{channel}"
340
- (@server.subscribers[channel].dup || []).each do |hash|
340
+ (@server.subscribers[channel].dup || []).pmap do |hash|
341
341
  reactor = hash[:reactor]
342
342
  reactor.websocket.close
343
343
  Celluloid::Actor.kill(reactor)
@@ -17,7 +17,7 @@ module CelluloidPubsub
17
17
  # minor release version
18
18
  MINOR = 7
19
19
  # tiny release version
20
- TINY = 6
20
+ TINY = 7
21
21
  # prelease version ( set this only if it is a prelease)
22
22
  PRE = nil
23
23
 
@@ -6,6 +6,7 @@ require 'reel'
6
6
  require 'celluloid/websocket/client'
7
7
  require 'active_support/all'
8
8
  require 'json'
9
+ require 'celluloid/pmap'
9
10
  require 'celluloid_pubsub/base_actor'
10
11
  Gem.find_files('celluloid_pubsub/initializers/**/*.rb').each { |path| require path }
11
12
  Gem.find_files('celluloid_pubsub/**/*.rb').each { |path| require path }
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.7.6
4
+ version: 0.7.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - bogdanRada