parallel_coverage 2.0.1 → 2.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: c2c2c60f349e54d897118c585a6d32aad198d274e08fa23d2e0943594780d1d9
4
- data.tar.gz: 160674c139c565d0d893bc7ba52b973f052eaf7c69e40e7a7feb1ac746941850
3
+ metadata.gz: 7ce906a35bcc9221b57b8c8d3c79e2a088934ec2445d7271de7eb31d6b27d1e5
4
+ data.tar.gz: c2969a9ee1bd3dd951abdf36a873f5317f353cf9d72d9fc17d021da75eacf4d2
5
5
  SHA512:
6
- metadata.gz: e02bfedbf830991c916226ff804cd44ba20e72955138184a37653184cc5f575d204822d70d1d33c2efcf9008b4c38efda47b057c79057940c7895aecd5c20dd1
7
- data.tar.gz: 15d7af033d5d99d7c9139899cf93d76be310a2aa604a70e724eec500789a85470cb20cb7bf7930599443f2e5e66abdfbe8f525747324a63aa7f64109377b628e
6
+ metadata.gz: 88e05f31e6f99a93f7e659f32ea7fc8a7c2e7b7ae301ddcc34502a85cfeaa11e4f464f4862122a33311d72d431083c5d2ad4bb1a5850d2fee6060f6dcd8ed2b5
7
+ data.tar.gz: 21f17cd9b42690464537f2673fca1c6b02506bb22bd6848951dc9f6ee90414ace590a41e8dc16bf15c7a9d5eb19fae600771dbfde94b8071a166a3bb91a32b61
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class ParallelCoverage
4
- VERSION = '2.0.1'
4
+ VERSION = '2.0.2'
5
5
  end
@@ -29,8 +29,11 @@ class ParallelCoverage
29
29
  SimpleCov.command_name "#{SimpleCov.command_name}-#{worker}"
30
30
  end
31
31
 
32
- ActiveSupport::TestCase.parallelize_teardown do
33
- SimpleCov.result
32
+ # Since Rails 8.1.4 the teardown hooks also run in the parent process, without a worker, once the
33
+ # workers are done: SimpleCov.result there would stop SimpleCov before its at_exit hook writes the
34
+ # merged report.
35
+ ActiveSupport::TestCase.parallelize_teardown do |worker|
36
+ SimpleCov.result if worker
34
37
  end
35
38
  end
36
39
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: parallel_coverage
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dev-team Codeur
@@ -76,7 +76,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
76
76
  - !ruby/object:Gem::Version
77
77
  version: '0'
78
78
  requirements: []
79
- rubygems_version: 3.7.2
79
+ rubygems_version: 4.0.16
80
80
  specification_version: 4
81
81
  summary: Setup code coverage for parallelized rails tests
82
82
  test_files: []