rails_event_store_active_record 2.0.3 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,248 +0,0 @@
1
- PATH
2
- remote: ../ruby_event_store
3
- specs:
4
- ruby_event_store (2.0.3)
5
- concurrent-ruby (~> 1.0, >= 1.1.6)
6
-
7
- PATH
8
- remote: .
9
- specs:
10
- rails_event_store_active_record (2.0.3)
11
- activemodel (>= 3.0)
12
- activerecord-import (>= 1.0.2)
13
- activesupport (>= 3.0)
14
- ruby_event_store (= 2.0.3)
15
-
16
- GEM
17
- remote: https://oss:7AXfeZdAfCqL1PvHm2nvDJO6Zd9UW8IK@gem.mutant.dev/
18
- specs:
19
- mutant-license (0.1.1.2.1627430819213747598431630701693729869473.0)
20
-
21
- GEM
22
- remote: https://rubygems.org/
23
- specs:
24
- abstract_type (0.0.7)
25
- actioncable (6.0.3.4)
26
- actionpack (= 6.0.3.4)
27
- nio4r (~> 2.0)
28
- websocket-driver (>= 0.6.1)
29
- actionmailbox (6.0.3.4)
30
- actionpack (= 6.0.3.4)
31
- activejob (= 6.0.3.4)
32
- activerecord (= 6.0.3.4)
33
- activestorage (= 6.0.3.4)
34
- activesupport (= 6.0.3.4)
35
- mail (>= 2.7.1)
36
- actionmailer (6.0.3.4)
37
- actionpack (= 6.0.3.4)
38
- actionview (= 6.0.3.4)
39
- activejob (= 6.0.3.4)
40
- mail (~> 2.5, >= 2.5.4)
41
- rails-dom-testing (~> 2.0)
42
- actionpack (6.0.3.4)
43
- actionview (= 6.0.3.4)
44
- activesupport (= 6.0.3.4)
45
- rack (~> 2.0, >= 2.0.8)
46
- rack-test (>= 0.6.3)
47
- rails-dom-testing (~> 2.0)
48
- rails-html-sanitizer (~> 1.0, >= 1.2.0)
49
- actiontext (6.0.3.4)
50
- actionpack (= 6.0.3.4)
51
- activerecord (= 6.0.3.4)
52
- activestorage (= 6.0.3.4)
53
- activesupport (= 6.0.3.4)
54
- nokogiri (>= 1.8.5)
55
- actionview (6.0.3.4)
56
- activesupport (= 6.0.3.4)
57
- builder (~> 3.1)
58
- erubi (~> 1.4)
59
- rails-dom-testing (~> 2.0)
60
- rails-html-sanitizer (~> 1.1, >= 1.2.0)
61
- activejob (6.0.3.4)
62
- activesupport (= 6.0.3.4)
63
- globalid (>= 0.3.6)
64
- activemodel (6.0.3.4)
65
- activesupport (= 6.0.3.4)
66
- activerecord (6.0.3.4)
67
- activemodel (= 6.0.3.4)
68
- activesupport (= 6.0.3.4)
69
- activerecord-import (1.2.0)
70
- activerecord (>= 3.2)
71
- activestorage (6.0.3.4)
72
- actionpack (= 6.0.3.4)
73
- activejob (= 6.0.3.4)
74
- activerecord (= 6.0.3.4)
75
- marcel (~> 0.3.1)
76
- activesupport (6.0.3.4)
77
- concurrent-ruby (~> 1.0, >= 1.0.2)
78
- i18n (>= 0.7, < 2)
79
- minitest (~> 5.1)
80
- tzinfo (~> 1.1)
81
- zeitwerk (~> 2.2, >= 2.2.2)
82
- adamantium (0.2.0)
83
- ice_nine (~> 0.11.0)
84
- memoizable (~> 0.4.0)
85
- anima (0.3.2)
86
- abstract_type (~> 0.0.7)
87
- adamantium (~> 0.2)
88
- equalizer (~> 0.0.11)
89
- ast (2.4.1)
90
- builder (3.2.4)
91
- childprocess (4.0.0)
92
- concord (0.1.6)
93
- adamantium (~> 0.2.0)
94
- equalizer (~> 0.0.9)
95
- concurrent-ruby (1.1.7)
96
- crass (1.0.6)
97
- diff-lcs (1.4.4)
98
- equalizer (0.0.11)
99
- erubi (1.10.0)
100
- fakefs (1.3.0)
101
- globalid (0.4.2)
102
- activesupport (>= 4.2.0)
103
- i18n (1.8.5)
104
- concurrent-ruby (~> 1.0)
105
- ice_nine (0.11.2)
106
- loofah (2.8.0)
107
- crass (~> 1.0.2)
108
- nokogiri (>= 1.5.9)
109
- mail (2.7.1)
110
- mini_mime (>= 0.1.1)
111
- marcel (0.3.3)
112
- mimemagic (~> 0.3.2)
113
- memoizable (0.4.2)
114
- thread_safe (~> 0.3, >= 0.3.1)
115
- method_source (1.0.0)
116
- mimemagic (0.3.10)
117
- nokogiri (~> 1)
118
- rake
119
- mini_mime (1.0.2)
120
- mini_portile2 (2.6.1)
121
- minitest (5.14.2)
122
- mprelude (0.1.0)
123
- abstract_type (~> 0.0.7)
124
- adamantium (~> 0.2.0)
125
- concord (~> 0.1.5)
126
- equalizer (~> 0.0.9)
127
- ice_nine (~> 0.11.1)
128
- procto (~> 0.0.2)
129
- mutant (0.10.22)
130
- abstract_type (~> 0.0.7)
131
- adamantium (~> 0.2.0)
132
- anima (~> 0.3.1)
133
- ast (~> 2.2)
134
- concord (~> 0.1.5)
135
- diff-lcs (~> 1.3)
136
- equalizer (~> 0.0.9)
137
- ice_nine (~> 0.11.1)
138
- memoizable (~> 0.4.2)
139
- mprelude (~> 0.1.0)
140
- parser (~> 3.0.0)
141
- procto (~> 0.0.2)
142
- unparser (~> 0.5.6)
143
- variable (~> 0.0.1)
144
- mutant-rspec (0.10.22)
145
- mutant (= 0.10.22)
146
- rspec-core (>= 3.8.0, < 4.0.0)
147
- mysql2 (0.5.3)
148
- nio4r (2.5.4)
149
- nokogiri (1.12.5)
150
- mini_portile2 (~> 2.6.1)
151
- racc (~> 1.4)
152
- parser (3.0.0.0)
153
- ast (~> 2.4.1)
154
- pg (1.2.3)
155
- procto (0.0.3)
156
- racc (1.6.0)
157
- rack (2.2.3)
158
- rack-test (1.1.0)
159
- rack (>= 1.0, < 3)
160
- rails (6.0.3.4)
161
- actioncable (= 6.0.3.4)
162
- actionmailbox (= 6.0.3.4)
163
- actionmailer (= 6.0.3.4)
164
- actionpack (= 6.0.3.4)
165
- actiontext (= 6.0.3.4)
166
- actionview (= 6.0.3.4)
167
- activejob (= 6.0.3.4)
168
- activemodel (= 6.0.3.4)
169
- activerecord (= 6.0.3.4)
170
- activestorage (= 6.0.3.4)
171
- activesupport (= 6.0.3.4)
172
- bundler (>= 1.3.0)
173
- railties (= 6.0.3.4)
174
- sprockets-rails (>= 2.0.0)
175
- rails-dom-testing (2.0.3)
176
- activesupport (>= 4.2.0)
177
- nokogiri (>= 1.6)
178
- rails-html-sanitizer (1.3.0)
179
- loofah (~> 2.3)
180
- railties (6.0.3.4)
181
- actionpack (= 6.0.3.4)
182
- activesupport (= 6.0.3.4)
183
- method_source
184
- rake (>= 0.8.7)
185
- thor (>= 0.20.3, < 2.0)
186
- rake (13.0.6)
187
- rspec (3.10.0)
188
- rspec-core (~> 3.10.0)
189
- rspec-expectations (~> 3.10.0)
190
- rspec-mocks (~> 3.10.0)
191
- rspec-core (3.10.1)
192
- rspec-support (~> 3.10.0)
193
- rspec-expectations (3.10.1)
194
- diff-lcs (>= 1.2.0, < 2.0)
195
- rspec-support (~> 3.10.0)
196
- rspec-mocks (3.10.1)
197
- diff-lcs (>= 1.2.0, < 2.0)
198
- rspec-support (~> 3.10.0)
199
- rspec-support (3.10.1)
200
- sprockets (4.0.2)
201
- concurrent-ruby (~> 1.0)
202
- rack (> 1, < 3)
203
- sprockets-rails (3.2.2)
204
- actionpack (>= 4.0)
205
- activesupport (>= 4.0)
206
- sprockets (>= 3.0.0)
207
- sqlite3 (1.4.2)
208
- thor (1.0.1)
209
- thread_safe (0.3.6)
210
- tzinfo (1.2.9)
211
- thread_safe (~> 0.1)
212
- unparser (0.5.6)
213
- abstract_type (~> 0.0.7)
214
- adamantium (~> 0.2.0)
215
- anima (~> 0.3.1)
216
- concord (~> 0.1.5)
217
- diff-lcs (~> 1.3)
218
- equalizer (~> 0.0.9)
219
- mprelude (~> 0.1.0)
220
- parser (>= 3.0.0)
221
- procto (~> 0.0.2)
222
- variable (0.0.1)
223
- equalizer (~> 0.0.11)
224
- websocket-driver (0.7.3)
225
- websocket-extensions (>= 0.1.0)
226
- websocket-extensions (0.1.5)
227
- zeitwerk (2.4.2)
228
-
229
- PLATFORMS
230
- ruby
231
-
232
- DEPENDENCIES
233
- childprocess
234
- fakefs (~> 1.3)
235
- mutant (~> 0.10.21)
236
- mutant-license!
237
- mutant-rspec (~> 0.10.21)
238
- mysql2 (= 0.5.3)
239
- pg (= 1.2.3)
240
- rails (= 6.0.3.4)
241
- rails_event_store_active_record!
242
- rake (>= 10.0)
243
- rspec (~> 3.6)
244
- ruby_event_store!
245
- sqlite3 (= 1.4.2)
246
-
247
- BUNDLED WITH
248
- 2.2.30
data/Makefile DELETED
@@ -1,21 +0,0 @@
1
- GEM_VERSION = $(shell cat ../RES_VERSION)
2
- GEM_NAME = rails_event_store_active_record
3
- REQUIRE = $(GEM_NAME)
4
- IGNORE = RailsEventStoreActiveRecord::IndexViolationDetector\#initialize \
5
- RailsEventStoreActiveRecord::IndexViolationDetector\#detect \
6
- RailsEventStoreActiveRecord::IndexViolationDetector\#detect_mysql \
7
- RailsEventStoreActiveRecord::IndexViolationDetector\#detect_postgres \
8
- RailsEventStoreActiveRecord::PgLinearizedEventRepository* \
9
- RailsEventStoreActiveRecord::EventRepository\#update_messages \
10
- RailsEventStoreActiveRecord::WithAbstractBaseClass\#build_event_klass \
11
- RailsEventStoreActiveRecord::WithAbstractBaseClass\#build_stream_klass
12
-
13
- SUBJECT ?= RailsEventStoreActiveRecord*
14
- DATABASE_URL ?= sqlite3::memory:
15
-
16
- include ../support/make/install.mk
17
- include ../support/make/test.mk
18
- include ../support/make/mutant.mk
19
- include ../support/make/gem.mk
20
- include ../support/make/help.mk
21
-
@@ -1,31 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- begin
4
- require 'rails/generators'
5
- rescue LoadError
6
- end
7
-
8
- module RailsEventStoreActiveRecord
9
- class AddValidAtGenerator < Rails::Generators::Base
10
- source_root File.expand_path(File.join(File.dirname(__FILE__), '../generators/templates'))
11
-
12
- def create_migration
13
- template "add_valid_at_template.rb", "db/migrate/#{timestamp}_add_valid_at.rb"
14
- end
15
-
16
- private
17
-
18
- def rails_version
19
- Rails::VERSION::STRING
20
- end
21
-
22
- def migration_version
23
- return nil if Gem::Version.new(rails_version) < Gem::Version.new("5.0.0")
24
- "[4.2]"
25
- end
26
-
27
- def timestamp
28
- Time.now.strftime("%Y%m%d%H%M%S")
29
- end
30
- end
31
- end if defined?(Rails::Generators::Base)
@@ -1,31 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- begin
4
- require 'rails/generators'
5
- rescue LoadError
6
- end
7
-
8
- module RailsEventStoreActiveRecord
9
- class CreatedAtPrecisionGenerator < Rails::Generators::Base
10
- source_root File.expand_path(File.join(File.dirname(__FILE__), '../generators/templates'))
11
-
12
- def create_migration
13
- template "created_at_precision_template.rb", "db/migrate/#{timestamp}_created_at_precision.rb"
14
- end
15
-
16
- private
17
-
18
- def rails_version
19
- Rails::VERSION::STRING
20
- end
21
-
22
- def migration_version
23
- return nil if Gem::Version.new(rails_version) < Gem::Version.new("5.0.0")
24
- "[4.2]"
25
- end
26
-
27
- def timestamp
28
- Time.now.strftime("%Y%m%d%H%M%S")
29
- end
30
- end
31
- end if defined?(Rails::Generators::Base)
@@ -1,29 +0,0 @@
1
- begin
2
- require 'rails/generators'
3
- rescue LoadError
4
- end
5
-
6
- module RailsEventStoreActiveRecord
7
- class NoGlobalStreamEntriesGenerator < Rails::Generators::Base
8
- source_root File.expand_path(File.join(File.dirname(__FILE__), '../generators/templates'))
9
-
10
- def create_migration
11
- template "no_global_stream_entries_template.rb", "db/migrate/#{timestamp}_no_global_stream_entries.rb"
12
- end
13
-
14
- private
15
-
16
- def rails_version
17
- Rails::VERSION::STRING
18
- end
19
-
20
- def migration_version
21
- return nil if Gem::Version.new(rails_version) < Gem::Version.new("5.0.0")
22
- "[4.2]"
23
- end
24
-
25
- def timestamp
26
- Time.now.strftime("%Y%m%d%H%M%S")
27
- end
28
- end
29
- end if defined?(Rails::Generators::Base)
@@ -1,14 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- class AddValidAt < ActiveRecord::Migration<%= migration_version %>
4
- def change
5
- case ActiveRecord::Base.connection.adapter_name
6
- when "PostgreSQL"
7
- add_column :event_store_events, :valid_at, :datetime, null: true
8
- else
9
- add_column :event_store_events, :valid_at, :datetime, precision: 6, null: true
10
- end
11
-
12
- add_index :event_store_events, :valid_at
13
- end
14
- end
@@ -1,45 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- class CreatedAtPrecision < ActiveRecord::Migration<%= migration_version %>
4
- def change
5
- case ActiveRecord::Base.connection.adapter_name
6
- when "SQLite"
7
- rename_table :event_store_events, :old_event_store_events
8
- create_table(:event_store_events, id: false, force: false) do |t|
9
- t.string :id, limit: 36, primary_key: true, null: false
10
- t.string :event_type, null: false
11
- t.binary :metadata
12
- t.binary :data, null: false
13
- t.datetime :created_at, null: false, precision: 6
14
- end
15
- add_index :event_store_events, :created_at
16
- add_index :event_store_events, :event_type
17
- execute <<-SQL
18
- INSERT INTO event_store_events(id, event_type, metadata, data, created_at)
19
- SELECT id, event_type, metadata, data, created_at FROM old_event_store_events;
20
- SQL
21
- drop_table :old_event_store_events
22
-
23
- rename_table :event_store_events_in_streams, :old_event_store_events_in_streams
24
- create_table(:event_store_events_in_streams, force: false) do |t|
25
- t.string :stream, null: false
26
- t.integer :position, null: true
27
- t.references :event, null: false, type: :string, limit: 36
28
- t.datetime :created_at, null: false, precision: 6
29
- end
30
- add_index :event_store_events_in_streams, [:stream, :position], unique: true
31
- add_index :event_store_events_in_streams, [:created_at]
32
- add_index :event_store_events_in_streams, [:stream, :event_id], unique: true
33
-
34
- execute <<-SQL
35
- INSERT INTO event_store_events_in_streams(id, stream, position, event_id, created_at)
36
- SELECT id, stream, position, event_id, created_at FROM old_event_store_events_in_streams;
37
- SQL
38
- drop_table :old_event_store_events_in_streams
39
- when "PostgreSQL"
40
- else
41
- change_column :event_store_events, :created_at, :datetime, precision: 6
42
- change_column :event_store_events_in_streams, :created_at, :datetime, precision: 6
43
- end
44
- end
45
- end
@@ -1,59 +0,0 @@
1
- class NoGlobalStreamEntries < ActiveRecord::Migration<%= migration_version %>
2
- def change
3
- case ActiveRecord::Base.connection.adapter_name
4
- when "SQLite"
5
- rename_table :event_store_events, :old_event_store_events
6
- create_table(:event_store_events, force: false) do |t|
7
- t.references :event, null: false, type: :string, limit: 36
8
- t.string :event_type, null: false
9
- t.binary :metadata
10
- t.binary :data, null: false
11
- t.datetime :created_at, precision: 6, null: false
12
- t.datetime :valid_at, precision: 6, null: true
13
- end
14
- add_index :event_store_events, :event_id, unique: true
15
- add_index :event_store_events, :created_at
16
- add_index :event_store_events, :valid_at
17
- add_index :event_store_events, :event_type
18
-
19
- execute <<-SQL
20
- INSERT INTO event_store_events(event_id, event_type, metadata, data, created_at)
21
- SELECT id, event_type, metadata, data, created_at FROM old_event_store_events;
22
- SQL
23
- drop_table :old_event_store_events
24
- when "PostgreSQL"
25
- rename_column :event_store_events, :id, :event_id
26
- change_column_default :event_store_events, :event_id, nil
27
- add_column :event_store_events, :id, :serial
28
-
29
- execute <<~SQL
30
- UPDATE event_store_events
31
- SET id = event_store_events_in_streams.id
32
- FROM event_store_events_in_streams
33
- WHERE event_store_events.event_id = event_store_events_in_streams.event_id AND event_store_events_in_streams.stream = 'all';
34
- UPDATE event_store_events
35
- SET id = ese.new_id
36
- FROM (SELECT id, row_number() OVER (ORDER BY id) AS new_id FROM event_store_events) ese
37
- WHERE event_store_events.id = ese.id;
38
- SELECT setval(pg_get_serial_sequence('event_store_events', 'id'), max(id)) FROM event_store_events;
39
- ALTER TABLE event_store_events DROP CONSTRAINT event_store_events_pkey;
40
- ALTER TABLE event_store_events ADD PRIMARY KEY (id);
41
- SQL
42
- add_index :event_store_events, :event_id, unique: true
43
- else
44
- rename_column :event_store_events, :id, :event_id
45
- add_column :event_store_events, :id, :integer
46
-
47
- execute <<-SQL
48
- UPDATE event_store_events
49
- INNER JOIN event_store_events_in_streams ON (event_store_events.event_id = event_store_events_in_streams.event_id)
50
- SET event_store_events.id = event_store_events_in_streams.id
51
- WHERE event_store_events_in_streams.stream = 'all';
52
- SQL
53
- execute "SET @row_number = 0"
54
- execute "UPDATE event_store_events SET event_store_events.id = (@row_number:=@row_number + 1) ORDER BY id"
55
- execute "ALTER TABLE event_store_events DROP PRIMARY KEY, ADD PRIMARY KEY (id), MODIFY id INT AUTO_INCREMENT"
56
- add_index :event_store_events, :event_id, unique: true
57
- end
58
- end
59
- end
@@ -1,30 +0,0 @@
1
- # coding: utf-8
2
- lib = File.expand_path('../lib', __FILE__)
3
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require 'rails_event_store_active_record/version'
5
-
6
- Gem::Specification.new do |spec|
7
- spec.name = 'rails_event_store_active_record'
8
- spec.version = RailsEventStoreActiveRecord::VERSION
9
- spec.licenses = ['MIT']
10
- spec.authors = ['Arkency']
11
- spec.email = ['dev@arkency.com']
12
-
13
- spec.summary = %q{Active Record events repository for Rails Event Store}
14
- spec.description = %q{Implementation of events repository based on Rails Active Record for Rails Event Store}
15
- spec.homepage = 'https://railseventstore.org'
16
- spec.metadata = {
17
- "homepage_uri" => "https://railseventstore.org/",
18
- "changelog_uri" => "https://github.com/RailsEventStore/rails_event_store/releases",
19
- "source_code_uri" => "https://github.com/RailsEventStore/rails_event_store",
20
- "bug_tracker_uri" => "https://github.com/RailsEventStore/rails_event_store/issues",
21
- }
22
-
23
- spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test/|spec/|features/|.mutant.yml)}) }
24
- spec.require_paths = ['lib']
25
-
26
- spec.add_dependency 'ruby_event_store', '= 2.0.3'
27
- spec.add_dependency 'activesupport', '>= 3.0'
28
- spec.add_dependency 'activemodel', '>= 3.0'
29
- spec.add_dependency 'activerecord-import', '>= 1.0.2'
30
- end