rails-quality-assurance 1.4.1 → 1.4.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: 48fcc6048ef349279ab6d8c0d64810ffa91be6b5de9ebf2e9415ef41c3038e81
4
- data.tar.gz: 6c21e634100e723fbe70e20770da34e3e40e474cfb5b994c0245e69d3fb998e7
3
+ metadata.gz: 5c48fd8ab4bfffb99f79aed4c20a235d68a8743572688e16a30e92fb70c3653b
4
+ data.tar.gz: 316329537a41a4259bbc2ed9f69767dceb4d491af9d5314fa9e1f2241ff79f73
5
5
  SHA512:
6
- metadata.gz: 42015429e70aec7a2d9208c6f937591790ffbea36983d16e36ac0c13b9e3ee5ac3fbe2cd4c986fd99fa61c5053bb971160ab90c199976ef510b9cd6f7a84e7a4
7
- data.tar.gz: eebb18864075aafe9bbf4ddb9a287cc6f993301df0278f9f583fe0d6a428a70143f1cd3ed070bb7167bcac580d3cf4d007691b51c3ac3974fa2c4f235f264bbc
6
+ metadata.gz: db9440d4c8d0524b9e1dbaec2d7ab1e5c8f506e86c0aedbeee6d9e1f194589076cc97d3842687789fb50087fb723e30aa40138b5e5c7870dec7964b7b038addb
7
+ data.tar.gz: f667a8d871426ae41141ad849368f71a69b26512a18376cf5a17c92d93fab62fbfee6f3c83adcc416e8bf9f69be0008cd2af155d2c7e713c6c50b69ee665c3f2
data/CHANGELOG.md CHANGED
@@ -5,6 +5,18 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [1.4.2] - 2026-09-16
9
+
10
+ ### Fixed
11
+
12
+ - Parallel workers no longer skip SimpleCov when their slice covers a single
13
+ file. `filtered_run?` treated any one-file run as a filtered single-spec run,
14
+ so a worker assigned an isolated phase (e.g. `--isolate --single spec/system/`)
15
+ started no coverage at all. With no worker claiming the final merge, sibling
16
+ workers wrote resultsets that nobody merged, and the parallel run silently
17
+ skipped the line/branch thresholds it was supposed to enforce. Parallel runs
18
+ now always collect coverage, and the first worker merges and enforces.
19
+
8
20
  ## [1.4.1] - 2026-09-15
9
21
 
10
22
  ### Fixed
@@ -26,6 +26,7 @@ module RailsQualityAssurance
26
26
 
27
27
  def self.filtered_run?
28
28
  return false unless defined?(RSpec)
29
+ return false if parallel_run?
29
30
 
30
31
  rspec_config = RSpec.configuration
31
32
  rspec_config.files_to_run.one? ||
@@ -33,6 +34,10 @@ module RailsQualityAssurance
33
34
  (rspec_config.inclusion_filter.rules&.size&.> 0)
34
35
  end
35
36
 
37
+ def self.parallel_run?
38
+ ENV.key?('TEST_ENV_NUMBER') || ENV.key?('PARALLEL_TEST_GROUPS') || ENV.key?('PARALLEL_PID_FILE')
39
+ end
40
+
36
41
  def self.configure_lcov_formatter
37
42
  SimpleCov::Formatter::LcovFormatter.config do |formatter|
38
43
  formatter.report_with_single_file = true
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RailsQualityAssurance
4
- VERSION = '1.4.1'
4
+ VERSION = '1.4.2'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-quality-assurance
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.1
4
+ version: 1.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mauricio Zaffari