ruby_event_store-rom 0.42.0 → 1.1.1
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: 0c3495b29fa36e49ea32ddc4c87b5c159445d8e6d119b51ebee1096ad8a70020
|
4
|
+
data.tar.gz: 2ef5eb6a092e3be9f8886f00d9052d0b417e44fa968d561d994019a00228ff1e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3d7db6d044fc60b956b509fb94f1980dd7f8fb91a2505a1b375d4a779b057fc2ada6ec2e7775e08e5aadcd739f1b0c4fb77b6a96dc9a81072cf7b7b478136ab0
|
7
|
+
data.tar.gz: cd8401f886dea3750f30ab466922801e4d6dcbfe9fb26fae948f8358eb0c9951b8f1e71b7117e6834097c47731327a999125ecf61457bc32d2b4dbf21feaec9a
|
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', '=
|
35
|
+
spec.add_dependency 'ruby_event_store', '= 1.1.1'
|
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:
|
4
|
+
version: 1.1.1
|
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-08-20 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:
|
103
|
+
version: 1.1.1
|
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: 1.1.1
|
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
|