evt-message_store 0.5.0.1 → 0.6.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/message_store/stream_name.rb +6 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c1ee8b012d9486c47c3cac8acea4dcacfd9e5558ea5efd72bb15e0447f1f68eb
|
4
|
+
data.tar.gz: a2daca22a9b19b67450bba3b5e9b97ded7216378ee8741177191b65071a0ca59
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7d0e17af10573b7b4a843993d0f8caf91fc1ac845af86b12936ed5905cd137959eadb95d4420c5d4f1dd72ea5d8c3fa50851d6f1bfb0b19fc3d4258463471d45
|
7
|
+
data.tar.gz: '084ac12563886abfec715e39b28ff9603143a9a3f33778d89a73d04d30f8ddc47aec1f3c0799285a8e76ff5847b7b1cac8c9d77cbcf3d7b0b6ca8586817efecc'
|
@@ -1,6 +1,12 @@
|
|
1
1
|
module MessageStore
|
2
2
|
module StreamName
|
3
|
+
Error = Class.new(RuntimeError)
|
4
|
+
|
3
5
|
def self.stream_name(category_name, id=nil, type: nil, types: nil)
|
6
|
+
if category_name == nil
|
7
|
+
raise Error, "Category name must not be omitted"
|
8
|
+
end
|
9
|
+
|
4
10
|
types = Array(types)
|
5
11
|
types.unshift(type) unless type.nil?
|
6
12
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: evt-message_store
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0.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: 2018-
|
11
|
+
date: 2018-07-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: evt-casing
|