evt-message_store 2.3.1.1 → 2.3.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/message_store/controls/message_data.rb +4 -0
- data/lib/message_store/controls/stream_name.rb +5 -4
- data/lib/message_store/get/stream/last/substitute.rb +1 -1
- data/lib/message_store/get/stream/last.rb +3 -3
- data/lib/message_store/postgres +1 -0
- data/lib/message_store/postgres.rb +1 -0
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bb7579fea3b34b76450ae2e3a06c7237cdc43f40172e8eef960b023f659bebc8
|
4
|
+
data.tar.gz: 99c1845300259cf3e76872319cf0069ca6a07ff4163577491137014583079aba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d237454d49bb49b6e7b9b5427ff6b73ef0b959b41404985f221d4b8f0eeab6bd95c304a4a645e53c55079114d7d0f26fd1a429e7edc760b301030c2b5e83e4de
|
7
|
+
data.tar.gz: 6a4f4004a32e78371801a17013a46dbcd33ac17ecabbe15c2ea4062b64c53a4ef82a379556abe127d16ed21210f35eb44f8dcbefa6c66cba3db88f1dd57b59d0
|
@@ -22,13 +22,14 @@ module MessageStore
|
|
22
22
|
|
23
23
|
stream_name = category
|
24
24
|
stream_name = "#{stream_name}:#{type_list}" unless type_list.nil?
|
25
|
-
|
25
|
+
|
26
|
+
if not id.nil?
|
27
|
+
composed_id = MessageStore::ID.id(id)
|
28
|
+
stream_name = "#{stream_name}-#{composed_id}"
|
29
|
+
end
|
26
30
|
|
27
31
|
stream_name
|
28
32
|
end
|
29
33
|
end
|
30
34
|
end
|
31
35
|
end
|
32
|
-
|
33
|
-
|
34
|
-
|
@@ -22,7 +22,7 @@ module MessageStore
|
|
22
22
|
end
|
23
23
|
|
24
24
|
module InstanceActuator
|
25
|
-
def call(stream_name)
|
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, session: nil)
|
56
|
+
def call(stream_name, type: nil, session: nil)
|
57
57
|
instance = build(session: session)
|
58
|
-
instance.(stream_name)
|
58
|
+
instance.(stream_name, type: type)
|
59
59
|
end
|
60
60
|
end
|
61
61
|
end
|
@@ -0,0 +1 @@
|
|
1
|
+
/Users/sbellware/projects/eventide/message-store-postgres/lib/message_store/postgres
|
@@ -0,0 +1 @@
|
|
1
|
+
/Users/sbellware/projects/eventide/message-store-postgres/lib/message_store/postgres.rb
|
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.
|
4
|
+
version: 2.3.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:
|
11
|
+
date: 2022-10-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: evt-casing
|
@@ -156,6 +156,8 @@ files:
|
|
156
156
|
- lib/message_store/message_data/read.rb
|
157
157
|
- lib/message_store/message_data/write.rb
|
158
158
|
- lib/message_store/no_stream.rb
|
159
|
+
- lib/message_store/postgres
|
160
|
+
- lib/message_store/postgres.rb
|
159
161
|
- lib/message_store/read.rb
|
160
162
|
- lib/message_store/read/iterator.rb
|
161
163
|
- lib/message_store/stream_name.rb
|
@@ -179,7 +181,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
179
181
|
- !ruby/object:Gem::Version
|
180
182
|
version: '0'
|
181
183
|
requirements: []
|
182
|
-
rubygems_version: 3.
|
184
|
+
rubygems_version: 3.3.3
|
183
185
|
signing_key:
|
184
186
|
specification_version: 4
|
185
187
|
summary: Common primitives for platform-specific message store implementations
|