evt-messaging 0.21.0.0 → 0.21.1.0

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 +10 -0
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4aeed2aeac646e4e394dc9813c33fb6b7f74b90d
4
- data.tar.gz: b377293b1b75462df3ec3941b414f931f9d6a463
3
+ metadata.gz: 5c2c9acd0e60e2eeeba4075ebb32ad5a94534152
4
+ data.tar.gz: a2bb94730d0d2d22132f1ffaf5d0e631ce9fd9c8
5
5
  SHA512:
6
- metadata.gz: 70d9bcaad417e5ec56b4d2794dcfc52eb831cda874346b2b8dc0fef39d2c9bae7954e0e55c72f28c701893bb04c7a4857f18d5f98829a35a0b2182d8539d4c71
7
- data.tar.gz: 79dd28c49746ffd892cbb5dd4f9004468e57aca580d22bf9f95e419c84ee032735f5aaf1d1fa50bafacc455d5a78f85d6b2f6aa1e75bb6c1a89fa54ce2fc9df1
6
+ metadata.gz: 6f9051e8dead32af1576cbbc9f513e11884e1e90e49914635579d809886e7f1070f9cc4b203c79cc24673963f64de797e1ed5e289cdacb4862cb7f6a0e324934
7
+ data.tar.gz: de6a1e4f5325d8b950665f5fdc1095daeffe8e0ea51ccf9f46b9a4bef0cf33cb24e53a6bcd81b8c31ad4bfd8f951f7c00ec8fd6f8810177bba1816159f41999f
@@ -28,6 +28,16 @@ module Messaging
28
28
  MessageStore::StreamName.stream_name(category, type: 'command')
29
29
  end
30
30
 
31
+ def exclusive_command_stream_name(id, category=nil)
32
+ category ||= self.category
33
+ MessageStore::StreamName.stream_name(category, id, types: ['command', 'exclusive'])
34
+ end
35
+
36
+ def exclusive_command_category_stream_name(category=nil)
37
+ category ||= self.category
38
+ MessageStore::StreamName.stream_name(category, types: ['command', 'exclusive'])
39
+ end
40
+
31
41
  def self.get_category(stream_name)
32
42
  MessageStore::StreamName.get_category(stream_name)
33
43
  end
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.21.0.0
4
+ version: 0.21.1.0
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-09-10 00:00:00.000000000 Z
11
+ date: 2017-10-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: evt-message_store