sequent 8.0.1 → 8.0.2

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: 0d84095b5eda544d3dbfdfd38abf47cea0b8ae4ac4fdbd71607ce16956761609
4
- data.tar.gz: 5e39298de05259431cfeca107fd1f338c2122fae340b90b368ea4f2a7513d836
3
+ metadata.gz: 286e0bad8fae90e0442b711406e06744dd9b11bd761961886349368131fed005
4
+ data.tar.gz: 805cfede0b646d5aa0da4c4ccbb7a0e34af147bb43a60086c1829d2418a2e97c
5
5
  SHA512:
6
- metadata.gz: d65e5937db24cb49fd4070bdc5c5bc06034bc94f88af7a44dfc50072aa127db08f128df97471a8cee85e03e3b5f60e25219adba6fd84b25cc8d679d553123479
7
- data.tar.gz: e43babde3e2348af5a13e080de89fe698acfc8ffadd32522a613742c6e128d297d7af8b5f7ab8e4b96f32fbbeb04954ab449dfb04a7632742623bc5afbb7ec98
6
+ metadata.gz: 3966ba588ecb08107d2608a44af378e8698830a9f0001cb06bb001ed3536c17006911544ab6e3a7be520c9577ba0e5083ea17adc917c932ab58ab0cc9cb3ff03
7
+ data.tar.gz: 0f9fa0804ee084dfb0b3ab7144c52f53846019cdccbf95926a2be6b7f4b2d8e46b44e387c7a5084c09d49dfc48f7f550cd92aac8e5feb93c1a4de32268d299b8
@@ -5,7 +5,7 @@ ruby file: '.ruby-version'
5
5
 
6
6
  gem 'csv'
7
7
  gem 'rake'
8
- gem 'sequent', '>= 8'
8
+ gem 'sequent', '~> 8'
9
9
 
10
10
  group :test do
11
11
  gem 'database_cleaner'
@@ -10,8 +10,6 @@ require 'database_cleaner'
10
10
 
11
11
  require_relative '../my_app'
12
12
 
13
- Sequent::Test::DatabaseHelpers.maintain_test_database_schema(env: 'test')
14
-
15
13
  module DomainTests
16
14
  def self.included(base)
17
15
  base.metadata[:domain_tests] = true
@@ -22,6 +20,14 @@ RSpec.configure do |config|
22
20
  config.include Sequent::Test::CommandHandlerHelpers
23
21
  config.include DomainTests, file_path: %r{/spec\/lib/}
24
22
 
23
+ config.before :suite do
24
+ Sequent::Support::Database.connect!('test')
25
+ Sequent::Support::Database.drop_schema!(Sequent.configuration.view_schema_name)
26
+ Sequent::Support::Database.drop_schema!(Sequent.configuration.event_store_schema_name)
27
+
28
+ Sequent::Test::DatabaseHelpers.maintain_test_database_schema(env: 'test')
29
+ end
30
+
25
31
  # Domain tests run with a clean sequent configuration and the in memory FakeEventStore
26
32
  config.around :each, :domain_tests do |example|
27
33
  old_config = Sequent.configuration
@@ -49,9 +49,6 @@ module Sequent
49
49
  db_config = db_config.deep_merge(
50
50
  Sequent.configuration.primary_database_key => db_config_overrides,
51
51
  ).stringify_keys
52
- if ActiveRecord::VERSION::MAJOR >= 7 && ActiveRecord::VERSION::MINOR < 1
53
- ActiveRecord.legacy_connection_handling = false
54
- end
55
52
  ActiveRecord::Base.configurations = db_config.stringify_keys
56
53
  ActiveRecord::Base.connects_to database: {
57
54
  Sequent.configuration.primary_database_role => Sequent.configuration.primary_database_key,
data/lib/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Sequent
4
- VERSION = '8.0.1'
4
+ VERSION = '8.0.2'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sequent
3
3
  version: !ruby/object:Gem::Version
4
- version: 8.0.1
4
+ version: 8.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lars Vonk
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2024-12-13 00:00:00.000000000 Z
15
+ date: 2025-01-10 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: activemodel