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: 3f806b875525e8f268335372c58de01b45bf52e975cefe1a4359ff71eed9b137
4
- data.tar.gz: d7263a8da692d83db60d2568cd83d6e540d75d90f78c308a5617bb95472ec289
3
+ metadata.gz: 5dec78069a189ba48a3eacb8c3ff06629e9c9067ea21f23480dbb521394fbaeb
4
+ data.tar.gz: d4d466bf64f7402b5f6341228628cebbd73c1a42aecab7e51362c8a6b4f38bb8
5
5
  SHA512:
6
- metadata.gz: ff355e361ebed03d0a0d1cf462213a6692540c8c3476ee1b5d08337be9e6bf2092e70a37161e8571ce59ce73b9c57ccb3c653dd1cd2914b6e1d8cb34ff88126e
7
- data.tar.gz: cd0031d809fa10271038a4233c36a4634d53527f8814212c32f990e3d2dfc1e8d264da0f03321e9fe448af357bd6677ff74ab76bd3844a3a7aed6c232cb891b9
6
+ metadata.gz: 80b4dfbda828a29dfe5cdc0f2606eddc10588822869f6bbd4a880f4407c8d422341ed7e57f639d04c417c15e1ba163343d1bfe51a0f61c23c59aa066443586dc
7
+ data.tar.gz: 265efe01bb2bb7bf2a3c6a4b68affd55b28aa04392223884359e0164b9a798b7707cb232291ce756877c51be71e36b1ccbca727140c390863697770e989cfa9f
@@ -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:
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RubyEventStore
4
- VERSION = "0.42.0"
4
+ VERSION = "0.43.0"
5
5
  end
@@ -25,5 +25,5 @@ Gem::Specification.new do |spec|
25
25
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
26
26
  spec.require_paths = ['lib']
27
27
 
28
- spec.add_dependency 'concurrent-ruby', '~> 1.0'
28
+ spec.add_dependency 'concurrent-ruby', '~> 1.0', '>= 1.1.6'
29
29
  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: 0.42.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: 2019-09-30 00:00:00.000000000 Z
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.6
123
+ rubygems_version: 3.0.3
117
124
  signing_key:
118
125
  specification_version: 4
119
126
  summary: Event Store in Ruby