event_store_client 1.1.7 → 1.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a4e812b6d0afb6200592432fd8561b9eb4a82eb35f3c97341996b2c57f8eb370
|
4
|
+
data.tar.gz: bb704ed3eea51dd21b422e736d1aa793394d075a45ea6620b6f5b455bca712a4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b099f9683c7e804bc89f89da3d2725abab47452a1dd52edc06b0a94a90ad3e5fc93eb19a296f2a4ea0f45cd4dc0553231a10a4679ae0ab3f8a2f3a80b34c6fb2
|
7
|
+
data.tar.gz: a2986ef2a17e00a28c9745d237870071c8bad0851e931dbccafad88b9e38c5ff6958412682a90f565d275176af816d91ffa05cdaabf1459be1a803d0679cefa9
|
@@ -27,9 +27,9 @@ module EventStoreClient
|
|
27
27
|
'content-type': event_metadata['content-type']
|
28
28
|
}
|
29
29
|
custom_metadata['encryption'] = event_metadata['encryption'] unless event_metadata['encryption'].nil?
|
30
|
+
custom_metadata['transaction'] = event_metadata['transaction'] unless event_metadata['transaction'].nil?
|
30
31
|
event_metadata = event_metadata.select { |k| ['type', 'content-type', 'created_at'].include?(k) }
|
31
32
|
|
32
|
-
|
33
33
|
payload = [
|
34
34
|
request.new(
|
35
35
|
options: {
|
@@ -52,7 +52,7 @@ module EventStoreClient
|
|
52
52
|
]
|
53
53
|
service.append(payload, metadata: metadata)
|
54
54
|
end
|
55
|
-
Success()
|
55
|
+
Success(events)
|
56
56
|
end
|
57
57
|
end
|
58
58
|
end
|
@@ -1,6 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require 'dry/monads'
|
4
|
+
|
4
5
|
module EventStoreClient
|
5
6
|
class InMemory
|
6
7
|
Response = Struct.new(:body, :status) do
|
@@ -22,7 +23,7 @@ module EventStoreClient
|
|
22
23
|
'positionEventNumber' => event_store[stream_name].length
|
23
24
|
)
|
24
25
|
end
|
25
|
-
Dry::Monads::Success()
|
26
|
+
Dry::Monads::Success(events)
|
26
27
|
end
|
27
28
|
|
28
29
|
def delete_stream(stream_name, options: {}) # rubocop:disable Lint/UnusedMethodArgument
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: event_store_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sebastian Wilgosz
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-07-
|
11
|
+
date: 2021-07-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dry-configurable
|
@@ -262,7 +262,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
262
262
|
- !ruby/object:Gem::Version
|
263
263
|
version: '0'
|
264
264
|
requirements: []
|
265
|
-
rubygems_version: 3.1.
|
265
|
+
rubygems_version: 3.1.4
|
266
266
|
signing_key:
|
267
267
|
specification_version: 4
|
268
268
|
summary: Ruby integration for https://eventstore.org
|