event_store_client 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 36d69c015981edc94f13bea616da9204a527e24746f5c779355a77f23dc67a30
4
- data.tar.gz: c0d8cba70afb5f6d4a6c4b88658adf1a0a504da98f3b9118d9309117cca05d14
3
+ metadata.gz: e97364d118166a05b3bda769d8d63389e3e5da1035317f7f4620d1e4d7c1a5fb
4
+ data.tar.gz: eac9bb8cc42cf8f26b13524dfbd84e1dcaf29e6712437a743add53d68034b2fc
5
5
  SHA512:
6
- metadata.gz: 60259b2c0e8933a7c59137cbc5c5590588b2e11e7081cd7d35c1a9a2d68d1b4159dc78d5d2d27eef80401b27f38bc12931d1d9b8536a9abd34617879493e0faa
7
- data.tar.gz: '080671cd0986860a3ba65814fc77d2c69033071e2f206f5d0d0b0d6ad1ee1c186f976e7004ea434198dc68a53d971564357aed5f493da8f37d92a4a79f0faf20'
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
- rescue HTTP::Client::WrongExpectedEventVersion => e
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, :service_name
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EventStoreClient
4
- VERSION = '1.0.2'
4
+ VERSION = '1.0.3'
5
5
  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.2
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-19 00:00:00.000000000 Z
11
+ date: 2021-02-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-configurable