celluloid_pubsub 0.7.7 → 0.7.8
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 +4 -4
- data/examples/simple_test.rb +1 -1
- data/lib/celluloid_pubsub/client.rb +3 -3
- data/lib/celluloid_pubsub/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e2eb0109ea135c9b42108f5f4db80974a3838048
|
4
|
+
data.tar.gz: 3ffd573f3a17a224b70576bdc158f53b3199da8b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 76e716f4ad7d1465a9ccc6999e4398081e434c641b62d5ec5d62da4ff4d359a382a9016175526d0509210b914dc4aac871c899bb47d79216e72713fbd0841a03
|
7
|
+
data.tar.gz: 0cbe72567279e79e252d0c4a779d809ed9b78321f947ce83e6febbf07c85a0bbda4e8c6cb6668dc24f90afb210c4c9b8be90dad26b63055389271fa47dadda8f
|
data/examples/simple_test.rb
CHANGED
@@ -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)
|
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.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-
|
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.
|
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
|