eventsimple 1.3.2 → 1.3.3
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 +4 -0
- data/Gemfile.lock +2 -1
- data/lib/eventsimple/configuration.rb +6 -0
- data/lib/eventsimple/outbox/models/cursor.rb +1 -1
- data/lib/eventsimple/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 872c921ebca70dcc352f005afe39e0cf48ae4bb2d009f7f55acc95f0b1250f04
|
|
4
|
+
data.tar.gz: 0445db43a4641baceb36926e29e9b9eaa9c41aff5c69029d05bc2af9c457afa3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fa5257d5083fa3a2f1f6a6e6d57e249e0a78dd8a8c4d1a257a1726a1b6939a857dde9832e1a7e25e113c8697a869de435737d836449bd5a4ccb0358da8d6d7d7
|
|
7
|
+
data.tar.gz: b89aa88f3b19f9286148631207176c828be018c78cf68291235e267be2194f01f08bf85d56be04d9fd6045f02e98f008ade400ac0e7eb2c3858059fd96b552e7
|
data/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
6
6
|
|
|
7
7
|
## Unreleased
|
|
8
8
|
|
|
9
|
+
## 1.3.3 - 2024-04-02
|
|
10
|
+
### Changed
|
|
11
|
+
- add `parent_record` configuration so it can be easily overwritten
|
|
12
|
+
|
|
9
13
|
## 1.3.2 - 2024-03-01
|
|
10
14
|
### Changed
|
|
11
15
|
- Updated dependencies to fix a security vulnerability
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
eventsimple (1.3.
|
|
4
|
+
eventsimple (1.3.3)
|
|
5
5
|
dry-struct (~> 1.6)
|
|
6
6
|
dry-types (~> 1.7)
|
|
7
7
|
pg (~> 1.4)
|
|
@@ -358,6 +358,7 @@ GEM
|
|
|
358
358
|
|
|
359
359
|
PLATFORMS
|
|
360
360
|
arm64-darwin-22
|
|
361
|
+
arm64-darwin-23
|
|
361
362
|
x86_64-linux
|
|
362
363
|
|
|
363
364
|
DEPENDENCIES
|
|
@@ -4,6 +4,7 @@ module Eventsimple
|
|
|
4
4
|
class Configuration
|
|
5
5
|
attr_reader :max_concurrency_retries
|
|
6
6
|
attr_writer :metadata_klass
|
|
7
|
+
attr_writer :parent_record_klass
|
|
7
8
|
attr_accessor :retry_reactor_on_record_not_found
|
|
8
9
|
|
|
9
10
|
attr_accessor :ui_visible_models
|
|
@@ -12,6 +13,7 @@ module Eventsimple
|
|
|
12
13
|
@dispatchers = []
|
|
13
14
|
@max_concurrency_retries = 2
|
|
14
15
|
@metadata_klass = 'Eventsimple::Metadata'
|
|
16
|
+
@parent_record_klass = 'ApplicationRecord'
|
|
15
17
|
@retry_reactor_on_record_not_found = false
|
|
16
18
|
|
|
17
19
|
@ui_visible_models = [] # internal use only
|
|
@@ -39,6 +41,10 @@ module Eventsimple
|
|
|
39
41
|
def metadata_klass
|
|
40
42
|
@metadata_klass_const ||= @metadata_klass.constantize
|
|
41
43
|
end
|
|
44
|
+
|
|
45
|
+
def parent_record_klass
|
|
46
|
+
@parent_record_const ||= @parent_record_klass.constantize
|
|
47
|
+
end
|
|
42
48
|
# rubocop:enable Naming/MemoizedInstanceVariableName
|
|
43
49
|
end
|
|
44
50
|
end
|
data/lib/eventsimple/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: eventsimple
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.3.
|
|
4
|
+
version: 1.3.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Zulfiqar Ali
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2024-
|
|
11
|
+
date: 2024-04-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: dry-struct
|