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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 24eb80ed66beb2bfa7771ea0eb79367e024b8bc33b88c82fb7e8fca70f8af5e6
4
- data.tar.gz: 00b9996bf51dae5fa1fbbe2aa65c24dbd66d7791ebbcd3be5f91be0012e746fc
3
+ metadata.gz: c1ee8b012d9486c47c3cac8acea4dcacfd9e5558ea5efd72bb15e0447f1f68eb
4
+ data.tar.gz: a2daca22a9b19b67450bba3b5e9b97ded7216378ee8741177191b65071a0ca59
5
5
  SHA512:
6
- metadata.gz: 1e13f73fa2209e48db67f191e6a7592e3627f6cf1de38d04f773552678127a69580539c0ca1c5496937fa60bf320e6e9ad8e8d41fe147c0c3f539913beaab33a
7
- data.tar.gz: 514c12aba28d0204e49f7afe42bba813abb19fafdfe5644d2a99015d239199f51f81b7a534ee8f080db3975ac05bed5cddca7035ffc99eeaa7e3eca92a868fca
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.5.0.1
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-06-05 00:00:00.000000000 Z
11
+ date: 2018-07-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: evt-casing