ruby_event_store-rom 0.42.0 → 0.43.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 79ac81eba6241c64966cae9e25a2c6681200f7a9bf9539996850061829235a2e
|
4
|
+
data.tar.gz: d94acd734ddf5aebf7c98fa1c105e61d47045a3b8e1dfc455b4705ee2a2ea405
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8f639869d2c84454e70f7ea28a2f1c1afacee6c081a8c4a705f8f8106d839a5f765b98d68a81a1875982e8761eb21158c718beb4bddaaf0d33f1f49c2f83c831
|
7
|
+
data.tar.gz: baefc7b124706577d0d10338806c2f32983c4c718a4de591cea575f7063028c7eac901ffbd65d406e0f0c99b252d0cb44410d781ddcc4828fe88fa2c68972fd7
|
data/Gemfile
CHANGED
@@ -6,7 +6,7 @@ eval_gemfile File.expand_path('../support/bundler/Gemfile.shared', __dir__)
|
|
6
6
|
|
7
7
|
gem 'childprocess'
|
8
8
|
gem 'fakefs', '~> 0.11.2'
|
9
|
-
gem 'mysql2', '>= 0.
|
10
|
-
gem 'pg', '>=
|
9
|
+
gem 'mysql2', '>= 0.5.3'
|
10
|
+
gem 'pg', '>= 1.2.2'
|
11
11
|
gem 'ruby_event_store', path: '../ruby_event_store'
|
12
12
|
gem 'sqlite3', '1.3.13'
|
@@ -4,20 +4,24 @@ module RubyEventStore
|
|
4
4
|
module ROM
|
5
5
|
module SQL
|
6
6
|
class IndexViolationDetector
|
7
|
-
|
7
|
+
MYSQL5_PKEY_ERROR = "for key 'PRIMARY'".freeze
|
8
|
+
MYSQL8_PKEY_ERROR = "for key 'event_store_events.PRIMARY'".freeze
|
8
9
|
POSTGRES_PKEY_ERROR = 'event_store_events_pkey'.freeze
|
9
10
|
SQLITE3_PKEY_ERROR = 'event_store_events.id'.freeze
|
10
11
|
|
11
|
-
|
12
|
+
MYSQL5_INDEX_ERROR = "for key 'index_event_store_events_in_streams_on_stream_and_event_id'".freeze
|
13
|
+
MYSQL8_INDEX_ERROR = "for key 'event_store_events_in_streams.index_event_store_events_in_streams_on_stream_and_event_id'".freeze
|
12
14
|
POSTGRES_INDEX_ERROR = 'Key (stream, event_id)'.freeze
|
13
15
|
SQLITE3_INDEX_ERROR = 'event_store_events_in_streams.stream, event_store_events_in_streams.event_id'.freeze
|
14
16
|
|
15
17
|
def detect(message)
|
16
|
-
message.include?(
|
18
|
+
message.include?(MYSQL5_PKEY_ERROR) ||
|
19
|
+
message.include?(MYSQL8_PKEY_ERROR) ||
|
17
20
|
message.include?(POSTGRES_PKEY_ERROR) ||
|
18
21
|
message.include?(SQLITE3_PKEY_ERROR) ||
|
19
22
|
|
20
|
-
message.include?(
|
23
|
+
message.include?(MYSQL5_INDEX_ERROR) ||
|
24
|
+
message.include?(MYSQL8_INDEX_ERROR) ||
|
21
25
|
message.include?(POSTGRES_INDEX_ERROR) ||
|
22
26
|
message.include?(SQLITE3_INDEX_ERROR)
|
23
27
|
end
|
@@ -32,6 +32,6 @@ Gem::Specification.new do |spec|
|
|
32
32
|
spec.add_dependency 'rom-changeset', '>= 5.0'
|
33
33
|
spec.add_dependency 'rom-repository', '>= 5.0'
|
34
34
|
spec.add_dependency 'rom-sql', '>= 3.0'
|
35
|
-
spec.add_dependency 'ruby_event_store', '= 0.
|
35
|
+
spec.add_dependency 'ruby_event_store', '= 0.43.0'
|
36
36
|
spec.add_dependency 'sequel', '>= 5.11.0'
|
37
37
|
end
|
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.43.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: 2020-02-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dry-container
|
@@ -100,14 +100,14 @@ dependencies:
|
|
100
100
|
requirements:
|
101
101
|
- - '='
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: 0.
|
103
|
+
version: 0.43.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: 0.
|
110
|
+
version: 0.43.0
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: sequel
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -196,7 +196,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
196
196
|
- !ruby/object:Gem::Version
|
197
197
|
version: '0'
|
198
198
|
requirements: []
|
199
|
-
rubygems_version: 3.0.
|
199
|
+
rubygems_version: 3.0.3
|
200
200
|
signing_key:
|
201
201
|
specification_version: 4
|
202
202
|
summary: ROM events repository for Ruby Event Store
|