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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/messaging/stream_name.rb +3 -7
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 850842d35f74a120e91ac6e7fd03a4c7c1076cb8
4
- data.tar.gz: daf3058d22ec599a543b375e6ad530a69fe9f34c
3
+ metadata.gz: a06399835d71ab312269b0fe003232110e974461
4
+ data.tar.gz: eb89979f8681681c10feda912ccd87b5d156a4c5
5
5
  SHA512:
6
- metadata.gz: 8242050c1c4da5ff26fca9ce8684290144b2eb840cedd622df69c5f79eca175856b2ee59f8c84e817a5778a89da8d36a9b101e4ec2e10520d928d09ed96d2af0
7
- data.tar.gz: 74b8b105d92eb9fd280457fdb22c1dfdb7a6a8d36ddf10cc8cced1ffb1d2b1c09e144c422ada8d7bb681b01ae332645b89ed9f4f3e7478f0180fc2eb5f8d780a
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 category, id
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 "#{category}:command", id
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
- category_stream_name = category_stream_name(category)
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.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-20 00:00:00.000000000 Z
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