rails_event_store 2.5.1 → 2.7.0

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: b4bf4982e3f5d3d138a62a3697f341abc3df9680b57ae0a96e7874607f714cb1
4
- data.tar.gz: c2e5c36d61920a5726993181706b3bf7cafb1397066573038d42f2c5a8ddfbba
3
+ metadata.gz: ef5465ce4a4c2899766de95a197855c2353b988b9d826cacdff4e5cc706c54a4
4
+ data.tar.gz: 942acb57ddeda4b51c0a9f7e8ee59636f7340d173ad9f93e4b3aec7ededb4179
5
5
  SHA512:
6
- metadata.gz: 7f6c96f1f8bc226e0de44bc27fa180e8ee6d1edce977e9276f6e640e78b375c0acdd3cc81fca559206c2a55958175fb24afa8489f0fc7a3bff250252fdb67019
7
- data.tar.gz: 350395868ff6d0df21585a5da0126bbbe34eb0d43e9a3728599382b9b520a8e987f65cf64325fc60a16e4900b4ede9d71ba09b52c3f067d93139d3a170fa5d44
6
+ metadata.gz: 49f6b17e95f1588b730f958157f5755df5d7e092d8756428ca30b175860210a03efbd4bfff8bd583604711845492160c64291ae81c6edf9553dd79d11862897e
7
+ data.tar.gz: 122e8b50708844046ac3187323c4a13e36f0a5b97526a4b69954601ebcb8cd7533263975812c0f05bfbc9bffa6b8a1d77bc64d66ee12642602cd275ae777f303
@@ -1,4 +1,4 @@
1
1
  require_relative "spec_helper"
2
2
 
3
- RSpec.describe <%= bounded_context_namespace %> do
3
+ ::RSpec.describe <%= bounded_context_namespace %> do
4
4
  end
@@ -9,7 +9,7 @@ module RailsEventStore
9
9
  end
10
10
 
11
11
  def call(klass, record)
12
- klass.perform_later(record.serialize(serializer).to_h)
12
+ klass.perform_later(record.serialize(serializer).to_h.transform_keys(&:to_s))
13
13
  end
14
14
 
15
15
  def verify(subscriber)
@@ -14,7 +14,7 @@ module RailsEventStore
14
14
  Module.new do
15
15
  define_method :perform do |payload|
16
16
  event_store = event_store_locator.call if event_store_locator
17
- super(event_store.deserialize(serializer: serializer, **payload.symbolize_keys))
17
+ super(event_store.deserialize(serializer: serializer, **payload.transform_keys(&:to_sym)))
18
18
  end
19
19
  end
20
20
  end
@@ -6,7 +6,7 @@ module RailsEventStore
6
6
 
7
7
  def initialize(
8
8
  mapper: RubyEventStore::Mappers::Default.new,
9
- repository: RailsEventStoreActiveRecord::EventRepository.new(serializer: RubyEventStore::Serializers::YAML),
9
+ repository: RubyEventStore::ActiveRecord::EventRepository.new(serializer: RubyEventStore::Serializers::YAML),
10
10
  subscriptions: RubyEventStore::Subscriptions.new,
11
11
  dispatcher: RubyEventStore::ComposedDispatcher.new(
12
12
  RailsEventStore::AfterCommitAsyncDispatcher.new(
@@ -21,7 +21,7 @@ module RailsEventStore
21
21
  super(
22
22
  repository: RubyEventStore::InstrumentedRepository.new(repository, ActiveSupport::Notifications),
23
23
  mapper: RubyEventStore::Mappers::InstrumentedMapper.new(mapper, ActiveSupport::Notifications),
24
- subscriptions: subscriptions,
24
+ subscriptions: RubyEventStore::InstrumentedSubscriptions.new(subscriptions, ActiveSupport::Notifications),
25
25
  clock: clock,
26
26
  correlation_id_generator: correlation_id_generator,
27
27
  dispatcher: RubyEventStore::InstrumentedDispatcher.new(dispatcher, ActiveSupport::Notifications)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RailsEventStore
4
- VERSION = "2.5.1"
4
+ VERSION = "2.7.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_event_store
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.1
4
+ version: 2.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arkency
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-06-24 00:00:00.000000000 Z
11
+ date: 2022-12-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ruby_event_store
@@ -16,98 +16,98 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 2.5.1
19
+ version: 2.7.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 2.5.1
26
+ version: 2.7.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: ruby_event_store-browser
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 2.5.1
33
+ version: 2.7.0
34
34
  type: :runtime
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: 2.5.1
40
+ version: 2.7.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rails_event_store_active_record
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - '='
46
46
  - !ruby/object:Gem::Version
47
- version: 2.5.1
47
+ version: 2.7.0
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - '='
53
53
  - !ruby/object:Gem::Version
54
- version: 2.5.1
54
+ version: 2.7.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: aggregate_root
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - '='
60
60
  - !ruby/object:Gem::Version
61
- version: 2.5.1
61
+ version: 2.7.0
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - '='
67
67
  - !ruby/object:Gem::Version
68
- version: 2.5.1
68
+ version: 2.7.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: activesupport
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - ">="
74
74
  - !ruby/object:Gem::Version
75
- version: '3.0'
75
+ version: '6.0'
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - ">="
81
81
  - !ruby/object:Gem::Version
82
- version: '3.0'
82
+ version: '6.0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: activemodel
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - ">="
88
88
  - !ruby/object:Gem::Version
89
- version: '3.0'
89
+ version: '6.0'
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - ">="
95
95
  - !ruby/object:Gem::Version
96
- version: '3.0'
96
+ version: '6.0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: activejob
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - ">="
102
102
  - !ruby/object:Gem::Version
103
- version: '3.0'
103
+ version: '6.0'
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - ">="
109
109
  - !ruby/object:Gem::Version
110
- version: '3.0'
110
+ version: '6.0'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: arkency-command_bus
113
113
  requirement: !ruby/object:Gem::Requirement
@@ -176,7 +176,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
176
176
  - !ruby/object:Gem::Version
177
177
  version: '0'
178
178
  requirements: []
179
- rubygems_version: 3.3.7
179
+ rubygems_version: 3.3.26
180
180
  signing_key:
181
181
  specification_version: 4
182
182
  summary: Rails wrapper for RubyEventStore with batteries included