ruby_event_store-rom 0.30.0 → 0.31.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Makefile +20 -3
- data/lib/ruby_event_store/rom/adapters/memory/relations/events.rb +45 -0
- data/lib/ruby_event_store/rom/adapters/memory/relations/stream_entries.rb +95 -0
- data/lib/ruby_event_store/rom/adapters/memory/unit_of_work.rb +49 -0
- data/lib/ruby_event_store/rom/adapters/sql/relations/events.rb +3 -1
- data/lib/ruby_event_store/rom/adapters/sql/relations/stream_entries.rb +2 -6
- data/lib/ruby_event_store/rom/adapters/sql/tasks/migration_tasks.rake +7 -4
- data/lib/ruby_event_store/rom/event_repository.rb +41 -24
- data/lib/ruby_event_store/rom/memory.rb +68 -0
- data/lib/ruby_event_store/rom/repositories/events.rb +2 -2
- data/lib/ruby_event_store/rom/repositories/stream_entries.rb +10 -11
- data/lib/ruby_event_store/rom/sql.rb +39 -3
- data/lib/ruby_event_store/rom/tuple_uniqueness_error.rb +13 -0
- data/lib/ruby_event_store/rom/version.rb +1 -1
- data/lib/ruby_event_store/rom.rb +10 -6
- data/lib/ruby_event_store/spec/rom/event_repository_lint.rb +206 -0
- data/lib/ruby_event_store/spec/rom/relations/events_lint.rb +75 -0
- data/lib/ruby_event_store/spec/rom/relations/stream_entries_lint.rb +198 -0
- data/lib/ruby_event_store/spec/rom/spec_helper_lint.rb +15 -0
- data/lib/ruby_event_store/spec/rom/unit_of_work_lint.rb +37 -0
- data/ruby_event_store-rom.gemspec +7 -7
- metadata +37 -28
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby_event_store-rom
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.31.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joel Van Horn
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-07-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -70,42 +70,42 @@ dependencies:
|
|
70
70
|
name: pg
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: '0.21'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- -
|
80
|
+
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0.21'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: mysql2
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- -
|
87
|
+
- - ">="
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: 0.4.10
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- -
|
94
|
+
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: 0.4.10
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: mutant-rspec
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- - "
|
101
|
+
- - ">="
|
102
102
|
- !ruby/object:Gem::Version
|
103
103
|
version: 0.8.14
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
|
-
- - "
|
108
|
+
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: 0.8.14
|
111
111
|
- !ruby/object:Gem::Dependency
|
@@ -156,14 +156,14 @@ dependencies:
|
|
156
156
|
requirements:
|
157
157
|
- - '='
|
158
158
|
- !ruby/object:Gem::Version
|
159
|
-
version: 0.
|
159
|
+
version: 0.31.0
|
160
160
|
type: :runtime
|
161
161
|
prerelease: false
|
162
162
|
version_requirements: !ruby/object:Gem::Requirement
|
163
163
|
requirements:
|
164
164
|
- - '='
|
165
165
|
- !ruby/object:Gem::Version
|
166
|
-
version: 0.
|
166
|
+
version: 0.31.0
|
167
167
|
- !ruby/object:Gem::Dependency
|
168
168
|
name: sequel
|
169
169
|
requirement: !ruby/object:Gem::Requirement
|
@@ -179,61 +179,61 @@ dependencies:
|
|
179
179
|
- !ruby/object:Gem::Version
|
180
180
|
version: '4.49'
|
181
181
|
- !ruby/object:Gem::Dependency
|
182
|
-
name:
|
182
|
+
name: dry-types
|
183
183
|
requirement: !ruby/object:Gem::Requirement
|
184
184
|
requirements:
|
185
185
|
- - "~>"
|
186
186
|
- !ruby/object:Gem::Version
|
187
|
-
version:
|
187
|
+
version: 0.12.2
|
188
188
|
type: :runtime
|
189
189
|
prerelease: false
|
190
190
|
version_requirements: !ruby/object:Gem::Requirement
|
191
191
|
requirements:
|
192
192
|
- - "~>"
|
193
193
|
- !ruby/object:Gem::Version
|
194
|
-
version:
|
194
|
+
version: 0.12.2
|
195
195
|
- !ruby/object:Gem::Dependency
|
196
|
-
name: rom-
|
196
|
+
name: rom-sql
|
197
197
|
requirement: !ruby/object:Gem::Requirement
|
198
198
|
requirements:
|
199
|
-
- - "
|
199
|
+
- - ">="
|
200
200
|
- !ruby/object:Gem::Version
|
201
|
-
version: '2.
|
201
|
+
version: '2.4'
|
202
202
|
type: :runtime
|
203
203
|
prerelease: false
|
204
204
|
version_requirements: !ruby/object:Gem::Requirement
|
205
205
|
requirements:
|
206
|
-
- - "
|
206
|
+
- - ">="
|
207
207
|
- !ruby/object:Gem::Version
|
208
|
-
version: '2.
|
208
|
+
version: '2.4'
|
209
209
|
- !ruby/object:Gem::Dependency
|
210
|
-
name: rom-
|
210
|
+
name: rom-repository
|
211
211
|
requirement: !ruby/object:Gem::Requirement
|
212
212
|
requirements:
|
213
|
-
- - "
|
213
|
+
- - ">="
|
214
214
|
- !ruby/object:Gem::Version
|
215
|
-
version: '
|
215
|
+
version: '2.0'
|
216
216
|
type: :runtime
|
217
217
|
prerelease: false
|
218
218
|
version_requirements: !ruby/object:Gem::Requirement
|
219
219
|
requirements:
|
220
|
-
- - "
|
220
|
+
- - ">="
|
221
221
|
- !ruby/object:Gem::Version
|
222
|
-
version: '
|
222
|
+
version: '2.0'
|
223
223
|
- !ruby/object:Gem::Dependency
|
224
|
-
name:
|
224
|
+
name: rom-changeset
|
225
225
|
requirement: !ruby/object:Gem::Requirement
|
226
226
|
requirements:
|
227
|
-
- - "
|
227
|
+
- - ">="
|
228
228
|
- !ruby/object:Gem::Version
|
229
|
-
version: 0
|
229
|
+
version: '1.0'
|
230
230
|
type: :runtime
|
231
231
|
prerelease: false
|
232
232
|
version_requirements: !ruby/object:Gem::Requirement
|
233
233
|
requirements:
|
234
|
-
- - "
|
234
|
+
- - ">="
|
235
235
|
- !ruby/object:Gem::Version
|
236
|
-
version: 0
|
236
|
+
version: '1.0'
|
237
237
|
description: Implementation of events repository based on ROM for Ruby Event Store'
|
238
238
|
email:
|
239
239
|
- joel@joelvanhorn.com
|
@@ -249,6 +249,9 @@ files:
|
|
249
249
|
- db/migrate/20180327044629_create_ruby_event_store_tables.rb
|
250
250
|
- lib/ruby_event_store-rom.rb
|
251
251
|
- lib/ruby_event_store/rom.rb
|
252
|
+
- lib/ruby_event_store/rom/adapters/memory/relations/events.rb
|
253
|
+
- lib/ruby_event_store/rom/adapters/memory/relations/stream_entries.rb
|
254
|
+
- lib/ruby_event_store/rom/adapters/memory/unit_of_work.rb
|
252
255
|
- lib/ruby_event_store/rom/adapters/sql/index_violation_detector.rb
|
253
256
|
- lib/ruby_event_store/rom/adapters/sql/rake_task.rb
|
254
257
|
- lib/ruby_event_store/rom/adapters/sql/relations/events.rb
|
@@ -258,12 +261,18 @@ files:
|
|
258
261
|
- lib/ruby_event_store/rom/event_repository.rb
|
259
262
|
- lib/ruby_event_store/rom/mappers/event_to_serialized_record.rb
|
260
263
|
- lib/ruby_event_store/rom/mappers/stream_entry_to_serialized_record.rb
|
264
|
+
- lib/ruby_event_store/rom/memory.rb
|
261
265
|
- lib/ruby_event_store/rom/repositories/events.rb
|
262
266
|
- lib/ruby_event_store/rom/repositories/stream_entries.rb
|
263
267
|
- lib/ruby_event_store/rom/sql.rb
|
264
268
|
- lib/ruby_event_store/rom/tuple_uniqueness_error.rb
|
265
269
|
- lib/ruby_event_store/rom/unit_of_work.rb
|
266
270
|
- lib/ruby_event_store/rom/version.rb
|
271
|
+
- lib/ruby_event_store/spec/rom/event_repository_lint.rb
|
272
|
+
- lib/ruby_event_store/spec/rom/relations/events_lint.rb
|
273
|
+
- lib/ruby_event_store/spec/rom/relations/stream_entries_lint.rb
|
274
|
+
- lib/ruby_event_store/spec/rom/spec_helper_lint.rb
|
275
|
+
- lib/ruby_event_store/spec/rom/unit_of_work_lint.rb
|
267
276
|
- ruby_event_store-rom.gemspec
|
268
277
|
homepage: https://railseventstore.org
|
269
278
|
licenses:
|