ruby_event_store 1.2.0 → 1.2.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d0c79f8dae2279ab828fb59a201d367d5cda8d4734a2013e3a0e619fc57de3c9
|
4
|
+
data.tar.gz: 4fee68b6561a59730c7cc5cadf000653fa216c88729326ee15e0040ce6ab0322
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c901d6cbf77e77b7e58de6af3ad2f74836cd85aee7b800a09357ea3b8661db57cfbab6497261fbe7399348efa230f36a11f15ebbbae267baa7d71e1b1b988994
|
7
|
+
data.tar.gz: bc368139eeeedfba76e52ecbaff4487a9d5c73b3f2bd313fe3bccd4afd298ceb0c6ad08cf10b14a0fad163fe51dc161fbe79c8d815dfcd47f8ede17a34f1df30
|
@@ -51,7 +51,8 @@ module RubyEventStore
|
|
51
51
|
|
52
52
|
def update_messages(messages)
|
53
53
|
messages.each do |new_msg|
|
54
|
-
location = global.index{|m| new_msg.event_id.eql?(m.event_id)}
|
54
|
+
location = global.index{|m| new_msg.event_id.eql?(m.event_id)}
|
55
|
+
raise EventNotFound.new(new_msg.event_id) unless location
|
55
56
|
global[location] = new_msg
|
56
57
|
streams.values.each do |str|
|
57
58
|
location = str.index{|m| new_msg.event_id.eql?(m.event_id)}
|
@@ -69,7 +69,8 @@ module RubyEventStore
|
|
69
69
|
acc[key] = encryption_metadata(data, value)
|
70
70
|
when Proc
|
71
71
|
key_identifier = value.call(data)
|
72
|
-
encryption_key = key_repository.key_of(key_identifier)
|
72
|
+
encryption_key = key_repository.key_of(key_identifier)
|
73
|
+
raise MissingEncryptionKey.new(key_identifier) unless encryption_key
|
73
74
|
acc[key] = {
|
74
75
|
cipher: encryption_key.cipher,
|
75
76
|
iv: encryption_key.random_iv,
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby_event_store
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Arkency
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-11-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: concurrent-ruby
|