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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 99bf8987da0772344a41fc64908adbeaf61ec6586e7ca0598c0b64f46660c925
4
- data.tar.gz: 0a19dcd0e8daf8522cbbbf713f712f688eceab25b18d8137cf3a0059cb030937
3
+ metadata.gz: 61fe1c1886a98c249f210f252778de57849d7da3a2c1aafe7f503be3193399d4
4
+ data.tar.gz: 8b3da0d26b96b02f4f7230c74891f6e3cab1cf46062559d00f4b9405f00a49bd
5
5
  SHA512:
6
- metadata.gz: 22cd971647408e0231de73e1a35d78bcd64f9ab396d147b6d7f1ab4e9757cdd5728705b6e10fe9c57547e2de6f5ee12662effc16570b5f62d5c10d08cbba913d
7
- data.tar.gz: a13edee936cd4fa5dd203ee4758128d0c6342306c5d9028ee3868293e490d872f0fd27c92b087a24c65f7cab11b3d8ab949c29785873b0efff85c2ec3d448d9c
6
+ metadata.gz: 53ad37d18c358351946bec8901ca83359b937097b2fdd55bdf63ad630acdb5e201f786791af0ab2d4d009ac3a836da6cad128f049858eeb52f72767ccbefde52
7
+ data.tar.gz: 350b132bcaef85bd0a8f0bd4069bd48aae6a2111f2269a3cfa8b0886a38799a7c6228e88e863383bf47d49609e2e057db734193d02665ba970042fff3051cc22
@@ -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.0...HEAD
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
@@ -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', '~> 10.0'
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(*args)
215
+ def events_by_range(from_event_id, to_event_id, **args)
216
216
  [].tap do |events|
217
- event_store.each_by_range(*args) do |event|
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
@@ -1,4 +1,4 @@
1
1
  module EventSourcery
2
2
  # Defines the version
3
- VERSION = '0.23.0'.freeze
3
+ VERSION = '0.23.1'.freeze
4
4
  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.0
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: 2019-07-11 00:00:00.000000000 Z
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: '10.0'
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: '10.0'
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.0.4
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: []