sequent 8.0.0 → 8.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d275476616c98974e95ec5b59af16651bb57e5b2e3b88440de43c00687cd4217
4
- data.tar.gz: bfdd1340cc4817a2ee6bcc4a3bfd44a1203093078d8dab08e71ade3f3c2f2fe2
3
+ metadata.gz: 286e0bad8fae90e0442b711406e06744dd9b11bd761961886349368131fed005
4
+ data.tar.gz: 805cfede0b646d5aa0da4c4ccbb7a0e34af147bb43a60086c1829d2418a2e97c
5
5
  SHA512:
6
- metadata.gz: 80fd3dbef368b2835b8bc51f3bcce8a06d2860befaa7b6854f99662152ed186d370b8a55993266c242350a2bb6abbd48f4128dab76f8338d648156d9e7d27bb7
7
- data.tar.gz: 288fcc0e3f674dabffb326b36eb8a685975415f62857120a0bd6b0820dff8c10c479fd5510cfc0b09b6f46e562f5d1b7d1f6dfa6753cc64131e81d3465529cba
6
+ metadata.gz: 3966ba588ecb08107d2608a44af378e8698830a9f0001cb06bb001ed3536c17006911544ab6e3a7be520c9577ba0e5083ea17adc917c932ab58ab0cc9cb3ff03
7
+ data.tar.gz: 0f9fa0804ee084dfb0b3ab7144c52f53846019cdccbf95926a2be6b7f4b2d8e46b44e387c7a5084c09d49dfc48f7f550cd92aac8e5feb93c1a4de32268d299b8
data/bin/sequent CHANGED
@@ -3,8 +3,8 @@
3
3
 
4
4
  require 'gli'
5
5
  require 'tty-prompt'
6
- require './lib/version'
7
- require './lib/sequent/cli/app'
6
+ require_relative '../lib/version'
7
+ require_relative '../lib/sequent/cli/app'
8
8
 
9
9
  exit_code = Sequent::Cli::App.run(ARGV)
10
10
  exit(exit_code)
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require_relative '../generator'
4
- require_relative 'sequent8_migration'
4
+ require_relative 'sequent_8_migration'
5
5
  module Sequent
6
6
  module Cli
7
7
  class App
@@ -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.0'
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.0
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
@@ -545,7 +545,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
545
545
  - !ruby/object:Gem::Version
546
546
  version: '0'
547
547
  requirements: []
548
- rubygems_version: 3.4.10
548
+ rubygems_version: 3.5.16
549
549
  signing_key:
550
550
  specification_version: 4
551
551
  summary: Event sourcing framework for Ruby