ruby_event_store-rom 0.41.0 → 1.1.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: ca4a874bebef6fcc1e64ecc07263e5968b81e93aedaae5a64a5cf8a4d93a6bdd
4
- data.tar.gz: ae6eda91bf088a3de1727be9f90ed4e92378b8e517691114cec66f550174aa87
3
+ metadata.gz: 940db024409505cf1ab1502351664a7202e0fb56f523cfde3cd570295dd96619
4
+ data.tar.gz: 7101b6c3f3d56fa7e00158188e2234cd68c93037d7cf33e02376861689bc5f33
5
5
  SHA512:
6
- metadata.gz: 84473811c7e6e2d451737ab2ac6b54c5cc9bffad75d80be3ae92d9893d960da81e20660dfc87a3bbd9369b3852e7dc7b1966663af82cea4d418a7fb56dd9e8bb
7
- data.tar.gz: e52dc447bfd4c1478581c0b6264c7ba6022f35ba4b79920807c783f8fd362ce7ff0ac9f698cd82501e88d64aee37dc417b301f719c98c8daf84e7b22867981e5
6
+ metadata.gz: 71bc6e2ce81bf9d0abab99d059352c0f6a9a69a1f03b128000b97fd07a54e20a2e386496334d52f2e01f720c5641b07c35c4540b3ae23a2a93954150233f2535
7
+ data.tar.gz: 2d7fd4da2384f6a88278bad07756db471fdf8d27f77ee7a9c8d5423680547c3174cd4eafa34d434501f9839a4a2e9a5683546d7f72123f4cfdc5c32780ab69ea
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
@@ -14,7 +14,7 @@ module RubyEventStore
14
14
 
15
15
  yield(changesets = [])
16
16
 
17
- commit!(gateway, changesets, options)
17
+ commit!(gateway, changesets, **options)
18
18
  end
19
19
 
20
20
  def commit!(gateway, changesets, **options)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module RubyEventStore
4
4
  module ROM
5
- VERSION = "0.41.0"
5
+ VERSION = "1.1.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.41.0'
35
+ spec.add_dependency 'ruby_event_store', '= 1.1.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.41.0
4
+ version: 1.1.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-07-19 00:00:00.000000000 Z
11
+ date: 2020-07-28 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.41.0
103
+ version: 1.1.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.41.0
110
+ version: 1.1.0
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: sequel
113
113
  requirement: !ruby/object:Gem::Requirement
@@ -196,8 +196,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
196
196
  - !ruby/object:Gem::Version
197
197
  version: '0'
198
198
  requirements: []
199
- rubyforge_project:
200
- rubygems_version: 2.7.6.2
199
+ rubygems_version: 3.0.3
201
200
  signing_key:
202
201
  specification_version: 4
203
202
  summary: ROM events repository for Ruby Event Store