evt-messaging 2.7.0.1 → 2.7.0.3

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: 9c8945f49315d73d29f7c3a3fa6d88bfca5c8eeb2dcd8fd5e34f2b5020881ef4
4
- data.tar.gz: 77bfd0a23528e8624e74ca29a0a590892ce29d64571a9e75aeca7ed5247def60
3
+ metadata.gz: d91075254742dc5d1495ece56f03da6efe9ffbaae64837be955eadfa4f558fd6
4
+ data.tar.gz: 57dbbc6411974b48fd7f95f836831930e8e38e61aabbca3312f4a86785c7dfb7
5
5
  SHA512:
6
- metadata.gz: dbf96b8c14e18786fec12e942b075276b31ded1b1d1c1b7a9e062564d7923f8dbc4e5e1884d7bb935bed784a57f58c2c8bed7e752265643c12f9b462e685d095
7
- data.tar.gz: 8b5ca6436050e0938f58bf081a8369f6fadb5181aed72875b0a0b3c3fa2decc8042336fcb396a175e77f016a56bdd3e70bc2f767f4e518b2274cb197c6e9621d
6
+ metadata.gz: f48baf652209da18c6fa2d9f9679c4b7f15cce8ab1cc540654039e4ef2562783372206e3b8c298cd7573b6aa1c7368480c54ed483b4a4ce10a377b3e6eac52af
7
+ data.tar.gz: 24d9f818b58f0062a89ba9685bdc9c8996c0241ce92d17c94039323a8e97a0ef14a39b3f50a0c1a48801a6337203e1ad0f5ab2d0f1929406b98284198e6f9207
@@ -4,9 +4,6 @@ module Messaging
4
4
  def self.example
5
5
  data = self.data
6
6
 
7
- data[:properties] = properties
8
- data[:local_properties] = local_properties
9
-
10
7
  Messaging::Message::Metadata.build(data)
11
8
  end
12
9
 
@@ -8,7 +8,8 @@ module Messaging
8
8
  class Example
9
9
  include Messaging::Write
10
10
 
11
- virtual :configure
11
+ def configure(*)
12
+ end
12
13
  end
13
14
  end
14
15
  end
@@ -5,7 +5,7 @@ module Messaging
5
5
  def self.included(cls)
6
6
  cls.class_exec do
7
7
  include Dependency
8
- include Virtual
8
+ include TemplateMethod
9
9
 
10
10
  def handler_logger
11
11
  @handler_logger ||= Log.get(self)
@@ -18,7 +18,7 @@ module Messaging
18
18
  extend HandleMacro
19
19
  extend MessageRegistry
20
20
 
21
- virtual :configure
21
+ template_method :configure
22
22
 
23
23
  attr_writer :strict
24
24
  end
@@ -159,6 +159,7 @@ module Messaging
159
159
  end
160
160
  end
161
161
 
162
+ ## Can't null-coalesce here. It's a boolean. Use expanded form of `if` block - Scott, Mon Oct 16 2023
162
163
  def strict
163
164
  @strict ||= Defaults.strict
164
165
  end
@@ -66,6 +66,13 @@ module Messaging
66
66
  end
67
67
  end
68
68
 
69
+ ## Consider whether "following" takes correlation stream and
70
+ ## reply stream into consideration. Arguably, these attributes
71
+ ## aren't indicative of causation.
72
+ ## Also, follows? doesn't take metadata into consideration
73
+ ## What's probably needed is a `copied?` predicate on metadata
74
+ ## (without a delegation from message)
75
+ ## Scott, Aaron, Tue Apr 11 2023
69
76
  def follows?(preceding_metadata)
70
77
  if causation_message_stream_name.nil? && preceding_metadata.stream_name.nil?
71
78
  return false
@@ -6,10 +6,10 @@ module Messaging
6
6
 
7
7
  def self.included(cls)
8
8
  cls.class_exec do
9
- include Virtual
9
+ include TemplateMethod
10
10
  include Messaging::Category
11
11
 
12
- virtual :category
12
+ template_method :category
13
13
  end
14
14
  end
15
15
 
@@ -32,6 +32,7 @@ module Messaging
32
32
  end
33
33
  alias :write :call
34
34
 
35
+ ## Should never have had an exclamation mark - Scott, Tue Jan 17 2023
35
36
  def raise_expected_version_error!
36
37
  self.raise_expected_version_error = true
37
38
  nil
@@ -5,7 +5,7 @@ module Messaging
5
5
  def self.included(cls)
6
6
  cls.class_exec do
7
7
  include Dependency
8
- include Virtual
8
+ include TemplateMethod
9
9
  include Log::Dependency
10
10
 
11
11
  dependency :message_writer
@@ -15,7 +15,7 @@ module Messaging
15
15
  extend Call
16
16
  extend Configure
17
17
 
18
- abstract :configure
18
+ template_method! :configure
19
19
 
20
20
  const_set :Substitute, Substitute
21
21
  end
@@ -59,6 +59,7 @@ module Messaging
59
59
  message_batch = Array(message_or_batch)
60
60
 
61
61
  message_data_batch = message_data_batch(message_batch, reply_stream_name)
62
+ ## Can be called `position` - Scott, Tue Mar 26 2024
62
63
  last_position = message_writer.(message_data_batch, stream_name, expected_version: expected_version)
63
64
 
64
65
  unless message_or_batch.is_a? Array
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.7.0.1
4
+ version: 2.7.0.3
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: 2022-09-12 00:00:00.000000000 Z
11
+ date: 2024-04-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: evt-message_store
@@ -108,7 +108,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
108
108
  - !ruby/object:Gem::Version
109
109
  version: '0'
110
110
  requirements: []
111
- rubygems_version: 3.3.3
111
+ rubygems_version: 3.4.10
112
112
  signing_key:
113
113
  specification_version: 4
114
114
  summary: Common primitives for platform-specific messaging implementations for Eventide