evt-message_store 2.3.2.2 → 2.4.0.1

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: 98008e551e6aa9e1b7907f3f3354b8e4f743b8284e47d8dea70c9c09c6793064
4
- data.tar.gz: 5de8e3d39cf5a8a30c5dba9818048b5741b3b492bff871d73f90c2f80db2618b
3
+ metadata.gz: a606f05c79a070539c6f2e48b79758fabe6ac7b945571b4c8e272c93cfc1f84f
4
+ data.tar.gz: 7a743631f2b5e40ad9c0a96012cdec7ddcd4e8c1ecd0302ead8f6287f4c7b2c2
5
5
  SHA512:
6
- metadata.gz: e7c5df77009052ce3c94ab782a4bccac81460afd4fce6ff4110a7117df68e318c906af5b0ce8cc2f6955af55c4bd373ac9b88f487a460d806565d289c5d4565b
7
- data.tar.gz: 5c4833013a3448e35d9da58a1e4058b57f9c2fb40fb205acdf56c0569346a56eedf2eb4aefd9c4e1cecd58542c0c75f994895333dc45feb23b9e4d3735bbf953
6
+ metadata.gz: 0e71b0a3522f083de4750bcad18a2729da9161835bc4cd233473b17c33b60d8639f2ec1b3745e21d000a94c697672199dd042bb799e66a348a6c7ee9ce391593
7
+ data.tar.gz: bf8b9369bb832347b94ec75d4efbc4fb715dac0bf78ae4b306c71be379588440046aef00c75c9a8a724a99f2242616d623b2ac6cafdbd57f8dec868f7f59b503
@@ -10,7 +10,7 @@ module MessageStore
10
10
  class GetLast
11
11
  include Get::Stream::Last
12
12
 
13
- def call(stream_name, type: nil)
13
+ def call(stream_name, type=nil)
14
14
  streams[stream_name]
15
15
  end
16
16
 
@@ -5,7 +5,7 @@ module MessageStore
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
  extend Build
@@ -14,15 +14,15 @@ module MessageStore
14
14
 
15
15
  prepend InstanceActuator
16
16
 
17
- virtual :configure
18
- abstract :call
17
+ template_method :configure
18
+ template_method! :call
19
19
 
20
20
  const_set :Substitute, Substitute
21
21
  end
22
22
  end
23
23
 
24
24
  module InstanceActuator
25
- def call(stream_name, type: nil)
25
+ def call(stream_name, type=nil)
26
26
  logger.trace(tag: :get) { "Getting last message data (Stream Name: #{stream_name})" }
27
27
 
28
28
  message_data = super
@@ -53,9 +53,9 @@ module MessageStore
53
53
  end
54
54
 
55
55
  module Call
56
- def call(stream_name, type: nil, session: nil)
56
+ def call(stream_name, type=nil, session: nil)
57
57
  instance = build(session: session)
58
- instance.(stream_name, type: type)
58
+ instance.(stream_name, type)
59
59
  end
60
60
  end
61
61
  end
@@ -2,7 +2,7 @@ module MessageStore
2
2
  module Get
3
3
  class Substitute
4
4
  include Initializer
5
- include Virtual
5
+ include TemplateMethod
6
6
 
7
7
  include Get
8
8
 
@@ -4,13 +4,13 @@ module MessageStore
4
4
  cls.class_exec do
5
5
  include Dependency
6
6
  include Initializer
7
- include Virtual
7
+ include TemplateMethod
8
8
  include Log::Dependency
9
9
 
10
- abstract :call
11
- abstract :stream_name
12
- abstract :batch_size
13
- abstract :last_position
10
+ template_method! :call
11
+ template_method! :stream_name
12
+ template_method! :batch_size
13
+ template_method! :last_position
14
14
  end
15
15
  end
16
16
  end
@@ -3,7 +3,7 @@ module MessageStore
3
3
  class Iterator
4
4
  include Dependency
5
5
  include Initializer
6
- include Virtual
6
+ include TemplateMethod
7
7
  include Log::Dependency
8
8
 
9
9
  dependency :get, Get
@@ -4,7 +4,7 @@ module MessageStore
4
4
  cls.class_exec do
5
5
  include Dependency
6
6
  include Initializer
7
- include Virtual
7
+ include TemplateMethod
8
8
  include Log::Dependency
9
9
 
10
10
  extend Build
@@ -15,7 +15,7 @@ module MessageStore
15
15
 
16
16
  initializer :stream_name, :position, :batch_size
17
17
 
18
- abstract :configure
18
+ template_method! :configure
19
19
  end
20
20
  end
21
21
 
@@ -3,7 +3,7 @@ module MessageStore
3
3
  def self.included(cls)
4
4
  cls.class_exec do
5
5
  include Dependency
6
- include Virtual
6
+ include TemplateMethod
7
7
  include Log::Dependency
8
8
 
9
9
  extend Build
@@ -12,8 +12,8 @@ module MessageStore
12
12
 
13
13
  dependency :identifier, Identifier::UUID::Random
14
14
 
15
- abstract :configure
16
- abstract :write
15
+ template_method! :configure
16
+ template_method! :write
17
17
  end
18
18
  end
19
19
 
data/lib/message_store.rb CHANGED
@@ -6,7 +6,7 @@ require 'identifier/uuid'
6
6
  require 'schema'
7
7
  require 'initializer'
8
8
  require 'transform'
9
- require 'virtual'
9
+ require 'template_method'
10
10
  require 'async_invocation'
11
11
 
12
12
  require 'message_store/expected_version'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: evt-message_store
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.2.2
4
+ version: 2.4.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: 2022-10-13 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-casing
@@ -81,7 +81,7 @@ dependencies:
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
- name: evt-virtual
84
+ name: evt-template_method
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - ">="
@@ -179,7 +179,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
179
179
  - !ruby/object:Gem::Version
180
180
  version: '0'
181
181
  requirements: []
182
- rubygems_version: 3.3.3
182
+ rubygems_version: 3.4.10
183
183
  signing_key:
184
184
  specification_version: 4
185
185
  summary: Common primitives for platform-specific message store implementations