ruby_event_store 0.42.0 → 0.43.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5dec78069a189ba48a3eacb8c3ff06629e9c9067ea21f23480dbb521394fbaeb
|
4
|
+
data.tar.gz: d4d466bf64f7402b5f6341228628cebbd73c1a42aecab7e51362c8a6b4f38bb8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 80b4dfbda828a29dfe5cdc0f2606eddc10588822869f6bbd4a880f4407c8d422341ed7e57f639d04c417c15e1ba163343d1bfe51a0f61c23c59aa066443586dc
|
7
|
+
data.tar.gz: 265efe01bb2bb7bf2a3c6a4b68affd55b28aa04392223884359e0164b9a798b7707cb232291ce756877c51be71e36b1ccbca727140c390863697770e989cfa9f
|
data/lib/ruby_event_store.rb
CHANGED
@@ -36,6 +36,7 @@ require 'ruby_event_store/mappers/default'
|
|
36
36
|
require 'ruby_event_store/mappers/forgotten_data'
|
37
37
|
require 'ruby_event_store/mappers/encryption_mapper'
|
38
38
|
require 'ruby_event_store/mappers/instrumented_mapper'
|
39
|
+
require 'ruby_event_store/mappers/json_mapper'
|
39
40
|
require 'ruby_event_store/mappers/null_mapper'
|
40
41
|
require 'ruby_event_store/mappers/protobuf'
|
41
42
|
require 'ruby_event_store/batch_enumerator'
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module RubyEventStore
|
4
|
+
module Mappers
|
5
|
+
class JSONMapper < PipelineMapper
|
6
|
+
def initialize(events_class_remapping: {})
|
7
|
+
super(Pipeline.new(
|
8
|
+
transformations: [
|
9
|
+
Transformation::EventClassRemapper.new(events_class_remapping),
|
10
|
+
Transformation::SymbolizeMetadataKeys.new,
|
11
|
+
],
|
12
|
+
))
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -151,7 +151,7 @@ module RubyEventStore
|
|
151
151
|
def dup
|
152
152
|
new_attributes = attributes.dup
|
153
153
|
yield new_attributes if block_given?
|
154
|
-
SpecificationResult.new(new_attributes.to_h)
|
154
|
+
SpecificationResult.new(**new_attributes.to_h)
|
155
155
|
end
|
156
156
|
|
157
157
|
# Two specification attributess are equal if:
|
data/ruby_event_store.gemspec
CHANGED
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: 0.
|
4
|
+
version: 0.43.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Arkency
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-02-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: concurrent-ruby
|
@@ -17,6 +17,9 @@ dependencies:
|
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '1.0'
|
20
|
+
- - ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 1.1.6
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -24,6 +27,9 @@ dependencies:
|
|
24
27
|
- - "~>"
|
25
28
|
- !ruby/object:Gem::Version
|
26
29
|
version: '1.0'
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 1.1.6
|
27
33
|
description: Implementation of Event Store in Ruby
|
28
34
|
email:
|
29
35
|
- dev@arkency.com
|
@@ -57,6 +63,7 @@ files:
|
|
57
63
|
- lib/ruby_event_store/mappers/forgotten_data.rb
|
58
64
|
- lib/ruby_event_store/mappers/in_memory_encryption_key_repository.rb
|
59
65
|
- lib/ruby_event_store/mappers/instrumented_mapper.rb
|
66
|
+
- lib/ruby_event_store/mappers/json_mapper.rb
|
60
67
|
- lib/ruby_event_store/mappers/null_mapper.rb
|
61
68
|
- lib/ruby_event_store/mappers/pipeline.rb
|
62
69
|
- lib/ruby_event_store/mappers/pipeline_mapper.rb
|
@@ -113,7 +120,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
113
120
|
- !ruby/object:Gem::Version
|
114
121
|
version: '0'
|
115
122
|
requirements: []
|
116
|
-
rubygems_version: 3.0.
|
123
|
+
rubygems_version: 3.0.3
|
117
124
|
signing_key:
|
118
125
|
specification_version: 4
|
119
126
|
summary: Event Store in Ruby
|