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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3f32c71b5d26c3836a8fe8273bda67167120d95dae478c7bec4d6adff7066714
4
- data.tar.gz: 0c20f9d0e9d70019449e83b7ee38558a37b4532ec082ff75f9efad8e6a6afada
3
+ metadata.gz: d91075254742dc5d1495ece56f03da6efe9ffbaae64837be955eadfa4f558fd6
4
+ data.tar.gz: 57dbbc6411974b48fd7f95f836831930e8e38e61aabbca3312f4a86785c7dfb7
5
5
  SHA512:
6
- metadata.gz: bd7af57fd67951f404b178c29d128d9bab60a12cbde574b960eb8840d853c47751682e23e0833ea8b06f5965cfabdc2d347fae5709158ce202232ca1110e46a3
7
- data.tar.gz: f691c800fc90f762fcc83b1b535b783c91a281e8bf358a3758f4211a0843cfea9d0c11e6e1381a64954ba5e4cff687fa4f852a7db03faf08a77b9913125bfa80
6
+ metadata.gz: f48baf652209da18c6fa2d9f9679c4b7f15cce8ab1cc540654039e4ef2562783372206e3b8c298cd7573b6aa1c7368480c54ed483b4a4ce10a377b3e6eac52af
7
+ data.tar.gz: 24d9f818b58f0062a89ba9685bdc9c8996c0241ce92d17c94039323a8e97a0ef14a39b3f50a0c1a48801a6337203e1ad0f5ab2d0f1929406b98284198e6f9207
@@ -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
@@ -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
 
@@ -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.2
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: 2023-05-19 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.4.6
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