evt-messaging 0.8.0.0 → 0.8.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/messaging/stream_name.rb +3 -7
- 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: a06399835d71ab312269b0fe003232110e974461
|
4
|
+
data.tar.gz: eb89979f8681681c10feda912ccd87b5d156a4c5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6f09a27bec28688161cedeae8be349979dd5adaade7324633058d17f54375dfbb3edba13432c9f18a9e7723674f9740f1b28c8bde44e8450a29a8af7026321fb
|
7
|
+
data.tar.gz: 013a15eee86d04fb7eae4735e9277beeda7d5a0c61d1557ae426a797239f29b39669db47e46a6fc0757efeb565508f00d596c1396f56510670fad66ec8ca4507
|
@@ -2,8 +2,6 @@ module Messaging
|
|
2
2
|
module StreamName
|
3
3
|
extend self
|
4
4
|
|
5
|
-
include EventSource::StreamName
|
6
|
-
|
7
5
|
def self.included(cls)
|
8
6
|
cls.extend Macro
|
9
7
|
end
|
@@ -27,12 +25,12 @@ module Messaging
|
|
27
25
|
|
28
26
|
def stream_name(id, category=nil)
|
29
27
|
category ||= self.category
|
30
|
-
EventSource::StreamName.stream_name
|
28
|
+
EventSource::StreamName.stream_name(category, id)
|
31
29
|
end
|
32
30
|
|
33
31
|
def command_stream_name(id, category=nil)
|
34
32
|
category ||= self.category
|
35
|
-
EventSource::StreamName.stream_name
|
33
|
+
EventSource::StreamName.stream_name category, id, type: 'command'
|
36
34
|
end
|
37
35
|
|
38
36
|
def category_stream_name(category=nil)
|
@@ -42,9 +40,7 @@ module Messaging
|
|
42
40
|
|
43
41
|
def command_category_stream_name(category=nil)
|
44
42
|
category ||= self.category
|
45
|
-
|
46
|
-
|
47
|
-
"#{category_stream_name}:command"
|
43
|
+
EventSource::StreamName.stream_name category, type: 'command'
|
48
44
|
end
|
49
45
|
|
50
46
|
def self.get_category(stream_name)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: evt-messaging
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.0.
|
4
|
+
version: 0.8.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- The Eventide Project
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-01-
|
11
|
+
date: 2017-01-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: evt-event_source
|