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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cb4d8995c7708ce060d8ff40fcd223b6867fb78aa3e6d3fd8c2de22c5a5fe08b
4
- data.tar.gz: 732951ca371e4d92ad5681ecf2c7c26f7ac53f2076c50ebfe7b16d3f75a13484
3
+ metadata.gz: bb7579fea3b34b76450ae2e3a06c7237cdc43f40172e8eef960b023f659bebc8
4
+ data.tar.gz: 99c1845300259cf3e76872319cf0069ca6a07ff4163577491137014583079aba
5
5
  SHA512:
6
- metadata.gz: 4c2c039b57d9f148863a09aaa5df67f64cda57d8a7014dcc060bcf90336bc716e83dde4dc3dfa7d735975b651276683aafbe9d132368771d5a4d528fcabdb223
7
- data.tar.gz: 911ce0c2080f1134d29bfd1ace3b6217909de1529cd94b3c310d9abf1982a224986dd8c96a3caaf1b4e142cd7ef41e403bcd759f817491ce51a03f54ed256609
6
+ metadata.gz: d237454d49bb49b6e7b9b5427ff6b73ef0b959b41404985f221d4b8f0eeab6bd95c304a4a645e53c55079114d7d0f26fd1a429e7edc760b301030c2b5e83e4de
7
+ data.tar.gz: 6a4f4004a32e78371801a17013a46dbcd33ac17ecabbe15c2ea4062b64c53a4ef82a379556abe127d16ed21210f35eb44f8dcbefa6c66cba3db88f1dd57b59d0
@@ -9,6 +9,10 @@ module MessageStore
9
9
  'SomeType'
10
10
  end
11
11
 
12
+ def self.other_type
13
+ 'SomeOtherType'
14
+ end
15
+
12
16
  def self.data
13
17
  { :attribute => RandomValue.example }
14
18
  end
@@ -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
- stream_name = "#{stream_name}-#{id}" unless id.nil?
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
-
@@ -10,7 +10,7 @@ module MessageStore
10
10
  class GetLast
11
11
  include Get::Stream::Last
12
12
 
13
- def call(stream_name)
13
+ def call(stream_name, type: nil)
14
14
  streams[stream_name]
15
15
  end
16
16
 
@@ -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.1.1
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: 2021-01-06 00:00:00.000000000 Z
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.1.2
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