event_sourcery-postgres 0.9.0 → 0.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -1
- data/lib/event_sourcery/postgres/event_store.rb +3 -3
- data/lib/event_sourcery/postgres/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 824d15b46de51809119f1adec5708cab3e6e252dabeedc5257cda2b1c934a7bf
|
|
4
|
+
data.tar.gz: deea46e08d13e42d46d37ac7379ccc9782a87e5137710004ce1c922ad283f40d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a9cf1a6d3aad1270378fa68855ca339a3a0bca8aa13c8c06c82da634b340a93822d73254da780fbc6ef7420f9901836ebd81d68cfe0c8c506584b1be3c50c028
|
|
7
|
+
data.tar.gz: 520be11bd4e97b6ecd07fcc995c613c4978dcb97509569d15fda3d28206acd41696db718d54bc54861f72a38e59bdaf61a18369aa09c60cc748991700cb5dc90
|
data/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,13 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
|
|
|
6
6
|
and this project adheres to [Semantic Versioning](http://semver.org/).
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
|
+
## [0.9.1] - 2022-01-20
|
|
10
|
+
|
|
11
|
+
### Changed
|
|
12
|
+
|
|
13
|
+
- Removed the use of `**` for the private `EventStore#build_event`
|
|
14
|
+
method signature and places that call it.
|
|
15
|
+
|
|
9
16
|
## [0.9.0] - 2021-11-18
|
|
10
17
|
|
|
11
18
|
### Added
|
|
@@ -110,7 +117,8 @@ or when the loop stops
|
|
|
110
117
|
- Postgres related configuration is through `EventSourcery::Postgres.configure`
|
|
111
118
|
instead of `EventSourcery.configure`.
|
|
112
119
|
|
|
113
|
-
[Unreleased]: https://github.com/envato/event_sourcery-postgres/compare/v0.9.
|
|
120
|
+
[Unreleased]: https://github.com/envato/event_sourcery-postgres/compare/v0.9.1...HEAD
|
|
121
|
+
[0.9.1]: https://github.com/envato/event_sourcery-postgres/compare/v0.9.0...v0.9.1
|
|
114
122
|
[0.9.0]: https://github.com/envato/event_sourcery-postgres/compare/v0.8.1...v0.9.0
|
|
115
123
|
[0.8.1]: https://github.com/envato/event_sourcery-postgres/compare/v0.8.0...v0.8.1
|
|
116
124
|
[0.8.0]: https://github.com/envato/event_sourcery-postgres/compare/v0.7.0...v0.8.0
|
|
@@ -60,7 +60,7 @@ module EventSourcery
|
|
|
60
60
|
where(Sequel.lit('id >= ?', id)).
|
|
61
61
|
limit(limit)
|
|
62
62
|
query = query.where(type: event_types) if event_types
|
|
63
|
-
query.map { |event_row| build_event(
|
|
63
|
+
query.map { |event_row| build_event(event_row) }
|
|
64
64
|
end
|
|
65
65
|
|
|
66
66
|
# Get last event id for a given event types.
|
|
@@ -86,7 +86,7 @@ module EventSourcery
|
|
|
86
86
|
# @return [Array] of found events
|
|
87
87
|
def get_events_for_aggregate_id(aggregate_id)
|
|
88
88
|
events_table.where(aggregate_id: aggregate_id.to_str).order(:version).map do |event_hash|
|
|
89
|
-
build_event(
|
|
89
|
+
build_event(event_hash)
|
|
90
90
|
end
|
|
91
91
|
end
|
|
92
92
|
|
|
@@ -118,7 +118,7 @@ module EventSourcery
|
|
|
118
118
|
@db_connection[@events_table_name]
|
|
119
119
|
end
|
|
120
120
|
|
|
121
|
-
def build_event(
|
|
121
|
+
def build_event(data)
|
|
122
122
|
@event_builder.build(**data)
|
|
123
123
|
end
|
|
124
124
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: event_sourcery-postgres
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.9.
|
|
4
|
+
version: 0.9.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: 2022-01-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: sequel
|
|
@@ -122,7 +122,7 @@ dependencies:
|
|
|
122
122
|
- - ">="
|
|
123
123
|
- !ruby/object:Gem::Version
|
|
124
124
|
version: '0'
|
|
125
|
-
description:
|
|
125
|
+
description:
|
|
126
126
|
email:
|
|
127
127
|
- rubygems@envato.com
|
|
128
128
|
executables: []
|
|
@@ -151,7 +151,7 @@ metadata:
|
|
|
151
151
|
bug_tracker_uri: https://github.com/envato/event_sourcery-postgres/issues
|
|
152
152
|
changelog_uri: https://github.com/envato/event_sourcery-postgres/blob/HEAD/CHANGELOG.md
|
|
153
153
|
source_code_uri: https://github.com/envato/event_sourcery-postgres
|
|
154
|
-
post_install_message:
|
|
154
|
+
post_install_message:
|
|
155
155
|
rdoc_options: []
|
|
156
156
|
require_paths:
|
|
157
157
|
- lib
|
|
@@ -166,8 +166,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
166
166
|
- !ruby/object:Gem::Version
|
|
167
167
|
version: '0'
|
|
168
168
|
requirements: []
|
|
169
|
-
rubygems_version: 3.
|
|
170
|
-
signing_key:
|
|
169
|
+
rubygems_version: 3.2.22
|
|
170
|
+
signing_key:
|
|
171
171
|
specification_version: 4
|
|
172
172
|
summary: Postgres event store for use with EventSourcery
|
|
173
173
|
test_files: []
|