ruby_event_store 2.10 → 2.11.0

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: 20f2bfe7214045324bd5fbe76b4e279b79f7b4a363fc3096fa0c940f6b661a9d
4
- data.tar.gz: 1d80b75cdc741164a713a27f0650ade6d53d35b64c3622877c7dff1b131856ae
3
+ metadata.gz: a13012b6cc672274f7818f51f777a864dd52e301023bdb2892a83adda5805550
4
+ data.tar.gz: 6f00d31f07180e67e20abe178d30f9f38606e813bc8ccf69c5f327687d6fb067
5
5
  SHA512:
6
- metadata.gz: 648428aaada1d0bb4e088699fe5360db5546f9809eab9e3e0a7527a3475e563b8066d1cadd90c2ecbee2e7a2af4db32925877b5a5baa9990233f00fa3ed9ae7f
7
- data.tar.gz: 64635cdbbdc428f7ce43e3339fa0a1f45df31ace522753702ba5d6cc955181b9f664ec318b78578b14360a18f1a4393ca7e2c512241247ea85600657dc3e0318
6
+ metadata.gz: a42330d20f5a09086428f5f83ea14383020ae027fa9ebaf36688e98e86a93f28808a214d384dbd3ee99d433027be42ac2556be9b7341b745f6b1e3b3ee4e7f9c
7
+ data.tar.gz: 421b823b296a89afc6f224ea340187520d48b762c412f9583172a0c89bc28822a9476bb418bc7f0fd5cc7ddada03360546c6293c8e53146e31d7debc97e193a7
@@ -91,8 +91,8 @@ module RubyEventStore
91
91
  end
92
92
  data_types = types&.fetch(:data, nil)
93
93
  metadata_types = types&.fetch(:metadata, nil)
94
- data = data_types ? restore_type(record.data, data_types) : record.data
95
- metadata = metadata_types ? restore_type(record.metadata, metadata_types) : record.metadata
94
+ data = restore_type(record.data, data_types)
95
+ metadata = restore_type(record.metadata, metadata_types)
96
96
 
97
97
  Record.new(
98
98
  event_id: record.event_id,
@@ -151,7 +151,7 @@ module RubyEventStore
151
151
  end
152
152
 
153
153
  def restore_type(argument, type)
154
- case argument
154
+ case type
155
155
  when Hash
156
156
  restore_types(argument, type)
157
157
  when Array
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RubyEventStore
4
- VERSION = "2.10"
4
+ VERSION = "2.11.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_event_store
3
3
  version: !ruby/object:Gem::Version
4
- version: '2.10'
4
+ version: 2.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arkency
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-07-19 00:00:00.000000000 Z
11
+ date: 2023-07-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby
@@ -119,7 +119,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
119
119
  - !ruby/object:Gem::Version
120
120
  version: '0'
121
121
  requirements: []
122
- rubygems_version: 3.4.8
122
+ rubygems_version: 3.4.10
123
123
  signing_key:
124
124
  specification_version: 4
125
125
  summary: Implementation of an event store in Ruby