aggregate_streams 1.0.0.0.rc3 → 1.0.0.0.rc4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aggregate_streams/handle.rb +5 -5
- 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: ab8ab1a6d681ef30dcfc03fade5e32f3b1c7d54cb8fea4ff3f9e5b22a7c3122f
|
4
|
+
data.tar.gz: d2903306103791d7466069ef61f10652ce08daaea9b6a6371af6002bb9c706b6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e24676f6919e982afaa00badb072dce9b4fe76cb1f86ac90bb3dfc53f55bfd9b45170f779eee70821c6e60752efe14852e51bef89159ab06b42bfc6b511a8c9c
|
7
|
+
data.tar.gz: deb98567a015486f7523419a3f34c1f0d86bb958021155253a037c92fe8b8ba607411ed1d33b7116d5aefdb05f7d98942f2520f0cf696e15f68c0a547743aec3
|
@@ -61,6 +61,11 @@ module AggregateStreams
|
|
61
61
|
return
|
62
62
|
end
|
63
63
|
|
64
|
+
Try.(MessageStore::ExpectedVersion::Error) do
|
65
|
+
stream_name = stream_name(stream_id)
|
66
|
+
write.(write_message_data, stream_name, expected_version: version)
|
67
|
+
end
|
68
|
+
|
64
69
|
logger.info do
|
65
70
|
message_type = message_data.type
|
66
71
|
unless write_message_data.type == message_type
|
@@ -69,11 +74,6 @@ module AggregateStreams
|
|
69
74
|
|
70
75
|
"Message copied (Message Type: #{message_type}, Stream: #{message_data.stream_name}, Global Position: #{message_data.global_position})"
|
71
76
|
end
|
72
|
-
|
73
|
-
Try.(MessageStore::ExpectedVersion::Error) do
|
74
|
-
stream_name = stream_name(stream_id)
|
75
|
-
write.(write_message_data, stream_name, expected_version: version)
|
76
|
-
end
|
77
77
|
end
|
78
78
|
|
79
79
|
def raw_metadata(metadata)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aggregate_streams
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.0.
|
4
|
+
version: 1.0.0.0.rc4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nathan Ladd
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-05-
|
11
|
+
date: 2021-05-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: evt-consumer-postgres
|
@@ -136,7 +136,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
136
136
|
- !ruby/object:Gem::Version
|
137
137
|
version: 1.3.1
|
138
138
|
requirements: []
|
139
|
-
rubygems_version: 3.1.
|
139
|
+
rubygems_version: 3.1.6
|
140
140
|
signing_key:
|
141
141
|
specification_version: 4
|
142
142
|
summary: Combine messages from multiple Eventide streams into an aggregate stream
|