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: 9c1e8a6a28b508d4fe37edb666962bcb81b10e20e58ed4a0f10261f505f37c72
4
- data.tar.gz: 51101c8c201abd7bd9c781ced0d08095e6c8c79b16301aeaa9b063d568d5f0c9
3
+ metadata.gz: cb221fc369ac0f6b2d871a20e696a75a325be6b830b03d61bf84e712f284d2c5
4
+ data.tar.gz: 41ebca57e3a73ecb246786efcbfcebdd2d5da4c3b8211e42b9bffc02acc13a4b
5
5
  SHA512:
6
- metadata.gz: b9b7dcc8c6368d5863639a898b2271b730a27c297686319ebac05ebc659275651a6975991049a0c6c190aa0e3f9b114dade1dc5520b6f01384be898b784793e3
7
- data.tar.gz: a3981ca618ac7ae81ba8a112fe25df0410ad5d9c9d5d2c44de159df6d9a01869e0900f63a9451103ee3c0829a0adbdd34d3c5d2d9efcfd7ab91e97353bb3b1a4
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
- raise InvalidDataError.new(message: validation.errors.to_h) if validation.errors.any?
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(
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EventStoreClient
4
- VERSION = '1.0.9'
4
+ VERSION = '1.0.10'
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.9
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-21 00:00:00.000000000 Z
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.0.4
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: []