chaotic_job 0.11.0 → 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: dc5202af5b7c61dc01f0c44a251f28aea71741ec57646494fee7fa43750125cf
4
- data.tar.gz: f8268881839b02301924d2ade74b0360a58a0247da197ac3ce618b9e458932ab
3
+ metadata.gz: '053699f58cc1c9b558103f548e21b6bade711cfbd1c3a8ead49b4209cf6ee401'
4
+ data.tar.gz: 05d58a3b0b986513bb1c6e479a7068c97008900e78445f9c1d71c9f4953797ff
5
5
  SHA512:
6
- metadata.gz: f046356cc1fdcf91fcf4796dc547a490c85ab21ea3518f386cdedb57174038026337272c1ed0830a4b66dd26afaf7cfb2ebae3140a625749d45d78871b1876a0
7
- data.tar.gz: a42f8be0abb820c379c08f7e79631c4c417da9ad2c82f754f743bd587176511f44feaf2b29643c29a670d402aa31019694c87cb69cb639add4a7766b19f8fecc
6
+ metadata.gz: 73bc8a783b7f98a7ed124686eeafb5a23ad980aa685ec365825d7d76a3f2a7fb395fe2ae6f4c93c6269e62dc90dd94a1d0369b07087c07a09e3b761d8bf5575f
7
+ data.tar.gz: dc1ebc69d47b438364b45e6be755829be54f51823080dc1292fd4233e2d707971e3b18ef0ff038ed7599dd862a2070707e62eea8819d009cc789f5c84395897f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
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
+
7
+ ## [0.11.1] - 2025-06-18
8
+
9
+ - Fix mistaken `job_id` assignment in `Simulation`
10
+
3
11
  ## [0.11.0] - 2025-06-18
4
12
 
5
13
  - Allow a Simulation to control the ActiveSupport::Notifications captured, and capture all by default [#20](https://github.com/fractaledmind/chaotic_job/pull/20)
@@ -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
@@ -77,7 +81,6 @@ module ChaoticJob
77
81
  serialized_template = @template.serialize
78
82
  job = ActiveJob::Base.deserialize(serialized_template)
79
83
  job.exception_executions = {}
80
- job.job_id = [job.job_id.split("-").first, glitch.event, glitch.key].join("-")
81
84
  job
82
85
  end
83
86
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ChaoticJob
4
- VERSION = "0.11.0"
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.0
4
+ version: 0.11.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen Margheim