event_store_client 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/event_store_client/client.rb +2 -4
- data/lib/event_store_client/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e97364d118166a05b3bda769d8d63389e3e5da1035317f7f4620d1e4d7c1a5fb
|
4
|
+
data.tar.gz: eac9bb8cc42cf8f26b13524dfbd84e1dcaf29e6712437a743add53d68034b2fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d10553a93c2fd65497e88def8a1c8b0205e7d01a89d7ae45caa422f5d95a5d0966bc0d7796e5ed9b967f7617793fc4f3a01a6619e30b91aa59d7e9fa5de555a6
|
7
|
+
data.tar.gz: 1c82a1eba935ffacf3bd6d265c3734ed970931e84b1c730ad397bbbf3f93901d55f318ee3531a0033f88ac3214f310879e8cf77fb96038b58810fbb6d91ee703
|
@@ -11,8 +11,7 @@ module EventStoreClient
|
|
11
11
|
|
12
12
|
def publish(stream:, events:, options: {})
|
13
13
|
connection.append_to_stream(stream, events, options: options)
|
14
|
-
|
15
|
-
raise WrongExpectedEventVersion.new(e.message)
|
14
|
+
raise WrongExpectedEventVersion.new(e.message) if res.failure?
|
16
15
|
end
|
17
16
|
|
18
17
|
def read(stream, options: {})
|
@@ -43,7 +42,7 @@ module EventStoreClient
|
|
43
42
|
end
|
44
43
|
# rubocop:enable Metrics/CyclomaticComplexity
|
45
44
|
|
46
|
-
attr_accessor :connection
|
45
|
+
attr_accessor :connection
|
47
46
|
|
48
47
|
private
|
49
48
|
|
@@ -53,7 +52,6 @@ module EventStoreClient
|
|
53
52
|
@threads = []
|
54
53
|
@connection ||= EventStoreClient.adapter
|
55
54
|
@error_handler ||= config.error_handler
|
56
|
-
@service_name ||= 'default'
|
57
55
|
@broker ||= Broker.new(connection: connection)
|
58
56
|
@subscriptions ||= Subscriptions.new(connection: connection, service: config.service_name)
|
59
57
|
end
|
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.0.
|
4
|
+
version: 1.0.3
|
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-02-
|
11
|
+
date: 2021-02-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dry-configurable
|