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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8710d5820746603d15b1d77b3bc01bbf70eb1943339041cf5c90fb80b15fd9b3
4
- data.tar.gz: 8b7c765faf7eb4b781e64068b30a361e36110a775c81aea466fdc0a01a843624
3
+ metadata.gz: 86a1b7e969cbfcc31c139a556751f16a99b113e94e1ec16ebd6b91d0b348b75f
4
+ data.tar.gz: b9f620f2513466b0deb45a6f9a957199c2b6c0e7f9efedfbeaec29fc98809f48
5
5
  SHA512:
6
- metadata.gz: 7f00bc57582a15aa87279ca77fe58fcce032a1e1fab32c2567faefddbfc11a6697944c438e7794f91d030494441ce9662c62911ea0bd26cd2ec69e2f81fcf6bd
7
- data.tar.gz: d793f2718e1e706ceea6d386e63527d55ade4a09c77a3ce9c2d6c25a1a6d2d32d162570dd239f58df3e1883106112f5ca152bd37845f9f3056eb7f42e9570370
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 asynchrounous subscriptions won't worke" unless defined?(::ActiveJob)
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
- dispatcher: RubyEventStore::ComposedDispatcher.new(
21
- RailsEventStore::AfterCommitAsyncDispatcher.new(
22
- scheduler: RailsEventStore::ActiveJobScheduler.new(
23
- serializer: ActiveEventStore.config.serializer
24
- )
25
- ),
26
- RubyEventStore::Dispatcher.new
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ActiveEventStore # :nodoc:
4
- VERSION = "1.2.0"
4
+ VERSION = "1.3.0"
5
5
  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.2.0
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: 2024-01-25 00:00:00.000000000 Z
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.4.20
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