active_event_store 1.2.0 → 1.3.0
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 -0
- data/lib/active_event_store/engine.rb +11 -8
- data/lib/active_event_store/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 86a1b7e969cbfcc31c139a556751f16a99b113e94e1ec16ebd6b91d0b348b75f
|
|
4
|
+
data.tar.gz: b9f620f2513466b0deb45a6f9a957199c2b6c0e7f9efedfbeaec29fc98809f48
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a4aace26f3a7a2a51be9b100cfa037cfa325abdfc4ad5f0ed77d798d0b950ada5e8692ad8da951362b9401e4700e903b4495e85db08670746f4cfacc215a3eea
|
|
7
|
+
data.tar.gz: f88ad5fce885311214e8cd29094dfec64e3f033696d38115d4375f899656db6450d8e24ad3daed6af0f2cd6b60526a7169cf560835c443a36ea3bead628eab37
|
data/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
## master
|
|
4
4
|
|
|
5
|
+
## 1.3.0 (2025-12-04)
|
|
6
|
+
|
|
7
|
+
- Update Rails Event Store configuration to avoid deprecation warning ([@christophermlne][], [@phil-monroe][])
|
|
8
|
+
- Corrected two typos in the engine warning when Active Job isn't loaded ([@wwahammy][])
|
|
9
|
+
|
|
10
|
+
## 1.2.1 (2024-04-26)
|
|
11
|
+
|
|
12
|
+
- Updates the railtie to define `Rails.configuration.event_store`. ([@Samsinite][])
|
|
13
|
+
|
|
5
14
|
## 1.2.0 (2024-01-25)
|
|
6
15
|
|
|
7
16
|
- Use custom pipeline mapper and domain event transformer. ([@Samsinite][])
|
|
@@ -8,7 +8,7 @@ module ActiveEventStore
|
|
|
8
8
|
|
|
9
9
|
# Use before configuration hook to check for ActiveJob presence
|
|
10
10
|
ActiveSupport.on_load(:before_configuration) do
|
|
11
|
-
next warn "Active Job is not loaded. Active Event Store
|
|
11
|
+
next warn "Active Job is not loaded. Active Event Store asynchronous subscriptions won't work" unless defined?(::ActiveJob)
|
|
12
12
|
|
|
13
13
|
require "active_event_store/subscriber_job"
|
|
14
14
|
require "active_event_store/rspec/have_enqueued_async_subscriber_for" if defined?(::RSpec::Matchers)
|
|
@@ -17,18 +17,21 @@ module ActiveEventStore
|
|
|
17
17
|
config.to_prepare do
|
|
18
18
|
# See https://railseventstore.org/docs/subscribe/#scheduling-async-handlers-after-commit
|
|
19
19
|
ActiveEventStore.event_store = RailsEventStore::Client.new(
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
20
|
+
message_broker: RubyEventStore::Broker.new(
|
|
21
|
+
dispatcher: RubyEventStore::ComposedDispatcher.new(
|
|
22
|
+
RailsEventStore::AfterCommitAsyncDispatcher.new(
|
|
23
|
+
scheduler: RailsEventStore::ActiveJobScheduler.new(
|
|
24
|
+
serializer: ActiveEventStore.config.serializer
|
|
25
|
+
)
|
|
26
|
+
),
|
|
27
|
+
RubyEventStore::Dispatcher.new
|
|
28
|
+
)
|
|
27
29
|
),
|
|
28
30
|
repository: ActiveEventStore.config.repository,
|
|
29
31
|
mapper: ActiveEventStore::Mapper.new(mapping: ActiveEventStore.mapping),
|
|
30
32
|
**ActiveEventStore.config.store_options
|
|
31
33
|
)
|
|
34
|
+
Rails.configuration.event_store = ActiveEventStore.event_store
|
|
32
35
|
|
|
33
36
|
ActiveSupport.run_load_hooks(:active_event_store, ActiveEventStore)
|
|
34
37
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: active_event_store
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Vladimir Dementyev
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2025-12-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails_event_store
|
|
@@ -143,7 +143,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
143
143
|
- !ruby/object:Gem::Version
|
|
144
144
|
version: '0'
|
|
145
145
|
requirements: []
|
|
146
|
-
rubygems_version: 3.
|
|
146
|
+
rubygems_version: 3.5.22
|
|
147
147
|
signing_key:
|
|
148
148
|
specification_version: 4
|
|
149
149
|
summary: Rails Event Store in a more Rails way
|