ruby_event_store 2.10 → 2.11.1

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: 42bbf61dbcbf45fdbe2c3722b3bde03762f2f403a54181a80b12e1f5143e09f5
4
+ data.tar.gz: 0a25ade531598979dbb18bb858cdfe8bd462f389e9016f94b08b8ecf46f521f0
5
5
  SHA512:
6
- metadata.gz: 648428aaada1d0bb4e088699fe5360db5546f9809eab9e3e0a7527a3475e563b8066d1cadd90c2ecbee2e7a2af4db32925877b5a5baa9990233f00fa3ed9ae7f
7
- data.tar.gz: 64635cdbbdc428f7ce43e3339fa0a1f45df31ace522753702ba5d6cc955181b9f664ec318b78578b14360a18f1a4393ca7e2c512241247ea85600657dc3e0318
6
+ metadata.gz: 5e9fd721927c9b369cb91fde201fe63533f370a94c4baff675bc68de4049d924fdf3d20bb1d16e24cf0bea57529b9f46316274a258464c274254cd35575b8656
7
+ data.tar.gz: e7e5f244c7811f652c933102c686bc24fed30197fad8193bfbc412976411c1027632f786b25b67efe9778e46c076312d15957dd2d855eae583bd91ae02625440
@@ -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.1"
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.1
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-24 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.17
123
123
  signing_key:
124
124
  specification_version: 4
125
125
  summary: Implementation of an event store in Ruby