event_store_client 1.4.2 → 1.4.6

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: 1f3c838968ea465d5b8c8facea48379e2cd8deab75622df62e124e68e52a123e
4
- data.tar.gz: 7ab8a39443e9eaa15a4dccb95c32309fbfc1081de9bc854faef9b433a58f54a5
3
+ metadata.gz: 75f2655fed628ad47cc5fc1260ce51dbc1b5c6c0a9bdf06130d524b963091081
4
+ data.tar.gz: fba6d6befafd7c0b9087747da47734c3be3b7ebd722d64f455c2d343293cad48
5
5
  SHA512:
6
- metadata.gz: 80ccafc122496126f946ff52437a0fe1fbe856628e508f97c96cf8f802350b94399c557ce276042a4dd4ef0ee5f669952f131bddaeac08f9da73707382bb15bc
7
- data.tar.gz: cd3c8af6fb3dfe71cc710ed2bfdc5cce89a954afc9bedbe2381438564a9584e777741bb43bd9c69e2fb3d2822cf1449048e1baba80617f695e93cdcaad10ebe3
6
+ metadata.gz: c55b7caaa750ea546c41ee6fe7b3e225e9f42d00686cd5ce3af2a17c15434aa9fe94c6b2e6eddd804c176ca255e2d52e5dabe9c1fb286c45db8bf050d792b966
7
+ data.tar.gz: a43a8b71c5ba7548d075a042ad7d7f0ef053ee3a337a5f77a7ad801a92b55742219e8996ae81611b4670909e87eceac5e2f7edaba4ffbcb20de1b524bfa04a0e
@@ -2,6 +2,7 @@
2
2
 
3
3
  require 'dry-configurable'
4
4
  require 'event_store_client/error_handler'
5
+ require 'event_store_client/deserialized_event'
5
6
 
6
7
  module EventStoreClient
7
8
  extend Dry::Configurable
@@ -12,9 +13,9 @@ module EventStoreClient
12
13
  setting :verify_ssl, default: true
13
14
 
14
15
  setting :error_handler, default: ErrorHandler.new
15
- setting :eventstore_url, default: 'http://localhost:2113' do |value|
16
+ setting :eventstore_url, default: 'http://localhost:2113', constructor: proc { |value|
16
17
  value.is_a?(URI) ? value : URI(value)
17
- end
18
+ }
18
19
 
19
20
  setting :eventstore_user, default: 'admin'
20
21
  setting :eventstore_password, default: 'changeit'
@@ -28,6 +29,8 @@ module EventStoreClient
28
29
 
29
30
  setting :mapper, default: Mapper::Default.new
30
31
 
32
+ setting :default_event_class, default: DeserializedEvent
33
+
31
34
  setting :subscriptions_repo
32
35
 
33
36
  setting :logger
@@ -20,7 +20,7 @@ module EventStoreClient
20
20
  begin
21
21
  Object.const_get(event.type)
22
22
  rescue NameError
23
- EventStoreClient::DeserializedEvent
23
+ EventStoreClient.config.default_event_class
24
24
  end
25
25
  event_class.new(
26
26
  skip_validation: true,
@@ -68,7 +68,7 @@ module EventStoreClient
68
68
  begin
69
69
  Object.const_get(event.type)
70
70
  rescue NameError
71
- EventStoreClient::DeserializedEvent
71
+ EventStoreClient.config.default_event_class
72
72
  end
73
73
 
74
74
  event_class.new(
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EventStoreClient
4
- VERSION = '1.4.2'
4
+ VERSION = '1.4.6'
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.4.2
4
+ version: 1.4.6
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-12-04 00:00:00.000000000 Z
11
+ date: 2022-02-02 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.0.pre1
265
+ rubygems_version: 3.1.6
266
266
  signing_key:
267
267
  specification_version: 4
268
268
  summary: Ruby integration for https://eventstore.org