evt-message_store 0.6.0.0 → 0.7.0.1
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/message_data.rb +2 -2
- data/lib/message_store/stream_name.rb +1 -1
- data/lib/message_store/write.rb +2 -2
- 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: 93fa289e3bfe101341eeb194e73ef1b826990271803938cf9afe00635e25fc4e
|
4
|
+
data.tar.gz: 85de52aa936cefccddce22364ec0d9dd7ad3c7e636bb5fb1a383416d52aa54bb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 78facd6d6bae8930e2871cdffe6bc1e02fef9408bd298751452dddb8fcf4dbf0111205db8391d748c737d43e749b55aced8e966d778e217e6e1a76ddf3d371fe
|
7
|
+
data.tar.gz: c907925ecf5f7f76c54416ce8c44c3398a5475f2a11c6c98f6a492303d59dc3d70be393c548de100dc4fb0cd8be7ca0b8cb3aad330d68c770f2ef8de99c60cf2
|
@@ -4,7 +4,7 @@ module MessageStore
|
|
4
4
|
|
5
5
|
def self.stream_name(category_name, id=nil, type: nil, types: nil)
|
6
6
|
if category_name == nil
|
7
|
-
raise Error, "Category name must not be omitted"
|
7
|
+
raise Error, "Category name must not be omitted from stream name"
|
8
8
|
end
|
9
9
|
|
10
10
|
types = Array(types)
|
data/lib/message_store/write.rb
CHANGED
@@ -41,7 +41,7 @@ module MessageStore
|
|
41
41
|
|
42
42
|
def call(message_data, stream_name, expected_version: nil)
|
43
43
|
logger.trace(tag: :write) { "Writing message data (Stream Name: #{stream_name}, Expected Version: #{expected_version.inspect})" }
|
44
|
-
logger.trace(tags: [:data, :message_data
|
44
|
+
logger.trace(tags: [:data, :message_data]) { message_data.pretty_inspect }
|
45
45
|
|
46
46
|
batch = Array(message_data)
|
47
47
|
|
@@ -50,7 +50,7 @@ module MessageStore
|
|
50
50
|
position = write(batch, stream_name, expected_version: expected_version)
|
51
51
|
|
52
52
|
logger.info(tag: :write) { "Wrote message data (Stream Name: #{stream_name}, Expected Version: #{expected_version.inspect})" }
|
53
|
-
logger.info(tags: [:data, :message_data
|
53
|
+
logger.info(tags: [:data, :message_data]) { message_data.pretty_inspect }
|
54
54
|
|
55
55
|
position
|
56
56
|
end
|
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.7.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: 2018-07-
|
11
|
+
date: 2018-07-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: evt-casing
|