synapse-core 0.5.4 → 0.5.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/synapse/command/async_command_bus.rb +3 -5
- data/lib/synapse/common.rb +0 -1
- data/lib/synapse/configuration/component/command_bus/async_command_bus.rb +3 -2
- data/lib/synapse/configuration/component/{mixin → shared}/thread_pool.rb +10 -8
- data/lib/synapse/configuration/dependent.rb +2 -2
- data/lib/synapse/configuration/ext.rb +58 -29
- data/lib/synapse/configuration.rb +1 -1
- data/lib/synapse/domain/aggregate_root.rb +43 -19
- data/lib/synapse/domain/errors.rb +9 -0
- data/lib/synapse/domain/event_container.rb +3 -3
- data/lib/synapse/domain/message.rb +2 -2
- data/lib/synapse/domain/message_builder.rb +2 -2
- data/lib/synapse/domain/simple_stream.rb +39 -0
- data/lib/synapse/domain/stream.rb +2 -41
- data/lib/synapse/domain.rb +3 -0
- data/lib/synapse/event_sourcing/aggregate_root.rb +102 -2
- data/lib/synapse/event_sourcing/caching.rb +1 -1
- data/lib/synapse/event_sourcing/entity.rb +2 -2
- data/lib/synapse/event_sourcing/member.rb +3 -13
- data/lib/synapse/event_sourcing/repository.rb +9 -2
- data/lib/synapse/event_sourcing/snapshot/taker.rb +2 -2
- data/lib/synapse/mapping/mapping.rb +2 -2
- data/lib/synapse/process_manager/simple_process_manager.rb +1 -0
- data/lib/synapse/rails/injection_helper.rb +23 -0
- data/lib/synapse/railtie.rb +17 -0
- data/lib/synapse/repository/lock_manager.rb +3 -3
- data/lib/synapse/uow/listener.rb +2 -2
- data/lib/synapse/uow/listener_collection.rb +7 -51
- data/lib/synapse/version.rb +1 -1
- data/lib/synapse-core.rb +1 -0
- data/lib/synapse.rb +3 -0
- data/test/command/async_command_bus_test.rb +8 -11
- data/test/configuration/component/command_bus/async_command_bus_test.rb +7 -6
- data/test/configuration/component/serialization/serializer_test.rb +2 -2
- data/test/configuration/fixtures/dependent.rb +1 -1
- data/test/rails/injection_helper_test.rb +27 -0
- data/test/serialization/converter/ox_test.rb +2 -2
- data/test/serialization/serializer/oj_test.rb +1 -1
- data/test/serialization/serializer/ox_test.rb +1 -1
- data/test/test_helper.rb +8 -9
- data/test/uow/uow_test.rb +2 -2
- metadata +221 -222
- data/lib/synapse/common/concurrency/executor.rb +0 -13
- data/test/support/countdown_latch.rb +0 -18
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: synapse-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-06-
|
12
|
+
date: 2013-06-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|
@@ -60,287 +60,291 @@ dependencies:
|
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '1.8'
|
62
62
|
- !ruby/object:Gem::Dependency
|
63
|
-
name:
|
63
|
+
name: contender
|
64
64
|
requirement: !ruby/object:Gem::Requirement
|
65
65
|
none: false
|
66
66
|
requirements:
|
67
|
-
- -
|
67
|
+
- - ~>
|
68
68
|
- !ruby/object:Gem::Version
|
69
|
-
version: '0'
|
69
|
+
version: '0.1'
|
70
70
|
type: :runtime
|
71
71
|
prerelease: false
|
72
72
|
version_requirements: !ruby/object:Gem::Requirement
|
73
73
|
none: false
|
74
74
|
requirements:
|
75
|
-
- -
|
75
|
+
- - ~>
|
76
76
|
- !ruby/object:Gem::Version
|
77
|
-
version: '0'
|
77
|
+
version: '0.1'
|
78
78
|
description: A versatile CQRS and event sourcing framework
|
79
79
|
email: ianunruh@gmail.com
|
80
80
|
executables: []
|
81
81
|
extensions: []
|
82
82
|
extra_rdoc_files: []
|
83
83
|
files:
|
84
|
-
- lib/synapse.rb
|
85
|
-
- lib/synapse/
|
86
|
-
- lib/synapse/
|
87
|
-
- lib/synapse/
|
88
|
-
- lib/synapse/
|
89
|
-
- lib/synapse/
|
90
|
-
- lib/synapse/
|
91
|
-
- lib/synapse/uow/nesting.rb
|
92
|
-
- lib/synapse/command/rollback_policy.rb
|
93
|
-
- lib/synapse/command/interceptors/serialization.rb
|
94
|
-
- lib/synapse/command/callbacks/future.rb
|
95
|
-
- lib/synapse/command/gateway/interval_retry_scheduler.rb
|
96
|
-
- lib/synapse/command/gateway/retrying_callback.rb
|
97
|
-
- lib/synapse/command/gateway/retry_scheduler.rb
|
98
|
-
- lib/synapse/command/duplication.rb
|
99
|
-
- lib/synapse/command/simple_command_bus.rb
|
100
|
-
- lib/synapse/command/message.rb
|
84
|
+
- lib/synapse/auditing/audit_logger.rb
|
85
|
+
- lib/synapse/auditing/command_metadata_provider.rb
|
86
|
+
- lib/synapse/auditing/correlation_data_provider.rb
|
87
|
+
- lib/synapse/auditing/data_provider.rb
|
88
|
+
- lib/synapse/auditing/dispatch_interceptor.rb
|
89
|
+
- lib/synapse/auditing/unit_listener.rb
|
90
|
+
- lib/synapse/auditing.rb
|
101
91
|
- lib/synapse/command/async_command_bus.rb
|
102
|
-
- lib/synapse/command/
|
103
|
-
- lib/synapse/command/
|
104
|
-
- lib/synapse/command/gateway.rb
|
105
|
-
- lib/synapse/command/errors.rb
|
92
|
+
- lib/synapse/command/callbacks/future.rb
|
93
|
+
- lib/synapse/command/command_bus.rb
|
106
94
|
- lib/synapse/command/command_callback.rb
|
95
|
+
- lib/synapse/command/command_filter.rb
|
96
|
+
- lib/synapse/command/command_handler.rb
|
107
97
|
- lib/synapse/command/dispatch_interceptor.rb
|
98
|
+
- lib/synapse/command/duplication.rb
|
99
|
+
- lib/synapse/command/errors.rb
|
108
100
|
- lib/synapse/command/filters/validation.rb
|
109
|
-
- lib/synapse/command/
|
110
|
-
- lib/synapse/command/
|
101
|
+
- lib/synapse/command/gateway/interval_retry_scheduler.rb
|
102
|
+
- lib/synapse/command/gateway/retry_scheduler.rb
|
103
|
+
- lib/synapse/command/gateway/retrying_callback.rb
|
104
|
+
- lib/synapse/command/gateway.rb
|
105
|
+
- lib/synapse/command/interceptor_chain.rb
|
106
|
+
- lib/synapse/command/interceptors/serialization.rb
|
111
107
|
- lib/synapse/command/mapping.rb
|
112
|
-
- lib/synapse/
|
113
|
-
- lib/synapse/
|
114
|
-
- lib/synapse/
|
115
|
-
- lib/synapse/
|
116
|
-
- lib/synapse/
|
117
|
-
- lib/synapse/
|
118
|
-
- lib/synapse/
|
119
|
-
- lib/synapse/
|
120
|
-
- lib/synapse/
|
121
|
-
- lib/synapse/
|
122
|
-
- lib/synapse/
|
123
|
-
- lib/synapse/
|
124
|
-
- lib/synapse/event_sourcing/entity.rb
|
125
|
-
- lib/synapse/event_sourcing/snapshot/aggregate_taker.rb
|
126
|
-
- lib/synapse/event_sourcing/snapshot/policy.rb
|
127
|
-
- lib/synapse/event_sourcing/snapshot/unit_listener.rb
|
128
|
-
- lib/synapse/event_sourcing/snapshot/taker.rb
|
129
|
-
- lib/synapse/event_sourcing/member.rb
|
130
|
-
- lib/synapse/event_sourcing/repository.rb
|
131
|
-
- lib/synapse/event_sourcing/aggregate_root.rb
|
132
|
-
- lib/synapse/event_sourcing/conflict_resolver.rb
|
133
|
-
- lib/synapse/upcasting/upcaster.rb
|
134
|
-
- lib/synapse/upcasting/upcaster_chain.rb
|
135
|
-
- lib/synapse/upcasting/data.rb
|
136
|
-
- lib/synapse/upcasting/single_upcaster.rb
|
137
|
-
- lib/synapse/upcasting/context.rb
|
138
|
-
- lib/synapse/version.rb
|
139
|
-
- lib/synapse/process_manager.rb
|
140
|
-
- lib/synapse/configuration/definition_builder.rb
|
141
|
-
- lib/synapse/configuration/ext.rb
|
142
|
-
- lib/synapse/configuration/container_builder.rb
|
143
|
-
- lib/synapse/configuration/dependent.rb
|
144
|
-
- lib/synapse/configuration/definition.rb
|
145
|
-
- lib/synapse/configuration/component/uow/unit_factory.rb
|
146
|
-
- lib/synapse/configuration/component/command_bus/simple_command_bus.rb
|
108
|
+
- lib/synapse/command/message.rb
|
109
|
+
- lib/synapse/command/rollback_policy.rb
|
110
|
+
- lib/synapse/command/simple_command_bus.rb
|
111
|
+
- lib/synapse/command.rb
|
112
|
+
- lib/synapse/common/concurrency/identifier_lock.rb
|
113
|
+
- lib/synapse/common/concurrency/public_lock.rb
|
114
|
+
- lib/synapse/common/duplication.rb
|
115
|
+
- lib/synapse/common/errors.rb
|
116
|
+
- lib/synapse/common/identifier.rb
|
117
|
+
- lib/synapse/common/message.rb
|
118
|
+
- lib/synapse/common/message_builder.rb
|
119
|
+
- lib/synapse/common.rb
|
147
120
|
- lib/synapse/configuration/component/command_bus/async_command_bus.rb
|
148
121
|
- lib/synapse/configuration/component/command_bus/gateway.rb
|
149
|
-
- lib/synapse/configuration/component/
|
150
|
-
- lib/synapse/configuration/component/
|
122
|
+
- lib/synapse/configuration/component/command_bus/simple_command_bus.rb
|
123
|
+
- lib/synapse/configuration/component/command_bus.rb
|
124
|
+
- lib/synapse/configuration/component/event_bus/simple_event_bus.rb
|
125
|
+
- lib/synapse/configuration/component/event_bus.rb
|
126
|
+
- lib/synapse/configuration/component/event_sourcing/repository.rb
|
151
127
|
- lib/synapse/configuration/component/event_sourcing/snapshot/aggregate_taker.rb
|
152
128
|
- lib/synapse/configuration/component/event_sourcing/snapshot/interval_policy.rb
|
153
|
-
- lib/synapse/configuration/component/event_sourcing
|
154
|
-
- lib/synapse/configuration/component/upcasting/upcaster_chain.rb
|
155
|
-
- lib/synapse/configuration/component/process_manager.rb
|
156
|
-
- lib/synapse/configuration/component/process_manager/mapping_process_manager.rb
|
157
|
-
- lib/synapse/configuration/component/process_manager/generic_process_factory.rb
|
129
|
+
- lib/synapse/configuration/component/event_sourcing.rb
|
158
130
|
- lib/synapse/configuration/component/process_manager/container_resource_injector.rb
|
159
|
-
- lib/synapse/configuration/component/
|
160
|
-
- lib/synapse/configuration/component/
|
161
|
-
- lib/synapse/configuration/component/
|
162
|
-
- lib/synapse/configuration/component/
|
131
|
+
- lib/synapse/configuration/component/process_manager/generic_process_factory.rb
|
132
|
+
- lib/synapse/configuration/component/process_manager/mapping_process_manager.rb
|
133
|
+
- lib/synapse/configuration/component/process_manager.rb
|
134
|
+
- lib/synapse/configuration/component/repository/locking_repository.rb
|
135
|
+
- lib/synapse/configuration/component/repository/simple_repository.rb
|
163
136
|
- lib/synapse/configuration/component/repository.rb
|
164
|
-
- lib/synapse/configuration/component/event_bus/simple_event_bus.rb
|
165
137
|
- lib/synapse/configuration/component/serialization/converter_factory.rb
|
166
138
|
- lib/synapse/configuration/component/serialization/serializer.rb
|
167
|
-
- lib/synapse/configuration/component/
|
168
|
-
- lib/synapse/configuration/component/
|
169
|
-
- lib/synapse/configuration/component/
|
139
|
+
- lib/synapse/configuration/component/serialization.rb
|
140
|
+
- lib/synapse/configuration/component/shared/thread_pool.rb
|
141
|
+
- lib/synapse/configuration/component/uow/unit_factory.rb
|
142
|
+
- lib/synapse/configuration/component/uow.rb
|
143
|
+
- lib/synapse/configuration/component/upcasting/upcaster_chain.rb
|
144
|
+
- lib/synapse/configuration/component/upcasting.rb
|
170
145
|
- lib/synapse/configuration/container.rb
|
146
|
+
- lib/synapse/configuration/container_builder.rb
|
147
|
+
- lib/synapse/configuration/definition.rb
|
148
|
+
- lib/synapse/configuration/definition_builder.rb
|
149
|
+
- lib/synapse/configuration/dependent.rb
|
150
|
+
- lib/synapse/configuration/ext.rb
|
151
|
+
- lib/synapse/configuration.rb
|
152
|
+
- lib/synapse/domain/aggregate_root.rb
|
153
|
+
- lib/synapse/domain/errors.rb
|
154
|
+
- lib/synapse/domain/event_container.rb
|
155
|
+
- lib/synapse/domain/message.rb
|
156
|
+
- lib/synapse/domain/message_builder.rb
|
157
|
+
- lib/synapse/domain/simple_stream.rb
|
158
|
+
- lib/synapse/domain/stream.rb
|
159
|
+
- lib/synapse/domain.rb
|
160
|
+
- lib/synapse/event_bus/event_bus.rb
|
161
|
+
- lib/synapse/event_bus/event_listener.rb
|
162
|
+
- lib/synapse/event_bus/event_publisher.rb
|
163
|
+
- lib/synapse/event_bus/mapping.rb
|
164
|
+
- lib/synapse/event_bus/simple_event_bus.rb
|
165
|
+
- lib/synapse/event_bus.rb
|
166
|
+
- lib/synapse/event_sourcing/aggregate_factory.rb
|
167
|
+
- lib/synapse/event_sourcing/aggregate_root.rb
|
168
|
+
- lib/synapse/event_sourcing/caching.rb
|
169
|
+
- lib/synapse/event_sourcing/conflict_resolver.rb
|
170
|
+
- lib/synapse/event_sourcing/entity.rb
|
171
|
+
- lib/synapse/event_sourcing/member.rb
|
172
|
+
- lib/synapse/event_sourcing/repository.rb
|
173
|
+
- lib/synapse/event_sourcing/snapshot/aggregate_taker.rb
|
174
|
+
- lib/synapse/event_sourcing/snapshot/policy.rb
|
175
|
+
- lib/synapse/event_sourcing/snapshot/taker.rb
|
176
|
+
- lib/synapse/event_sourcing/snapshot/unit_listener.rb
|
177
|
+
- lib/synapse/event_sourcing/stream_decorator.rb
|
178
|
+
- lib/synapse/event_sourcing.rb
|
179
|
+
- lib/synapse/event_store/errors.rb
|
180
|
+
- lib/synapse/event_store/event_store.rb
|
181
|
+
- lib/synapse/event_store/in_memory.rb
|
182
|
+
- lib/synapse/event_store.rb
|
171
183
|
- lib/synapse/mapping/mapper.rb
|
172
184
|
- lib/synapse/mapping/mapping.rb
|
173
|
-
- lib/synapse/
|
174
|
-
- lib/synapse/process_manager/
|
175
|
-
- lib/synapse/process_manager/correlation_set.rb
|
176
|
-
- lib/synapse/process_manager/pessimistic_lock_manager.rb
|
185
|
+
- lib/synapse/mapping.rb
|
186
|
+
- lib/synapse/process_manager/container_resource_injector.rb
|
177
187
|
- lib/synapse/process_manager/correlation.rb
|
178
|
-
- lib/synapse/process_manager/repository/in_memory.rb
|
179
188
|
- lib/synapse/process_manager/correlation_resolver.rb
|
180
|
-
- lib/synapse/process_manager/
|
181
|
-
- lib/synapse/process_manager/
|
189
|
+
- lib/synapse/process_manager/correlation_set.rb
|
190
|
+
- lib/synapse/process_manager/lock_manager.rb
|
182
191
|
- lib/synapse/process_manager/mapping/process.rb
|
192
|
+
- lib/synapse/process_manager/mapping/process_manager.rb
|
193
|
+
- lib/synapse/process_manager/pessimistic_lock_manager.rb
|
194
|
+
- lib/synapse/process_manager/process.rb
|
183
195
|
- lib/synapse/process_manager/process_factory.rb
|
196
|
+
- lib/synapse/process_manager/process_manager.rb
|
197
|
+
- lib/synapse/process_manager/process_repository.rb
|
198
|
+
- lib/synapse/process_manager/repository/in_memory.rb
|
184
199
|
- lib/synapse/process_manager/resource_injector.rb
|
185
200
|
- lib/synapse/process_manager/simple_process_manager.rb
|
186
|
-
- lib/synapse/process_manager
|
187
|
-
- lib/synapse/
|
188
|
-
- lib/synapse/
|
189
|
-
- lib/synapse/
|
190
|
-
- lib/synapse/
|
191
|
-
- lib/synapse/
|
192
|
-
- lib/synapse/
|
193
|
-
- lib/synapse/
|
194
|
-
- lib/synapse/
|
195
|
-
- lib/synapse/
|
196
|
-
- lib/synapse/auditing/audit_logger.rb
|
197
|
-
- lib/synapse/auditing/command_metadata_provider.rb
|
198
|
-
- lib/synapse/auditing/data_provider.rb
|
199
|
-
- lib/synapse/auditing/dispatch_interceptor.rb
|
200
|
-
- lib/synapse/auditing/unit_listener.rb
|
201
|
-
- lib/synapse/serialization.rb
|
202
|
-
- lib/synapse/uow.rb
|
203
|
-
- lib/synapse/domain.rb
|
204
|
-
- lib/synapse/common/identifier.rb
|
205
|
-
- lib/synapse/common/duplication.rb
|
206
|
-
- lib/synapse/common/concurrency/public_lock.rb
|
207
|
-
- lib/synapse/common/concurrency/executor.rb
|
208
|
-
- lib/synapse/common/concurrency/identifier_lock.rb
|
209
|
-
- lib/synapse/common/message.rb
|
210
|
-
- lib/synapse/common/errors.rb
|
211
|
-
- lib/synapse/common/message_builder.rb
|
201
|
+
- lib/synapse/process_manager.rb
|
202
|
+
- lib/synapse/rails/injection_helper.rb
|
203
|
+
- lib/synapse/railtie.rb
|
204
|
+
- lib/synapse/repository/errors.rb
|
205
|
+
- lib/synapse/repository/lock_manager.rb
|
206
|
+
- lib/synapse/repository/locking.rb
|
207
|
+
- lib/synapse/repository/optimistic_lock_manager.rb
|
208
|
+
- lib/synapse/repository/pessimistic_lock_manager.rb
|
209
|
+
- lib/synapse/repository/repository.rb
|
210
|
+
- lib/synapse/repository/simple_repository.rb
|
212
211
|
- lib/synapse/repository.rb
|
213
|
-
- lib/synapse/
|
214
|
-
- lib/synapse/
|
215
|
-
- lib/synapse/
|
216
|
-
- lib/synapse/
|
217
|
-
- lib/synapse/
|
218
|
-
- lib/synapse/
|
219
|
-
- lib/synapse/
|
220
|
-
- lib/synapse/domain/stream.rb
|
221
|
-
- lib/synapse/domain/message_builder.rb
|
222
|
-
- lib/synapse/domain/aggregate_root.rb
|
212
|
+
- lib/synapse/serialization/converter/chain.rb
|
213
|
+
- lib/synapse/serialization/converter/identity.rb
|
214
|
+
- lib/synapse/serialization/converter/json.rb
|
215
|
+
- lib/synapse/serialization/converter/ox.rb
|
216
|
+
- lib/synapse/serialization/converter.rb
|
217
|
+
- lib/synapse/serialization/converter_factory.rb
|
218
|
+
- lib/synapse/serialization/errors.rb
|
223
219
|
- lib/synapse/serialization/lazy_object.rb
|
224
|
-
- lib/synapse/serialization/
|
225
|
-
- lib/synapse/serialization/message/serialization_aware.rb
|
220
|
+
- lib/synapse/serialization/message/data.rb
|
226
221
|
- lib/synapse/serialization/message/metadata.rb
|
222
|
+
- lib/synapse/serialization/message/serialization_aware.rb
|
227
223
|
- lib/synapse/serialization/message/serialization_aware_message.rb
|
228
224
|
- lib/synapse/serialization/message/serialized_message.rb
|
229
|
-
- lib/synapse/serialization/message/data.rb
|
230
|
-
- lib/synapse/serialization/message/serialized_object_cache.rb
|
231
225
|
- lib/synapse/serialization/message/serialized_message_builder.rb
|
226
|
+
- lib/synapse/serialization/message/serialized_object_cache.rb
|
232
227
|
- lib/synapse/serialization/message/serializer.rb
|
228
|
+
- lib/synapse/serialization/revision_resolver.rb
|
229
|
+
- lib/synapse/serialization/serialized_object.rb
|
233
230
|
- lib/synapse/serialization/serialized_type.rb
|
234
|
-
- lib/synapse/serialization/converter/ox.rb
|
235
|
-
- lib/synapse/serialization/converter/chain.rb
|
236
|
-
- lib/synapse/serialization/converter/json.rb
|
237
|
-
- lib/synapse/serialization/converter/identity.rb
|
238
|
-
- lib/synapse/serialization/converter_factory.rb
|
239
|
-
- lib/synapse/serialization/serializer/ox.rb
|
240
|
-
- lib/synapse/serialization/serializer/oj.rb
|
241
|
-
- lib/synapse/serialization/serializer/marshal.rb
|
242
231
|
- lib/synapse/serialization/serializer/attribute.rb
|
243
|
-
- lib/synapse/serialization/
|
232
|
+
- lib/synapse/serialization/serializer/marshal.rb
|
233
|
+
- lib/synapse/serialization/serializer/oj.rb
|
234
|
+
- lib/synapse/serialization/serializer/ox.rb
|
244
235
|
- lib/synapse/serialization/serializer.rb
|
245
|
-
- lib/synapse/serialization
|
246
|
-
- lib/synapse/
|
247
|
-
- lib/synapse/
|
248
|
-
- lib/synapse/
|
249
|
-
- lib/synapse/
|
250
|
-
-
|
251
|
-
-
|
252
|
-
-
|
253
|
-
-
|
254
|
-
-
|
236
|
+
- lib/synapse/serialization.rb
|
237
|
+
- lib/synapse/uow/factory.rb
|
238
|
+
- lib/synapse/uow/listener.rb
|
239
|
+
- lib/synapse/uow/listener_collection.rb
|
240
|
+
- lib/synapse/uow/nesting.rb
|
241
|
+
- lib/synapse/uow/provider.rb
|
242
|
+
- lib/synapse/uow/transaction_manager.rb
|
243
|
+
- lib/synapse/uow/uow.rb
|
244
|
+
- lib/synapse/uow.rb
|
245
|
+
- lib/synapse/upcasting/context.rb
|
246
|
+
- lib/synapse/upcasting/data.rb
|
247
|
+
- lib/synapse/upcasting/single_upcaster.rb
|
248
|
+
- lib/synapse/upcasting/upcaster.rb
|
249
|
+
- lib/synapse/upcasting/upcaster_chain.rb
|
250
|
+
- lib/synapse/upcasting.rb
|
251
|
+
- lib/synapse/version.rb
|
252
|
+
- lib/synapse-core.rb
|
253
|
+
- lib/synapse.rb
|
254
|
+
- test/auditing/data_provider_test.rb
|
255
|
+
- test/auditing/dispatch_interceptor_test.rb
|
256
|
+
- test/auditing/unit_listener_test.rb
|
257
|
+
- test/command/async_command_bus_test.rb
|
255
258
|
- test/command/duplication_test.rb
|
256
|
-
- test/command/interceptor_chain_test.rb
|
257
|
-
- test/command/message_test.rb
|
258
|
-
- test/command/gateway/retrying_callback_test.rb
|
259
259
|
- test/command/gateway/interval_retry_scheduler_test.rb
|
260
|
+
- test/command/gateway/retrying_callback_test.rb
|
260
261
|
- test/command/gateway_test.rb
|
261
|
-
- test/command/
|
262
|
-
- test/command/async_command_bus_test.rb
|
263
|
-
- test/command/serialization_test.rb
|
262
|
+
- test/command/interceptor_chain_test.rb
|
264
263
|
- test/command/mapping_test.rb
|
264
|
+
- test/command/message_test.rb
|
265
|
+
- test/command/serialization_test.rb
|
266
|
+
- test/command/simple_command_bus_test.rb
|
265
267
|
- test/command/validation_test.rb
|
266
|
-
- test/
|
267
|
-
- test/
|
268
|
-
- test/
|
269
|
-
- test/repository/locking_test.rb
|
270
|
-
- test/test_helper.rb
|
271
|
-
- test/event_sourcing/repository_test.rb
|
272
|
-
- test/event_sourcing/aggregate_root_test.rb
|
273
|
-
- test/event_sourcing/snapshot/interval_policy_test.rb
|
274
|
-
- test/event_sourcing/snapshot/aggregate_taker_test.rb
|
275
|
-
- test/event_sourcing/caching_test.rb
|
276
|
-
- test/event_sourcing/entity_test.rb
|
277
|
-
- test/event_sourcing/fixtures.rb
|
278
|
-
- test/event_sourcing/aggregate_factory_test.rb
|
279
|
-
- test/upcasting/data_test.rb
|
280
|
-
- test/upcasting/fixtures.rb
|
281
|
-
- test/upcasting/chain_test.rb
|
282
|
-
- test/configuration/container_builder_test.rb
|
283
|
-
- test/configuration/definition_builder_test.rb
|
284
|
-
- test/configuration/definition_test.rb
|
285
|
-
- test/configuration/container_test.rb
|
286
|
-
- test/configuration/dependent_test.rb
|
287
|
-
- test/configuration/fixtures/dependent.rb
|
288
|
-
- test/configuration/ext_test.rb
|
289
|
-
- test/configuration/component/uow/unit_factory_test.rb
|
290
|
-
- test/configuration/component/command_bus/simple_command_bus_test.rb
|
268
|
+
- test/common/concurrency/identifier_lock_test.rb
|
269
|
+
- test/common/concurrency/public_lock_test.rb
|
270
|
+
- test/common/duplication_test.rb
|
291
271
|
- test/configuration/component/command_bus/async_command_bus_test.rb
|
292
|
-
- test/configuration/component/
|
272
|
+
- test/configuration/component/command_bus/simple_command_bus_test.rb
|
273
|
+
- test/configuration/component/event_bus/simple_event_bus_test.rb
|
293
274
|
- test/configuration/component/event_sourcing/repository_test.rb
|
294
|
-
- test/configuration/component/upcasting/upcaster_chain_test.rb
|
295
275
|
- test/configuration/component/process_manager/container_resource_injector_test.rb
|
296
276
|
- test/configuration/component/process_manager/mapping_process_manager_test.rb
|
297
|
-
- test/configuration/component/
|
298
|
-
- test/configuration/component/serialization/serializer_test.rb
|
277
|
+
- test/configuration/component/repository/simple_repository_test.rb
|
299
278
|
- test/configuration/component/serialization/converter_factory_test.rb
|
300
|
-
- test/
|
301
|
-
- test/
|
279
|
+
- test/configuration/component/serialization/serializer_test.rb
|
280
|
+
- test/configuration/component/uow/unit_factory_test.rb
|
281
|
+
- test/configuration/component/upcasting/upcaster_chain_test.rb
|
282
|
+
- test/configuration/container_builder_test.rb
|
283
|
+
- test/configuration/container_test.rb
|
284
|
+
- test/configuration/definition_builder_test.rb
|
285
|
+
- test/configuration/definition_test.rb
|
286
|
+
- test/configuration/dependent_test.rb
|
287
|
+
- test/configuration/ext_test.rb
|
288
|
+
- test/configuration/fixtures/dependent.rb
|
289
|
+
- test/domain/aggregate_root_test.rb
|
290
|
+
- test/domain/fixtures.rb
|
291
|
+
- test/domain/message_test.rb
|
292
|
+
- test/domain/stream_test.rb
|
293
|
+
- test/event_bus/mapping_test.rb
|
294
|
+
- test/event_bus/publisher_test.rb
|
295
|
+
- test/event_sourcing/aggregate_factory_test.rb
|
296
|
+
- test/event_sourcing/aggregate_root_test.rb
|
297
|
+
- test/event_sourcing/caching_test.rb
|
298
|
+
- test/event_sourcing/entity_test.rb
|
299
|
+
- test/event_sourcing/fixtures.rb
|
300
|
+
- test/event_sourcing/repository_test.rb
|
301
|
+
- test/event_sourcing/snapshot/aggregate_taker_test.rb
|
302
|
+
- test/event_sourcing/snapshot/interval_policy_test.rb
|
303
|
+
- test/event_store/in_memory_test.rb
|
302
304
|
- test/process_manager/container_resource_injector_test.rb
|
303
|
-
- test/process_manager/
|
304
|
-
- test/process_manager/mapping/process_test.rb
|
305
|
-
- test/process_manager/mapping/process_manager_test.rb
|
306
|
-
- test/process_manager/mapping/fixtures.rb
|
305
|
+
- test/process_manager/correlation_set_test.rb
|
307
306
|
- test/process_manager/correlation_test.rb
|
308
|
-
- test/process_manager/process_factory_test.rb
|
309
307
|
- test/process_manager/in_memory_test.rb
|
310
|
-
- test/
|
311
|
-
- test/
|
312
|
-
- test/
|
313
|
-
- test/
|
314
|
-
- test/
|
315
|
-
- test/
|
316
|
-
- test/
|
317
|
-
- test/
|
318
|
-
- test/
|
319
|
-
- test/
|
320
|
-
- test/
|
321
|
-
- test/
|
322
|
-
- test/domain/message_test.rb
|
323
|
-
- test/domain/fixtures.rb
|
324
|
-
- test/serialization/message/metadata_test.rb
|
325
|
-
- test/serialization/message/serialization_aware_message_test.rb
|
326
|
-
- test/serialization/message/serializer_test.rb
|
327
|
-
- test/serialization/message/serialized_message_builder_test.rb
|
328
|
-
- test/serialization/message/serialized_message_test.rb
|
308
|
+
- test/process_manager/mapping/fixtures.rb
|
309
|
+
- test/process_manager/mapping/process_manager_test.rb
|
310
|
+
- test/process_manager/mapping/process_test.rb
|
311
|
+
- test/process_manager/process_factory_test.rb
|
312
|
+
- test/process_manager/process_test.rb
|
313
|
+
- test/process_manager/simple_process_manager_test.rb
|
314
|
+
- test/rails/injection_helper_test.rb
|
315
|
+
- test/repository/locking_test.rb
|
316
|
+
- test/repository/optimistic_test.rb
|
317
|
+
- test/repository/pessimistic_test.rb
|
318
|
+
- test/repository/simple_repository_test.rb
|
319
|
+
- test/serialization/converter/chain_test.rb
|
329
320
|
- test/serialization/converter/factory_test.rb
|
330
|
-
- test/serialization/converter/ox_test.rb
|
331
321
|
- test/serialization/converter/identity_test.rb
|
332
322
|
- test/serialization/converter/json_test.rb
|
333
|
-
- test/serialization/converter/
|
334
|
-
- test/serialization/
|
323
|
+
- test/serialization/converter/ox_test.rb
|
324
|
+
- test/serialization/fixtures.rb
|
335
325
|
- test/serialization/lazy_object_test.rb
|
336
|
-
- test/serialization/
|
337
|
-
- test/serialization/
|
338
|
-
- test/serialization/
|
339
|
-
- test/serialization/
|
340
|
-
- test/serialization/
|
326
|
+
- test/serialization/message/metadata_test.rb
|
327
|
+
- test/serialization/message/serialization_aware_message_test.rb
|
328
|
+
- test/serialization/message/serialized_message_builder_test.rb
|
329
|
+
- test/serialization/message/serialized_message_test.rb
|
330
|
+
- test/serialization/message/serializer_test.rb
|
341
331
|
- test/serialization/revision_resolver_test.rb
|
342
|
-
- test/serialization/
|
332
|
+
- test/serialization/serialized_object_test.rb
|
343
333
|
- test/serialization/serialized_type_test.rb
|
334
|
+
- test/serialization/serializer/attribute_test.rb
|
335
|
+
- test/serialization/serializer/marshal_test.rb
|
336
|
+
- test/serialization/serializer/oj_test.rb
|
337
|
+
- test/serialization/serializer/ox_test.rb
|
338
|
+
- test/serialization/serializer_test.rb
|
339
|
+
- test/test_ext.rb
|
340
|
+
- test/test_helper.rb
|
341
|
+
- test/uow/factory_test.rb
|
342
|
+
- test/uow/outer_commit_listener_test.rb
|
343
|
+
- test/uow/provider_test.rb
|
344
|
+
- test/uow/uow_test.rb
|
345
|
+
- test/upcasting/chain_test.rb
|
346
|
+
- test/upcasting/data_test.rb
|
347
|
+
- test/upcasting/fixtures.rb
|
344
348
|
homepage: https://github.com/ianunruh/synapse
|
345
349
|
licenses:
|
346
350
|
- Apache 2.0
|
@@ -354,18 +358,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
354
358
|
- - ! '>='
|
355
359
|
- !ruby/object:Gem::Version
|
356
360
|
version: '0'
|
357
|
-
segments:
|
358
|
-
- 0
|
359
|
-
hash: 293343002242626074
|
360
361
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
361
362
|
none: false
|
362
363
|
requirements:
|
363
364
|
- - ! '>='
|
364
365
|
- !ruby/object:Gem::Version
|
365
366
|
version: '0'
|
366
|
-
segments:
|
367
|
-
- 0
|
368
|
-
hash: 293343002242626074
|
369
367
|
requirements: []
|
370
368
|
rubyforge_project:
|
371
369
|
rubygems_version: 1.8.25
|
@@ -373,3 +371,4 @@ signing_key:
|
|
373
371
|
specification_version: 3
|
374
372
|
summary: A versatile CQRS and event sourcing framework
|
375
373
|
test_files: []
|
374
|
+
has_rdoc:
|
@@ -1,18 +0,0 @@
|
|
1
|
-
class CountdownLatch
|
2
|
-
def initialize(count)
|
3
|
-
@count = count
|
4
|
-
@mutex = Mutex.new
|
5
|
-
end
|
6
|
-
|
7
|
-
def countdown!
|
8
|
-
@mutex.synchronize do
|
9
|
-
@count = @count.pred if @count > 0
|
10
|
-
end
|
11
|
-
end
|
12
|
-
|
13
|
-
def count
|
14
|
-
@mutex.synchronize do
|
15
|
-
@count
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|