event_sourcery 0.23.0 → 0.23.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +15 -1
- data/event_sourcery.gemspec +1 -1
- data/lib/event_sourcery/event_processing/esp_runner.rb +3 -1
- data/lib/event_sourcery/event_store/event_builder.rb +2 -2
- data/lib/event_sourcery/rspec/event_store_shared_examples.rb +2 -2
- data/lib/event_sourcery/version.rb +1 -1
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 61fe1c1886a98c249f210f252778de57849d7da3a2c1aafe7f503be3193399d4
|
4
|
+
data.tar.gz: 8b3da0d26b96b02f4f7230c74891f6e3cab1cf46062559d00f4b9405f00a49bd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 53ad37d18c358351946bec8901ca83359b937097b2fdd55bdf63ad630acdb5e201f786791af0ab2d4d009ac3a836da6cad128f049858eeb52f72767ccbefde52
|
7
|
+
data.tar.gz: 350b132bcaef85bd0a8f0bd4069bd48aae6a2111f2269a3cfa8b0886a38799a7c6228e88e863383bf47d49609e2e057db734193d02665ba970042fff3051cc22
|
data/CHANGELOG.md
CHANGED
@@ -7,6 +7,19 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
|
|
7
7
|
|
8
8
|
## [Unreleased]
|
9
9
|
|
10
|
+
## [0.23.1] - 2020-10-02
|
11
|
+
### Fixed
|
12
|
+
- Upgrade development dependency Rake to version 13. This resolves
|
13
|
+
[CVE-2020-8130](https://github.com/advisories/GHSA-jppv-gw3r-w3q8).
|
14
|
+
|
15
|
+
- Patch `ESPRunner` to gracefully handle terminating subprocesses it did
|
16
|
+
not start ([#223]).
|
17
|
+
|
18
|
+
- Resolve warnings raised by Ruby 2.7 ([#225]).
|
19
|
+
|
20
|
+
[#223]: https://github.com/envato/event_sourcery/pull/223
|
21
|
+
[#225]: https://github.com/envato/event_sourcery/pull/225
|
22
|
+
|
10
23
|
## [0.23.0] - 2019-07-11
|
11
24
|
### Added
|
12
25
|
- Add Ruby 2.6 to the CI test matrix.
|
@@ -221,7 +234,8 @@ moving all Postgres related code into a separate gem.
|
|
221
234
|
- EventSourcery no longer depends on Virtus.
|
222
235
|
- `Command` and `CommandHandler` have been removed.
|
223
236
|
|
224
|
-
[Unreleased]: https://github.com/envato/event_sourcery/compare/v0.23.
|
237
|
+
[Unreleased]: https://github.com/envato/event_sourcery/compare/v0.23.1...HEAD
|
238
|
+
[0.23.1]: https://github.com/envato/event_sourcery/compare/v0.23.0...v0.23.1
|
225
239
|
[0.23.0]: https://github.com/envato/event_sourcery/compare/v0.22.0...v0.23.0
|
226
240
|
[0.22.0]: https://github.com/envato/event_sourcery/compare/v0.21.0...v0.22.0
|
227
241
|
[0.21.0]: https://github.com/envato/event_sourcery/compare/v0.20.0...v0.21.0
|
data/event_sourcery.gemspec
CHANGED
@@ -26,7 +26,7 @@ Gem::Specification.new do |spec|
|
|
26
26
|
spec.required_ruby_version = '>= 2.2.0'
|
27
27
|
|
28
28
|
spec.add_development_dependency 'bundler'
|
29
|
-
spec.add_development_dependency 'rake', '~>
|
29
|
+
spec.add_development_dependency 'rake', '~> 13'
|
30
30
|
spec.add_development_dependency 'rspec'
|
31
31
|
spec.add_development_dependency 'pry'
|
32
32
|
spec.add_development_dependency 'benchmark-ips'
|
@@ -106,8 +106,10 @@ module EventSourcery
|
|
106
106
|
def record_terminated_processes
|
107
107
|
until all_processes_terminated? || (pid, status = Process.wait2(-1, Process::WNOHANG)).nil?
|
108
108
|
event_processor = @pids.delete(pid)
|
109
|
+
logger.info("ESPRunner: Process #{event_processor&.processor_name || pid} " \
|
110
|
+
"terminated with exit status: #{status.exitstatus.inspect}")
|
111
|
+
next unless event_processor
|
109
112
|
@exit_status &&= !!status.success?
|
110
|
-
logger.info("ESPRunner: Process #{event_processor.processor_name} terminated with exit status: #{status.exitstatus.inspect}")
|
111
113
|
@after_subprocess_termination&.call(processor: event_processor, runner: self, exit_status: status.exitstatus)
|
112
114
|
end
|
113
115
|
end
|
@@ -5,10 +5,10 @@ module EventSourcery
|
|
5
5
|
@event_type_serializer = event_type_serializer
|
6
6
|
end
|
7
7
|
|
8
|
-
def build(event_data)
|
8
|
+
def build(**event_data)
|
9
9
|
type = event_data.fetch(:type)
|
10
10
|
klass = event_type_serializer.deserialize(type)
|
11
|
-
upcast(klass.new(event_data))
|
11
|
+
upcast(klass.new(**event_data))
|
12
12
|
end
|
13
13
|
|
14
14
|
private
|
@@ -212,9 +212,9 @@ RSpec.shared_examples 'an event store' do
|
|
212
212
|
end
|
213
213
|
end
|
214
214
|
|
215
|
-
def events_by_range(
|
215
|
+
def events_by_range(from_event_id, to_event_id, **args)
|
216
216
|
[].tap do |events|
|
217
|
-
event_store.each_by_range(
|
217
|
+
event_store.each_by_range(from_event_id, to_event_id, **args) do |event|
|
218
218
|
events << event
|
219
219
|
end
|
220
220
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: event_sourcery
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.23.
|
4
|
+
version: 0.23.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Envato
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-10-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '13'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '13'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -129,7 +129,7 @@ metadata:
|
|
129
129
|
bug_tracker_uri: https://github.com/envato/event_sourcery/issues
|
130
130
|
changelog_uri: https://github.com/envato/event_sourcery/blob/master/CHANGELOG.md
|
131
131
|
source_code_uri: https://github.com/envato/event_sourcery
|
132
|
-
post_install_message:
|
132
|
+
post_install_message:
|
133
133
|
rdoc_options: []
|
134
134
|
require_paths:
|
135
135
|
- lib
|
@@ -144,8 +144,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
144
144
|
- !ruby/object:Gem::Version
|
145
145
|
version: '0'
|
146
146
|
requirements: []
|
147
|
-
rubygems_version: 3.
|
148
|
-
signing_key:
|
147
|
+
rubygems_version: 3.1.4
|
148
|
+
signing_key:
|
149
149
|
specification_version: 4
|
150
150
|
summary: Event Sourcing Library
|
151
151
|
test_files: []
|