evt-messaging 2.7.0.2 → 2.7.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/messaging/controls/write.rb +2 -1
- data/lib/messaging/handle.rb +3 -2
- data/lib/messaging/stream_name.rb +2 -2
- data/lib/messaging/write.rb +3 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d91075254742dc5d1495ece56f03da6efe9ffbaae64837be955eadfa4f558fd6
|
4
|
+
data.tar.gz: 57dbbc6411974b48fd7f95f836831930e8e38e61aabbca3312f4a86785c7dfb7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f48baf652209da18c6fa2d9f9679c4b7f15cce8ab1cc540654039e4ef2562783372206e3b8c298cd7573b6aa1c7368480c54ed483b4a4ce10a377b3e6eac52af
|
7
|
+
data.tar.gz: 24d9f818b58f0062a89ba9685bdc9c8996c0241ce92d17c94039323a8e97a0ef14a39b3f50a0c1a48801a6337203e1ad0f5ab2d0f1929406b98284198e6f9207
|
data/lib/messaging/handle.rb
CHANGED
@@ -5,7 +5,7 @@ module Messaging
|
|
5
5
|
def self.included(cls)
|
6
6
|
cls.class_exec do
|
7
7
|
include Dependency
|
8
|
-
include
|
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
|
-
|
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
|
data/lib/messaging/write.rb
CHANGED
@@ -5,7 +5,7 @@ module Messaging
|
|
5
5
|
def self.included(cls)
|
6
6
|
cls.class_exec do
|
7
7
|
include Dependency
|
8
|
-
include
|
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
|
-
|
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.
|
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:
|
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.4.
|
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
|