celluloid_pubsub 0.7.7 → 0.7.8

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: 64037f395a37be9150986b326ee3f3105b2ff9bf
4
- data.tar.gz: c01714037f344763829781654ca80f9eb9367f81
3
+ metadata.gz: e2eb0109ea135c9b42108f5f4db80974a3838048
4
+ data.tar.gz: 3ffd573f3a17a224b70576bdc158f53b3199da8b
5
5
  SHA512:
6
- metadata.gz: 916f2f5f88590df0946934257acf6604cc4ef803d2240f737509013abeffb153ab551ff0ad08706afec251c643fd4bfd3d57ebc28bcbce9636ebeb5b32c9bd60
7
- data.tar.gz: 0b8578cf7055b3f196f91e38e5607b9698d6a0f98735d480463b696a687a4dd9d846fc66efea9aadddad04a957fb92263856f6714b587c11e1027bdd83011a03
6
+ metadata.gz: 76e716f4ad7d1465a9ccc6999e4398081e434c641b62d5ec5d62da4ff4d359a382a9016175526d0509210b914dc4aac871c899bb47d79216e72713fbd0841a03
7
+ data.tar.gz: 0cbe72567279e79e252d0c4a779d809ed9b78321f947ce83e6febbf07c85a0bbda4e8c6cb6668dc24f90afb210c4c9b8be90dad26b63055389271fa47dadda8f
@@ -68,5 +68,5 @@ Signal.trap('INT') do
68
68
  signal_received = true
69
69
  end
70
70
 
71
- puts 'Exited succesfully! =)'
72
71
  sleep 0.1 until signal_received
72
+ puts 'Exited succesfully! =)'
@@ -14,7 +14,7 @@ module CelluloidPubsub
14
14
  # @return [String] The channel to which the client will subscribe to
15
15
  class Client
16
16
  include CelluloidPubsub::BaseActor
17
-
17
+
18
18
 
19
19
  attr_accessor :actor, :options, :channel
20
20
  finalizer :shutdown
@@ -129,9 +129,9 @@ module CelluloidPubsub
129
129
  # @return [void]
130
130
  #
131
131
  # @api public
132
- def subscribe(channel)
132
+ def subscribe(channel, data = {})
133
133
  log_debug("#{@actor.class} tries to subscribe to channel #{channel}")
134
- async.send_action('subscribe', channel)
134
+ async.send_action('subscribe', channel, data)
135
135
  end
136
136
 
137
137
  # publishes to a channel some data (can be anything)
@@ -17,7 +17,7 @@ module CelluloidPubsub
17
17
  # minor release version
18
18
  MINOR = 7
19
19
  # tiny release version
20
- TINY = 7
20
+ TINY = 8
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.7
4
+ version: 0.7.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - bogdanRada
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-11 00:00:00.000000000 Z
11
+ date: 2016-06-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: celluloid
@@ -375,7 +375,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
375
375
  version: '0'
376
376
  requirements: []
377
377
  rubyforge_project:
378
- rubygems_version: 2.4.8
378
+ rubygems_version: 2.5.1
379
379
  signing_key:
380
380
  specification_version: 4
381
381
  summary: CelluloidPubsub is a simple ruby implementation of publish subscribe design