event_store_client 1.4.2 → 1.4.3

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: dc7d6f48fb89cf1d9ac826310efcbd4eaf5ba60b61b0d9d100d95615e576ad0a
4
+ data.tar.gz: e9214e8026af433ddcd3804f8d6920a3298d7497cceca0dcefae73d41bce8e3e
5
5
  SHA512:
6
- metadata.gz: 80ccafc122496126f946ff52437a0fe1fbe856628e508f97c96cf8f802350b94399c557ce276042a4dd4ef0ee5f669952f131bddaeac08f9da73707382bb15bc
7
- data.tar.gz: cd3c8af6fb3dfe71cc710ed2bfdc5cce89a954afc9bedbe2381438564a9584e777741bb43bd9c69e2fb3d2822cf1449048e1baba80617f695e93cdcaad10ebe3
6
+ metadata.gz: 786b74bc83aa6a20682818097f219f139e582428b74aa89378ec587ce9a6bd163c7e9d599392ffdbaee5763768d72d0d0dcf6215cccbdf3c661cc5545a382b31
7
+ data.tar.gz: dd0add2a3050b272c163b67a5a93b25c33cf0f1a1e5008a18bb371faa84a74e44ed6133ccf6ea5f1fb90b86f5bd84f2bfd0dcc2b256f40424f88574762c7f2b2
@@ -28,6 +28,8 @@ module EventStoreClient
28
28
 
29
29
  setting :mapper, default: Mapper::Default.new
30
30
 
31
+ setting :default_event_class, default: EventStoreClient::DeserializedEvent
32
+
31
33
  setting :subscriptions_repo
32
34
 
33
35
  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.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.4.2
4
+ version: 1.4.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-12-04 00:00:00.000000000 Z
11
+ date: 2021-12-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-configurable