ruby_event_store-rom 0.35.0 → 0.36.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +1 -0
- data/.rubocop_todo.yml +84 -0
- data/Gemfile +4 -4
- data/Makefile +3 -0
- data/Rakefile +3 -3
- data/db/migrate/20180327044629_create_ruby_event_store_tables.rb +17 -8
- data/lib/ruby_event_store/rom.rb +19 -16
- data/lib/ruby_event_store/rom/adapters/memory/changesets/create_events.rb +17 -0
- data/lib/ruby_event_store/rom/adapters/memory/changesets/create_stream_entries.rb +17 -0
- data/lib/ruby_event_store/rom/adapters/memory/changesets/update_events.rb +16 -0
- data/lib/ruby_event_store/rom/adapters/memory/relations/events.rb +14 -5
- data/lib/ruby_event_store/rom/adapters/memory/relations/stream_entries.rb +8 -4
- data/lib/ruby_event_store/rom/adapters/memory/unit_of_work.rb +6 -21
- data/lib/ruby_event_store/rom/adapters/sql/changesets/create_events.rb +13 -0
- data/lib/ruby_event_store/rom/adapters/sql/changesets/update_events.rb +39 -0
- data/lib/ruby_event_store/rom/adapters/sql/index_violation_detector.rb +15 -16
- data/lib/ruby_event_store/rom/adapters/sql/relations/events.rb +13 -1
- data/lib/ruby_event_store/rom/adapters/sql/relations/stream_entries.rb +8 -4
- data/lib/ruby_event_store/rom/adapters/sql/tasks/migration_tasks.rake +16 -3
- data/lib/ruby_event_store/rom/changesets/create_events.rb +29 -0
- data/lib/ruby_event_store/rom/changesets/create_stream_entries.rb +21 -0
- data/lib/ruby_event_store/rom/changesets/update_events.rb +29 -0
- data/lib/ruby_event_store/rom/event_repository.rb +16 -6
- data/lib/ruby_event_store/rom/mappers/event_to_serialized_record.rb +1 -1
- data/lib/ruby_event_store/rom/mappers/stream_entry_to_serialized_record.rb +1 -1
- data/lib/ruby_event_store/rom/memory.rb +15 -3
- data/lib/ruby_event_store/rom/repositories/events.rb +18 -30
- data/lib/ruby_event_store/rom/repositories/stream_entries.rb +17 -18
- data/lib/ruby_event_store/rom/sql.rb +62 -12
- data/lib/ruby_event_store/rom/types.rb +13 -0
- data/lib/ruby_event_store/rom/unit_of_work.rb +1 -1
- data/lib/ruby_event_store/rom/version.rb +1 -1
- data/lib/ruby_event_store/spec/rom/event_repository_lint.rb +55 -90
- data/lib/ruby_event_store/spec/rom/relations/events_lint.rb +12 -12
- data/lib/ruby_event_store/spec/rom/relations/stream_entries_lint.rb +44 -44
- data/lib/ruby_event_store/spec/rom/spec_helper_lint.rb +1 -1
- data/lib/ruby_event_store/spec/rom/unit_of_work_lint.rb +1 -1
- data/ruby_event_store-rom.gemspec +12 -13
- metadata +40 -31
- data/lib/ruby_event_store/rom/adapters/sql/unit_of_work.rb +0 -37
@@ -1,4 +1,4 @@
|
|
1
|
-
RSpec.shared_examples :events_relation do |
|
1
|
+
RSpec.shared_examples :events_relation do |_relation_class|
|
2
2
|
subject(:relation) { container.relations[:events] }
|
3
3
|
|
4
4
|
let(:env) { rom_helper.env }
|
@@ -14,7 +14,7 @@ RSpec.shared_examples :events_relation do |relation_class|
|
|
14
14
|
end
|
15
15
|
|
16
16
|
specify '#exist? indicates if one instance of the record exists by primary key' do
|
17
|
-
event = {id: SecureRandom.uuid, event_type:
|
17
|
+
event = { id: SecureRandom.uuid, event_type: 'TestEvent', data: '{}', metadata: '{}', created_at: Time.now }
|
18
18
|
|
19
19
|
expect(relation.by_pk(event[:id]).exist?).to eq(false)
|
20
20
|
|
@@ -25,9 +25,9 @@ RSpec.shared_examples :events_relation do |relation_class|
|
|
25
25
|
|
26
26
|
specify '#insert verifies tuple is unique' do
|
27
27
|
events = [
|
28
|
-
{id: SecureRandom.uuid, event_type:
|
29
|
-
{id: SecureRandom.uuid, event_type:
|
30
|
-
{id: SecureRandom.uuid, event_type:
|
28
|
+
{ id: SecureRandom.uuid, event_type: 'TestEvent', data: '{}', metadata: '{}', created_at: Time.now },
|
29
|
+
{ id: SecureRandom.uuid, event_type: 'TestEvent', data: '{}', metadata: '{}', created_at: Time.now },
|
30
|
+
{ id: SecureRandom.uuid, event_type: 'TestEvent', data: '{}', metadata: '{}', created_at: Time.now }
|
31
31
|
]
|
32
32
|
|
33
33
|
relation.command(:create).call(events[0..1])
|
@@ -38,7 +38,7 @@ RSpec.shared_examples :events_relation do |relation_class|
|
|
38
38
|
expect do
|
39
39
|
env.handle_error(:unique_violation) { relation.insert(events[1]) }
|
40
40
|
end.to raise_error(RubyEventStore::EventDuplicatedInStream)
|
41
|
-
expect{relation.insert(events[2])}.not_to raise_error
|
41
|
+
expect { relation.insert(events[2]) }.not_to raise_error
|
42
42
|
expect do
|
43
43
|
env.handle_error(:unique_violation) { relation.insert(events[2]) }
|
44
44
|
end.to raise_error(RubyEventStore::EventDuplicatedInStream)
|
@@ -46,9 +46,9 @@ RSpec.shared_examples :events_relation do |relation_class|
|
|
46
46
|
|
47
47
|
specify '#by_pk finds tuples by ID' do
|
48
48
|
events = [
|
49
|
-
{id: id = SecureRandom.uuid, event_type:
|
50
|
-
{id: SecureRandom.uuid, event_type:
|
51
|
-
{id: SecureRandom.uuid, event_type:
|
49
|
+
{ id: id = SecureRandom.uuid, event_type: 'TestEvent', data: '{}', metadata: '{}', created_at: Time.now },
|
50
|
+
{ id: SecureRandom.uuid, event_type: 'TestEvent', data: '{}', metadata: '{}', created_at: Time.now },
|
51
|
+
{ id: SecureRandom.uuid, event_type: 'TestEvent', data: '{}', metadata: '{}', created_at: Time.now }
|
52
52
|
]
|
53
53
|
|
54
54
|
relation.command(:create).call(events)
|
@@ -59,9 +59,9 @@ RSpec.shared_examples :events_relation do |relation_class|
|
|
59
59
|
|
60
60
|
specify 'each method returns proper type' do
|
61
61
|
events = [
|
62
|
-
{id: id = SecureRandom.uuid, event_type:
|
63
|
-
{id: SecureRandom.uuid, event_type:
|
64
|
-
{id: SecureRandom.uuid, event_type:
|
62
|
+
{ id: id = SecureRandom.uuid, event_type: 'TestEvent', data: '{}', metadata: '{}', created_at: Time.now },
|
63
|
+
{ id: SecureRandom.uuid, event_type: 'TestEvent', data: '{}', metadata: '{}', created_at: Time.now },
|
64
|
+
{ id: SecureRandom.uuid, event_type: 'TestEvent', data: '{}', metadata: '{}', created_at: Time.now }
|
65
65
|
]
|
66
66
|
|
67
67
|
relation.command(:create).call(events)
|
@@ -1,4 +1,4 @@
|
|
1
|
-
RSpec.shared_examples :stream_entries_relation do |
|
1
|
+
RSpec.shared_examples :stream_entries_relation do |_relation_class|
|
2
2
|
subject(:relation) { container.relations[:stream_entries] }
|
3
3
|
|
4
4
|
let(:env) { rom_helper.env }
|
@@ -15,21 +15,21 @@ RSpec.shared_examples :stream_entries_relation do |relation_class|
|
|
15
15
|
|
16
16
|
specify '#insert verifies tuple is unique steam and event_id' do
|
17
17
|
stream_entries = [
|
18
|
-
{stream: 'stream', position: 0, event_id: id1 = SecureRandom.uuid},
|
19
|
-
{stream: 'stream', position: 1, event_id: SecureRandom.uuid},
|
20
|
-
{stream: 'stream', position: 2, event_id: SecureRandom.uuid}
|
18
|
+
{ stream: 'stream', position: 0, event_id: id1 = SecureRandom.uuid },
|
19
|
+
{ stream: 'stream', position: 1, event_id: SecureRandom.uuid },
|
20
|
+
{ stream: 'stream', position: 2, event_id: SecureRandom.uuid }
|
21
21
|
]
|
22
22
|
|
23
23
|
relation.command(:create).call(stream_entries)
|
24
24
|
|
25
|
-
conflicting_event_id = {stream: 'stream', position: 3, event_id: id1, created_at: Time.now}
|
25
|
+
conflicting_event_id = { stream: 'stream', position: 3, event_id: id1, created_at: Time.now }
|
26
26
|
|
27
27
|
expect(relation.to_a.size).to eq(3)
|
28
28
|
expect do
|
29
29
|
env.handle_error(:unique_violation) { relation.insert(conflicting_event_id) }
|
30
30
|
end.to raise_error(RubyEventStore::EventDuplicatedInStream)
|
31
31
|
|
32
|
-
conflicting_position = {stream: 'stream', position: 2, event_id: SecureRandom.uuid, created_at: Time.now}
|
32
|
+
conflicting_position = { stream: 'stream', position: 2, event_id: SecureRandom.uuid, created_at: Time.now }
|
33
33
|
|
34
34
|
expect do
|
35
35
|
env.handle_error(:unique_violation) { relation.insert(conflicting_position) }
|
@@ -38,9 +38,9 @@ RSpec.shared_examples :stream_entries_relation do |relation_class|
|
|
38
38
|
|
39
39
|
specify '#take ignores nil' do
|
40
40
|
stream_entries = [
|
41
|
-
{stream: 'stream', position: 0, event_id: id1 = SecureRandom.uuid},
|
42
|
-
{stream: 'stream', position: 1, event_id: id2 = SecureRandom.uuid},
|
43
|
-
{stream: 'stream', position: 2, event_id: id3 = SecureRandom.uuid}
|
41
|
+
{ stream: 'stream', position: 0, event_id: id1 = SecureRandom.uuid },
|
42
|
+
{ stream: 'stream', position: 1, event_id: id2 = SecureRandom.uuid },
|
43
|
+
{ stream: 'stream', position: 2, event_id: id3 = SecureRandom.uuid }
|
44
44
|
]
|
45
45
|
|
46
46
|
relation.command(:create).call(stream_entries)
|
@@ -52,9 +52,9 @@ RSpec.shared_examples :stream_entries_relation do |relation_class|
|
|
52
52
|
|
53
53
|
specify '#take returns specified number of tuples' do
|
54
54
|
stream_entries = [
|
55
|
-
{stream: 'stream', position: 0, event_id: id1 = SecureRandom.uuid},
|
56
|
-
{stream: 'stream', position: 1, event_id: id2 = SecureRandom.uuid},
|
57
|
-
{stream: 'stream', position: 2, event_id: SecureRandom.uuid}
|
55
|
+
{ stream: 'stream', position: 0, event_id: id1 = SecureRandom.uuid },
|
56
|
+
{ stream: 'stream', position: 1, event_id: id2 = SecureRandom.uuid },
|
57
|
+
{ stream: 'stream', position: 2, event_id: SecureRandom.uuid }
|
58
58
|
]
|
59
59
|
|
60
60
|
relation.command(:create).call(stream_entries)
|
@@ -66,9 +66,9 @@ RSpec.shared_examples :stream_entries_relation do |relation_class|
|
|
66
66
|
|
67
67
|
specify '#by_stream returns tuples for the specified stream' do
|
68
68
|
stream_entries = [
|
69
|
-
{stream: 'stream', position: 0, event_id: SecureRandom.uuid},
|
70
|
-
{stream: 'stream', position: 1, event_id: SecureRandom.uuid},
|
71
|
-
{stream: 'stream2', position: 2, event_id: SecureRandom.uuid}
|
69
|
+
{ stream: 'stream', position: 0, event_id: SecureRandom.uuid },
|
70
|
+
{ stream: 'stream', position: 1, event_id: SecureRandom.uuid },
|
71
|
+
{ stream: 'stream2', position: 2, event_id: SecureRandom.uuid }
|
72
72
|
]
|
73
73
|
|
74
74
|
relation.command(:create).call(stream_entries)
|
@@ -82,16 +82,16 @@ RSpec.shared_examples :stream_entries_relation do |relation_class|
|
|
82
82
|
stream2 = RubyEventStore::Stream.new('stream2')
|
83
83
|
|
84
84
|
stream_entries = [
|
85
|
-
{stream: stream.name, position: 0, event_id: id = SecureRandom.uuid},
|
86
|
-
{stream: stream.name, position: 1, event_id: SecureRandom.uuid},
|
87
|
-
{stream: stream2.name, position: 2, event_id: SecureRandom.uuid}
|
85
|
+
{ stream: stream.name, position: 0, event_id: id = SecureRandom.uuid },
|
86
|
+
{ stream: stream.name, position: 1, event_id: SecureRandom.uuid },
|
87
|
+
{ stream: stream2.name, position: 2, event_id: SecureRandom.uuid }
|
88
88
|
]
|
89
89
|
|
90
90
|
relation.command(:create).call(stream_entries)
|
91
91
|
|
92
92
|
expect(relation.to_a.size).to eq(3)
|
93
93
|
expect(relation.by_stream_and_event_id(stream, id)[:event_id]).to eq(id)
|
94
|
-
expect{relation.by_stream_and_event_id(stream2, id)}.to raise_error(ROM::TupleCountMismatchError)
|
94
|
+
expect { relation.by_stream_and_event_id(stream2, id) }.to raise_error(ROM::TupleCountMismatchError)
|
95
95
|
end
|
96
96
|
|
97
97
|
specify '#max_position gets the largest position value' do
|
@@ -100,13 +100,13 @@ RSpec.shared_examples :stream_entries_relation do |relation_class|
|
|
100
100
|
stream3 = RubyEventStore::Stream.new('stream3')
|
101
101
|
|
102
102
|
stream_entries = [
|
103
|
-
{stream: stream.name, position: 0, event_id: SecureRandom.uuid},
|
104
|
-
{stream: stream.name, position: 2, event_id:
|
105
|
-
{stream: stream.name, position: 1, event_id: SecureRandom.uuid},
|
106
|
-
{stream: stream2.name, position: 1, event_id: SecureRandom.uuid},
|
107
|
-
{stream: stream2.name, position: 0, event_id: SecureRandom.uuid},
|
108
|
-
{stream: stream2.name, position: 3, event_id: SecureRandom.uuid},
|
109
|
-
{stream: stream2.name, position: 2, event_id: SecureRandom.uuid}
|
103
|
+
{ stream: stream.name, position: 0, event_id: SecureRandom.uuid },
|
104
|
+
{ stream: stream.name, position: 2, event_id: SecureRandom.uuid },
|
105
|
+
{ stream: stream.name, position: 1, event_id: SecureRandom.uuid },
|
106
|
+
{ stream: stream2.name, position: 1, event_id: SecureRandom.uuid },
|
107
|
+
{ stream: stream2.name, position: 0, event_id: SecureRandom.uuid },
|
108
|
+
{ stream: stream2.name, position: 3, event_id: SecureRandom.uuid },
|
109
|
+
{ stream: stream2.name, position: 2, event_id: SecureRandom.uuid }
|
110
110
|
]
|
111
111
|
|
112
112
|
relation.command(:create).call(stream_entries)
|
@@ -123,13 +123,13 @@ RSpec.shared_examples :stream_entries_relation do |relation_class|
|
|
123
123
|
stream2 = RubyEventStore::Stream.new('stream2')
|
124
124
|
|
125
125
|
stream_entries = [
|
126
|
-
{stream: stream.name, position: 0, event_id: SecureRandom.uuid},
|
127
|
-
{stream: stream.name, position: 1, event_id: id1 = SecureRandom.uuid},
|
128
|
-
{stream: stream.name, position: 2, event_id: id2 = SecureRandom.uuid},
|
129
|
-
{stream: stream2.name, position: 0, event_id: SecureRandom.uuid},
|
130
|
-
{stream: stream2.name, position: 1, event_id: SecureRandom.uuid},
|
131
|
-
{stream: stream2.name, position: 2, event_id: SecureRandom.uuid},
|
132
|
-
{stream: stream2.name, position: 3, event_id: SecureRandom.uuid}
|
126
|
+
{ stream: stream.name, position: 0, event_id: SecureRandom.uuid },
|
127
|
+
{ stream: stream.name, position: 1, event_id: id1 = SecureRandom.uuid },
|
128
|
+
{ stream: stream.name, position: 2, event_id: id2 = SecureRandom.uuid },
|
129
|
+
{ stream: stream2.name, position: 0, event_id: SecureRandom.uuid },
|
130
|
+
{ stream: stream2.name, position: 1, event_id: SecureRandom.uuid },
|
131
|
+
{ stream: stream2.name, position: 2, event_id: SecureRandom.uuid },
|
132
|
+
{ stream: stream2.name, position: 3, event_id: SecureRandom.uuid }
|
133
133
|
]
|
134
134
|
|
135
135
|
relation.command(:create).call(stream_entries)
|
@@ -150,13 +150,13 @@ RSpec.shared_examples :stream_entries_relation do |relation_class|
|
|
150
150
|
stream2 = RubyEventStore::Stream.new('stream2')
|
151
151
|
|
152
152
|
stream_entries = [
|
153
|
-
{stream: stream.name, position: 0, event_id: id1 = SecureRandom.uuid},
|
154
|
-
{stream: stream.name, position: 1, event_id: id2 = SecureRandom.uuid},
|
155
|
-
{stream: stream.name, position: 2, event_id: SecureRandom.uuid},
|
156
|
-
{stream: stream2.name, position: 0, event_id: SecureRandom.uuid},
|
157
|
-
{stream: stream2.name, position: 1, event_id: SecureRandom.uuid},
|
158
|
-
{stream: stream2.name, position: 2, event_id: SecureRandom.uuid},
|
159
|
-
{stream: stream2.name, position: 3, event_id: SecureRandom.uuid}
|
153
|
+
{ stream: stream.name, position: 0, event_id: id1 = SecureRandom.uuid },
|
154
|
+
{ stream: stream.name, position: 1, event_id: id2 = SecureRandom.uuid },
|
155
|
+
{ stream: stream.name, position: 2, event_id: SecureRandom.uuid },
|
156
|
+
{ stream: stream2.name, position: 0, event_id: SecureRandom.uuid },
|
157
|
+
{ stream: stream2.name, position: 1, event_id: SecureRandom.uuid },
|
158
|
+
{ stream: stream2.name, position: 2, event_id: SecureRandom.uuid },
|
159
|
+
{ stream: stream2.name, position: 3, event_id: SecureRandom.uuid }
|
160
160
|
]
|
161
161
|
|
162
162
|
relation.command(:create).call(stream_entries)
|
@@ -175,9 +175,9 @@ RSpec.shared_examples :stream_entries_relation do |relation_class|
|
|
175
175
|
specify 'each method returns proper type' do
|
176
176
|
stream = RubyEventStore::Stream.new('stream')
|
177
177
|
stream_entries = [
|
178
|
-
{stream: 'stream', position: 0, event_id:
|
179
|
-
{stream: 'stream', position: 1, event_id:
|
180
|
-
{stream: 'stream', position: 2, event_id:
|
178
|
+
{ stream: 'stream', position: 0, event_id: SecureRandom.uuid },
|
179
|
+
{ stream: 'stream', position: 1, event_id: SecureRandom.uuid },
|
180
|
+
{ stream: 'stream', position: 2, event_id: SecureRandom.uuid }
|
181
181
|
]
|
182
182
|
|
183
183
|
relation.command(:create).call(stream_entries)
|
@@ -189,7 +189,7 @@ RSpec.shared_examples :stream_entries_relation do |relation_class|
|
|
189
189
|
# expect(relation.by_stream(stream).take(1).one).to be_a(::ROM::Struct)
|
190
190
|
|
191
191
|
# expect(relation.by_stream_and_event_id(stream, id1)).to be_a(::ROM::Struct)
|
192
|
-
|
192
|
+
|
193
193
|
# expect(relation.max_position(stream)).to be_a(::ROM::Struct)
|
194
194
|
|
195
195
|
expect(relation.ordered(:forward, stream)).to be_a(relation.class)
|
@@ -1,5 +1,5 @@
|
|
1
1
|
module RubyEventStore::ROM
|
2
|
-
RSpec.shared_examples :rom_spec_helper do |
|
2
|
+
RSpec.shared_examples :rom_spec_helper do |_rom_spec_helper_class|
|
3
3
|
let(:env) { rom_helper.env }
|
4
4
|
let(:container) { env.container }
|
5
5
|
let(:rom_db) { container.gateways[:default] }
|
@@ -15,7 +15,7 @@ module RubyEventStore::ROM
|
|
15
15
|
end
|
16
16
|
|
17
17
|
specify '#call to throw an exeption' do
|
18
|
-
expect{subject.call(gateway: nil) {}}.to raise_error(KeyError)
|
18
|
+
expect { subject.call(gateway: nil) {} }.to raise_error(KeyError)
|
19
19
|
end
|
20
20
|
|
21
21
|
specify '#env is the instance we specified' do
|
@@ -1,5 +1,4 @@
|
|
1
|
-
|
2
|
-
lib = File.expand_path('../lib', __FILE__)
|
1
|
+
lib = File.expand_path('lib', __dir__)
|
3
2
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
3
|
require 'ruby_event_store/rom/version'
|
5
4
|
|
@@ -10,14 +9,14 @@ Gem::Specification.new do |spec|
|
|
10
9
|
spec.authors = ['Joel Van Horn']
|
11
10
|
spec.email = ['joel@joelvanhorn.com']
|
12
11
|
|
13
|
-
spec.summary =
|
14
|
-
spec.description =
|
12
|
+
spec.summary = 'ROM events repository for Ruby Event Store'
|
13
|
+
spec.description = "Implementation of events repository based on ROM for Ruby Event Store'"
|
15
14
|
spec.homepage = 'https://railseventstore.org'
|
16
15
|
spec.metadata = {
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
16
|
+
'homepage_uri' => 'https://railseventstore.org/',
|
17
|
+
'changelog_uri' => 'https://github.com/RailsEventStore/rails_event_store/releases',
|
18
|
+
'source_code_uri' => 'https://github.com/RailsEventStore/rails_event_store',
|
19
|
+
'bug_tracker_uri' => 'https://github.com/RailsEventStore/rails_event_store/issues'
|
21
20
|
}
|
22
21
|
|
23
22
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
@@ -25,11 +24,11 @@ Gem::Specification.new do |spec|
|
|
25
24
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
26
25
|
spec.require_paths = ['lib']
|
27
26
|
|
28
|
-
spec.add_dependency 'ruby_event_store', '= 0.35.0'
|
29
|
-
spec.add_dependency 'sequel', '>= 4.49'
|
30
|
-
spec.add_dependency 'dry-types', '~> 0.12.2'
|
31
27
|
spec.add_dependency 'dry-initializer', '= 2.5.0'
|
32
|
-
spec.add_dependency '
|
33
|
-
spec.add_dependency 'rom-repository', '>= 2.0'
|
28
|
+
spec.add_dependency 'dry-types', '~> 0.12.2'
|
34
29
|
spec.add_dependency 'rom-changeset', '>= 1.0'
|
30
|
+
spec.add_dependency 'rom-repository', '>= 2.0'
|
31
|
+
spec.add_dependency 'rom-sql', '>= 2.4'
|
32
|
+
spec.add_dependency 'ruby_event_store', '= 0.36.0'
|
33
|
+
spec.add_dependency 'sequel', '>= 5.11.0'
|
35
34
|
end
|
metadata
CHANGED
@@ -1,71 +1,71 @@
|
|
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.36.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:
|
11
|
+
date: 2019-01-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: dry-initializer
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 2.5.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:
|
26
|
+
version: 2.5.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: dry-types
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 0.12.2
|
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:
|
40
|
+
version: 0.12.2
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: rom-changeset
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 0
|
47
|
+
version: '1.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: 0
|
54
|
+
version: '1.0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
56
|
+
name: rom-repository
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 2.
|
61
|
+
version: '2.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.
|
68
|
+
version: '2.0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rom-sql
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -81,33 +81,33 @@ dependencies:
|
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '2.4'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
84
|
+
name: ruby_event_store
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- -
|
87
|
+
- - '='
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version:
|
89
|
+
version: 0.36.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:
|
96
|
+
version: 0.36.0
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
|
-
name:
|
98
|
+
name: sequel
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
101
|
- - ">="
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version:
|
103
|
+
version: 5.11.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:
|
110
|
+
version: 5.11.0
|
111
111
|
description: Implementation of events repository based on ROM for Ruby Event Store'
|
112
112
|
email:
|
113
113
|
- joel@joelvanhorn.com
|
@@ -115,6 +115,8 @@ executables: []
|
|
115
115
|
extensions: []
|
116
116
|
extra_rdoc_files: []
|
117
117
|
files:
|
118
|
+
- ".rubocop.yml"
|
119
|
+
- ".rubocop_todo.yml"
|
118
120
|
- CHANGELOG.md
|
119
121
|
- Gemfile
|
120
122
|
- Makefile
|
@@ -124,15 +126,22 @@ files:
|
|
124
126
|
- db/migrate/20181026152045_index_by_event_type.rb
|
125
127
|
- lib/ruby_event_store-rom.rb
|
126
128
|
- lib/ruby_event_store/rom.rb
|
129
|
+
- lib/ruby_event_store/rom/adapters/memory/changesets/create_events.rb
|
130
|
+
- lib/ruby_event_store/rom/adapters/memory/changesets/create_stream_entries.rb
|
131
|
+
- lib/ruby_event_store/rom/adapters/memory/changesets/update_events.rb
|
127
132
|
- lib/ruby_event_store/rom/adapters/memory/relations/events.rb
|
128
133
|
- lib/ruby_event_store/rom/adapters/memory/relations/stream_entries.rb
|
129
134
|
- lib/ruby_event_store/rom/adapters/memory/unit_of_work.rb
|
135
|
+
- lib/ruby_event_store/rom/adapters/sql/changesets/create_events.rb
|
136
|
+
- lib/ruby_event_store/rom/adapters/sql/changesets/update_events.rb
|
130
137
|
- lib/ruby_event_store/rom/adapters/sql/index_violation_detector.rb
|
131
138
|
- lib/ruby_event_store/rom/adapters/sql/rake_task.rb
|
132
139
|
- lib/ruby_event_store/rom/adapters/sql/relations/events.rb
|
133
140
|
- lib/ruby_event_store/rom/adapters/sql/relations/stream_entries.rb
|
134
141
|
- lib/ruby_event_store/rom/adapters/sql/tasks/migration_tasks.rake
|
135
|
-
- lib/ruby_event_store/rom/
|
142
|
+
- lib/ruby_event_store/rom/changesets/create_events.rb
|
143
|
+
- lib/ruby_event_store/rom/changesets/create_stream_entries.rb
|
144
|
+
- lib/ruby_event_store/rom/changesets/update_events.rb
|
136
145
|
- lib/ruby_event_store/rom/event_repository.rb
|
137
146
|
- lib/ruby_event_store/rom/mappers/event_to_serialized_record.rb
|
138
147
|
- lib/ruby_event_store/rom/mappers/stream_entry_to_serialized_record.rb
|
@@ -141,6 +150,7 @@ files:
|
|
141
150
|
- lib/ruby_event_store/rom/repositories/stream_entries.rb
|
142
151
|
- lib/ruby_event_store/rom/sql.rb
|
143
152
|
- lib/ruby_event_store/rom/tuple_uniqueness_error.rb
|
153
|
+
- lib/ruby_event_store/rom/types.rb
|
144
154
|
- lib/ruby_event_store/rom/unit_of_work.rb
|
145
155
|
- lib/ruby_event_store/rom/version.rb
|
146
156
|
- lib/ruby_event_store/spec/rom/event_repository_lint.rb
|
@@ -172,8 +182,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
172
182
|
- !ruby/object:Gem::Version
|
173
183
|
version: '0'
|
174
184
|
requirements: []
|
175
|
-
|
176
|
-
rubygems_version: 2.7.6
|
185
|
+
rubygems_version: 3.0.2
|
177
186
|
signing_key:
|
178
187
|
specification_version: 4
|
179
188
|
summary: ROM events repository for Ruby Event Store
|