chaotic_job 0.11.1 → 0.11.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: 65b239108a3f3c45022378231bb6bd49c85f29fba2441e71a0fc49b06fb91413
4
- data.tar.gz: bce5cb7e9beefbaed434d0f4a232341d8cb427eaa0f569b765dfc9da3b692840
3
+ metadata.gz: '053699f58cc1c9b558103f548e21b6bade711cfbd1c3a8ead49b4209cf6ee401'
4
+ data.tar.gz: 05d58a3b0b986513bb1c6e479a7068c97008900e78445f9c1d71c9f4953797ff
5
5
  SHA512:
6
- metadata.gz: bb13d55b1ad97aab48e9d9a87cefb2dd76134a5fd7aae46409b17107dad1aa4070b890e4224139db43b3c53a9f8410bf8befbe758579d06a9d69fffdac049e30
7
- data.tar.gz: 93f0394e4138e749beeb1a26bf62f3e14b7345ffcaa9d2b9343db22849568e50108dc0cf9b45d920c3ad1989f2f94b0cd8c1bd8846449ffa310238f264e7d0ea
6
+ metadata.gz: 73bc8a783b7f98a7ed124686eeafb5a23ad980aa685ec365825d7d76a3f2a7fb395fe2ae6f4c93c6269e62dc90dd94a1d0369b07087c07a09e3b761d8bf5575f
7
+ data.tar.gz: dc1ebc69d47b438364b45e6be755829be54f51823080dc1292fd4233e2d707971e3b18ef0ff038ed7599dd862a2070707e62eea8819d009cc789f5c84395897f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.11.2] - 2025-06-18
4
+
5
+ - Disconnect ActiveRecord connections after defining Simulation scenarios [#22](https://github.com/fractaledmind/chaotic_job/pull/22)
6
+
3
7
  ## [0.11.1] - 2025-06-18
4
8
 
5
9
  - Fix mistaken `job_id` assignment in `Simulation`
@@ -38,6 +38,10 @@ module ChaoticJob
38
38
  assert scenario.glitched?, "Scenario did not execute glitch: #{scenario.glitch}"
39
39
  end
40
40
  end
41
+
42
+ # Since the callstack capture likely touches the database and this code runs during test class definition,
43
+ # we need to disconnect the database connection before possible parallel test forking
44
+ ActiveRecord::Base.connection_pool.disconnect! if ActiveRecord::Base.connected?
41
45
  end
42
46
 
43
47
  private
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ChaoticJob
4
- VERSION = "0.11.1"
4
+ VERSION = "0.11.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chaotic_job
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.1
4
+ version: 0.11.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen Margheim