evt-messaging 2.5.1.2 → 2.5.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0b88d9fc2f126343b5373d93c22046df73c920bdfba1921e1c606ee2929d8240
4
- data.tar.gz: 46ca26755b68db2c9c4eb9427e530bfc6579857ef93a298912e4774ada3521af
3
+ metadata.gz: 89ca33e5b0fa877f3ef134f979c220da8ef94caa5fa7b9fe4cb761773ff4ba01
4
+ data.tar.gz: 16504c4203a82f7bef3fd5901d3926bd3d33adbfc569c2925b97d32f18b5a8a9
5
5
  SHA512:
6
- metadata.gz: c753037cf3097102bbc9a7fe3a52eaa95a7cc63213caeaa8e23d7580f3a8ea616e6161e073f726289c8ee0be84a4b592719584b62b840c3fb01e956f5be63d30
7
- data.tar.gz: 15f5370691d0868a5730de4683fbc1a1993673d0ff2a6ea49bf79f98dc104a2cb67ce5cf3df2177566b8dfde8718931d86800c68815667e6cd7b368c3e65449f
6
+ metadata.gz: 151352d092b0fad0c1f06c495d0e5a32ab46a6c4ae927f859b520f6ed1c4e1697ee2b0b4fe34ccc86967c1ad4cdb13a3ec9391879fce82755f37e843f144365a
7
+ data.tar.gz: 01c1ac37c1f4cf65e3fc6836f90245927e3257595203ca3b5016f43e5bb4745ae817248cd5c926fc790fb13f0e78b25d11f84d4c30a8af275646600ef2a2b4ac
@@ -64,19 +64,21 @@ module Messaging
64
64
  return false
65
65
  end
66
66
 
67
- if causation_message_position.nil? && preceding_metadata.position.nil?
67
+ if causation_message_stream_name != preceding_metadata.stream_name
68
68
  return false
69
69
  end
70
70
 
71
- if causation_message_global_position.nil? && preceding_metadata.global_position.nil?
71
+
72
+ if causation_message_position.nil? && preceding_metadata.position.nil?
72
73
  return false
73
74
  end
74
75
 
75
- if causation_message_stream_name != preceding_metadata.stream_name
76
+ if causation_message_position != preceding_metadata.position
76
77
  return false
77
78
  end
78
79
 
79
- if causation_message_position != preceding_metadata.position
80
+
81
+ if causation_message_global_position.nil? && preceding_metadata.global_position.nil?
80
82
  return false
81
83
  end
82
84
 
@@ -84,8 +86,18 @@ module Messaging
84
86
  return false
85
87
  end
86
88
 
87
- if reply_stream_name != preceding_metadata.reply_stream_name
88
- return false
89
+
90
+ if not preceding_metadata.correlation_stream_name.nil?
91
+ if correlation_stream_name != preceding_metadata.correlation_stream_name
92
+ return false
93
+ end
94
+ end
95
+
96
+
97
+ if not preceding_metadata.reply_stream_name.nil?
98
+ if reply_stream_name != preceding_metadata.reply_stream_name
99
+ return false
100
+ end
89
101
  end
90
102
 
91
103
  true
@@ -114,6 +126,33 @@ module Messaging
114
126
  end
115
127
  alias :correlates? :correlated?
116
128
 
129
+ def self.source_attributes
130
+ [
131
+ :stream_name,
132
+ :position,
133
+ :global_position
134
+ ]
135
+ end
136
+
137
+ def self.causation_attributes
138
+ [
139
+ :causation_message_stream_name,
140
+ :causation_message_position,
141
+ :causation_message_global_position
142
+ ]
143
+ end
144
+
145
+ def self.origin_attributes
146
+ [
147
+ :correlation_stream_name,
148
+ :reply_stream_name
149
+ ]
150
+ end
151
+
152
+ def self.workflow_attributes
153
+ causation_attributes + origin_attributes
154
+ end
155
+
117
156
  def self.transient_attributes
118
157
  [
119
158
  :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: 2.5.1.2
4
+ version: 2.5.2.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: 2020-07-25 00:00:00.000000000 Z
11
+ date: 2020-08-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: evt-message_store