event_store_client 1.0.9 → 1.0.10
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: cb221fc369ac0f6b2d871a20e696a75a325be6b830b03d61bf84e712f284d2c5
|
4
|
+
data.tar.gz: 41ebca57e3a73ecb246786efcbfcebdd2d5da4c3b8211e42b9bffc02acc13a4b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0ede273754fccac7cdae2e0b3954c75371885559840c84fc45336ab87a6d6aa76ba81963e5811dc5f77037c7fd3e5388d679b7985dec4426f783f0628eea970d
|
7
|
+
data.tar.gz: db7ced1400a090fde100e517882464a0679b0d7138923b9faae07204982b8c6b291949bbb848c9b2823b755d697eac796b9a1281b69b4ef1d204a9b624c982b7
|
@@ -19,7 +19,9 @@ module EventStoreClient
|
|
19
19
|
|
20
20
|
def initialize(**args)
|
21
21
|
validation = schema.call(args[:data] || {})
|
22
|
-
|
22
|
+
if validation.errors.any?
|
23
|
+
raise InvalidDataError.new(message: "#{schema.class.name} #{validation.errors.to_h}")
|
24
|
+
end
|
23
25
|
|
24
26
|
@data = args.fetch(:data) { {} }
|
25
27
|
@metadata = args.fetch(:metadata) { {} }.merge(
|
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.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sebastian Wilgosz
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-05-
|
11
|
+
date: 2021-05-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dry-configurable
|
@@ -229,7 +229,7 @@ licenses:
|
|
229
229
|
- MIT
|
230
230
|
metadata:
|
231
231
|
allowed_push_host: https://rubygems.org
|
232
|
-
post_install_message:
|
232
|
+
post_install_message:
|
233
233
|
rdoc_options: []
|
234
234
|
require_paths:
|
235
235
|
- lib
|
@@ -244,8 +244,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
244
244
|
- !ruby/object:Gem::Version
|
245
245
|
version: '0'
|
246
246
|
requirements: []
|
247
|
-
rubygems_version: 3.
|
248
|
-
signing_key:
|
247
|
+
rubygems_version: 3.1.4
|
248
|
+
signing_key:
|
249
249
|
specification_version: 4
|
250
250
|
summary: Ruby integration for https://eventstore.org
|
251
251
|
test_files: []
|