evt-messaging 0.28.0.0 → 0.28.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/messaging/message/import.rb +1 -1
- data/lib/messaging/message/metadata.rb +11 -11
- 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: ca05d0cbeffa72490fe548c2e1bf240cc280b369c86326c95fec135f8c223c18
|
4
|
+
data.tar.gz: e396c12ccd4425feac4f26325beaf8501497e6d770a4972375d903e6fbd245c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b053e8ff3d1ffff0c6fd5a238212f0291bffbdb467b9b26b01bc23bdbe6052a235a21952738f617f02c6de24c0bdef9d53d86467ddebcdfe5da8abde7f4ed1e2
|
7
|
+
data.tar.gz: 5371505175e8358c3864dc72d600176e91a3b62dfba621af9c9652269d08cebab9131377cf8d3221d528cef006fe18c6f12708dc3c74993561a4ca644defac4c
|
@@ -4,7 +4,7 @@ module Messaging
|
|
4
4
|
Error = Class.new(RuntimeError)
|
5
5
|
|
6
6
|
def self.call(message_data, message_class)
|
7
|
-
raise Error unless message_class.message_type?(message_data.type)
|
7
|
+
raise Error, "Message class #{message_class} doesn't match MessageData type #{message_data.type.inspect}" unless message_class.message_type?(message_data.type)
|
8
8
|
|
9
9
|
::Transform::Read.(message_data, :message_data, message_class)
|
10
10
|
end
|
@@ -42,21 +42,21 @@ module Messaging
|
|
42
42
|
"#{causation_message_stream_name}/#{causation_message_position}"
|
43
43
|
end
|
44
44
|
|
45
|
-
def follow(
|
46
|
-
self.causation_message_stream_name =
|
47
|
-
self.causation_message_position =
|
48
|
-
self.causation_message_global_position =
|
45
|
+
def follow(preceding_metadata)
|
46
|
+
self.causation_message_stream_name = preceding_metadata.stream_name
|
47
|
+
self.causation_message_position = preceding_metadata.position
|
48
|
+
self.causation_message_global_position = preceding_metadata.global_position
|
49
49
|
|
50
|
-
self.correlation_stream_name =
|
50
|
+
self.correlation_stream_name = preceding_metadata.correlation_stream_name
|
51
51
|
|
52
|
-
self.reply_stream_name =
|
52
|
+
self.reply_stream_name = preceding_metadata.reply_stream_name
|
53
53
|
end
|
54
54
|
|
55
|
-
def follows?(
|
56
|
-
causation_message_identifier ==
|
57
|
-
causation_message_global_position ==
|
58
|
-
correlation_stream_name ==
|
59
|
-
reply_stream_name ==
|
55
|
+
def follows?(metadata)
|
56
|
+
causation_message_identifier == metadata.identifier &&
|
57
|
+
causation_message_global_position == metadata.global_position &&
|
58
|
+
correlation_stream_name == metadata.correlation_stream_name &&
|
59
|
+
reply_stream_name == metadata.reply_stream_name
|
60
60
|
end
|
61
61
|
|
62
62
|
def clear_reply_stream_name
|
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.28.0.
|
4
|
+
version: 0.28.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-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: evt-message_store
|