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: e516e1cd696353ed17968975e4ca0257cd1564b5eec29e8b7c64a26a25019e10
4
- data.tar.gz: 036adc267be8f39ea1e707983fc2d358874c0128554c54e93a28171e07739778
3
+ metadata.gz: 0c3495b29fa36e49ea32ddc4c87b5c159445d8e6d119b51ebee1096ad8a70020
4
+ data.tar.gz: 2ef5eb6a092e3be9f8886f00d9052d0b417e44fa968d561d994019a00228ff1e
5
5
  SHA512:
6
- metadata.gz: c12809d938292413c7f726dbedf8cadb46843368143e85747f9cd23ea397bc5f0c03c65f798197a3b31e05c34745a451b2539ac1675ff09b9ceb9b382ffc3cf1
7
- data.tar.gz: 788c48cefe529778b85a33aa01c582503dc95f92ae48fa49f1564fc14d1a5ef1fbd52f1da30df76e4d304fb598936608fdb610fb1cd96859821aa941f818f2df
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.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.42.0"
5
+ VERSION = "1.1.1"
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', '= 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: 0.42.0
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: 2019-09-30 00:00:00.000000000 Z
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: 0.42.0
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: 0.42.0
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.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