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: e516e1cd696353ed17968975e4ca0257cd1564b5eec29e8b7c64a26a25019e10
4
- data.tar.gz: 036adc267be8f39ea1e707983fc2d358874c0128554c54e93a28171e07739778
3
+ metadata.gz: 79ac81eba6241c64966cae9e25a2c6681200f7a9bf9539996850061829235a2e
4
+ data.tar.gz: d94acd734ddf5aebf7c98fa1c105e61d47045a3b8e1dfc455b4705ee2a2ea405
5
5
  SHA512:
6
- metadata.gz: c12809d938292413c7f726dbedf8cadb46843368143e85747f9cd23ea397bc5f0c03c65f798197a3b31e05c34745a451b2539ac1675ff09b9ceb9b382ffc3cf1
7
- data.tar.gz: 788c48cefe529778b85a33aa01c582503dc95f92ae48fa49f1564fc14d1a5ef1fbd52f1da30df76e4d304fb598936608fdb610fb1cd96859821aa941f818f2df
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.4.10'
10
- gem 'pg', '>= 0.21'
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
- MYSQL_PKEY_ERROR = "for key 'PRIMARY'".freeze
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
- MYSQL_INDEX_ERROR = "for key 'index_event_store_events_in_streams_on_stream_and_event_id'".freeze
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?(MYSQL_PKEY_ERROR) ||
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?(MYSQL_INDEX_ERROR) ||
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module RubyEventStore
4
4
  module ROM
5
- VERSION = "0.42.0"
5
+ VERSION = "0.43.0"
6
6
  end
7
7
  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.42.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.42.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: 2019-09-30 00:00:00.000000000 Z
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.42.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.42.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.6
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