turbo_tests2 3.1.12 → 3.1.13

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: 4a0a7e07ce58d3ba90c7f356ec58e2b633cd5ce9d2c0a597f8752c6dd1249862
4
- data.tar.gz: 55ae018f050654cbabf5a2be45fcfaf311e1357be48804c399e721de63335770
3
+ metadata.gz: 394115742cadee6d2c917aa3d4234eb6d61ef695c2629f7960262fbe7b748331
4
+ data.tar.gz: ddde1b1124d90db035218b071f36d5c2f30a0453ada0b634d0797504bc406c3e
5
5
  SHA512:
6
- metadata.gz: 11477777a8a100f2a9cf65880ab421350750ef5e88b9c60abcfb07385e2b07012b510fe9e2c9ab187c797a927be37b6c88eb562daff901350d31e8ab53404388
7
- data.tar.gz: 4cfa0228f397db7723076b1f77540e87f554866052eda68ceee4ce9a6b9f8ea70dc192c1407462a2d2601d5e3556ff8bd6ad07da2c772e6b7dc2f7414a55964d
6
+ metadata.gz: c2b063990697f22ac01fe2f08d233d5b1b13387bebbe26a48503aab25a515df11ca1b523c720eb7c620f457926f4f3a0c1c415999c3e763fc4746dd6d89ec955
7
+ data.tar.gz: 935bbe77795769c8195867207b2caa6383bfcc1f2a765932673b695d6151ba38894c25d0c85c0c732bdccf5cae1234f50c930632b04cff7e60eb9b1332ddcbb0
checksums.yaml.gz.sig CHANGED
Binary file
data/CHANGELOG.md CHANGED
@@ -30,6 +30,18 @@ Please file a bug if you notice a violation of semantic versioning.
30
30
 
31
31
  ### Security
32
32
 
33
+ ## [3.1.13] - 2026-07-16
34
+
35
+ - TAG: [v3.1.13][3.1.13t]
36
+ - COVERAGE: 97.50% -- 741/760 lines in 10 files
37
+ - BRANCH COVERAGE: 88.35% -- 182/206 branches in 10 files
38
+ - 35.87% documented
39
+
40
+ ### Fixed
41
+
42
+ - Duplicate RSpec `Run options:` messages from parallel workers are now
43
+ collapsed so they no longer interrupt progress formatter output repeatedly.
44
+
33
45
  ## [3.1.12] - 2026-07-16
34
46
 
35
47
  - TAG: [v3.1.12][3.1.12t]
@@ -275,7 +287,9 @@ Please file a bug if you notice a violation of semantic versioning.
275
287
 
276
288
  - Initial release
277
289
 
278
- [Unreleased]: https://github.com/galtzo-floss/turbo_tests2/compare/v3.1.12...HEAD
290
+ [Unreleased]: https://github.com/galtzo-floss/turbo_tests2/compare/v3.1.13...HEAD
291
+ [3.1.13]: https://github.com/galtzo-floss/turbo_tests2/compare/v3.1.12...v3.1.13
292
+ [3.1.13t]: https://github.com/galtzo-floss/turbo_tests2/releases/tag/v3.1.13
279
293
  [3.1.12]: https://github.com/galtzo-floss/turbo_tests2/compare/v3.1.11...v3.1.12
280
294
  [3.1.12t]: https://github.com/galtzo-floss/turbo_tests2/releases/tag/v3.1.12
281
295
  [3.1.11]: https://github.com/galtzo-floss/turbo_tests2/compare/v3.1.10...v3.1.11
data/README.md CHANGED
@@ -666,7 +666,7 @@ Thanks for RTFM. ☺️
666
666
  [📌gitmoji]: https://gitmoji.dev
667
667
  [📌gitmoji-img]: https://img.shields.io/badge/gitmoji_commits-%20%F0%9F%98%9C%20%F0%9F%98%8D-34495e.svg?style=flat-square
668
668
  [🧮kloc]: https://www.youtube.com/watch?v=dQw4w9WgXcQ
669
- [🧮kloc-img]: https://img.shields.io/badge/KLOC-0.744-FFDD67.svg?style=for-the-badge&logo=YouTube&logoColor=blue
669
+ [🧮kloc-img]: https://img.shields.io/badge/KLOC-0.760-FFDD67.svg?style=for-the-badge&logo=YouTube&logoColor=blue
670
670
  [🔐security]: https://github.com/galtzo-floss/turbo_tests2/blob/main/SECURITY.md
671
671
  [🔐security-img]: https://img.shields.io/badge/security-policy-259D6C.svg?style=flat
672
672
  [📄copyright-notice-explainer]: https://opensource.stackexchange.com/questions/5778/why-do-licenses-such-as-the-mit-license-specify-a-single-year
@@ -177,6 +177,7 @@ module TurboTests
177
177
  @exited_process_ids = []
178
178
  @worker_output = Hash.new { |hash, process_id| hash[process_id] = {stdout: +"", stderr: +""} }
179
179
  @worker_output_mutex = Mutex.new
180
+ @deferred_run_options_messages = Hash.new { |hash, message| hash[message] = [] }
180
181
  @error = false
181
182
  @print_failed_group = opts[:print_failed_group]
182
183
  end
@@ -544,6 +545,8 @@ module TurboTests
544
545
  if message[:message].include?("An error occurred") || message[:message].include?("occurred outside of examples")
545
546
  @reporter.error_outside_of_examples(message[:message])
546
547
  @error = true
548
+ elsif run_options_message?(message[:message])
549
+ defer_run_options_message(message[:message], message[:process_id])
547
550
  else
548
551
  @reporter.message(message[:message])
549
552
  end
@@ -567,9 +570,33 @@ module TurboTests
567
570
 
568
571
  $stdout.flush
569
572
  end
573
+
574
+ flush_deferred_run_options_messages
570
575
  rescue Interrupt
571
576
  end
572
577
 
578
+ def run_options_message?(message)
579
+ message.to_s.start_with?("Run options:")
580
+ end
581
+
582
+ def defer_run_options_message(message, process_id)
583
+ @deferred_run_options_messages[message] << process_id
584
+ end
585
+
586
+ def flush_deferred_run_options_messages
587
+ return if @deferred_run_options_messages.empty?
588
+
589
+ if @deferred_run_options_messages.one?
590
+ @reporter.message(@deferred_run_options_messages.keys.first)
591
+ else
592
+ lines = @deferred_run_options_messages.map do |message, process_ids|
593
+ " workers #{process_ids.uniq.sort.join(", ")}: #{message}"
594
+ end
595
+ @reporter.message(["Run options by worker:", *lines].join("\n"))
596
+ end
597
+ @deferred_run_options_messages.clear
598
+ end
599
+
573
600
  def close_io(io)
574
601
  io.close unless io.closed?
575
602
  rescue IOError
@@ -2,7 +2,7 @@
2
2
 
3
3
  module TurboTests
4
4
  module Version
5
- VERSION = "3.1.12"
5
+ VERSION = "3.1.13"
6
6
  end
7
7
  VERSION = Version::VERSION # Traditional Constant Location
8
8
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: turbo_tests2
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.12
4
+ version: 3.1.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Illia
@@ -312,10 +312,10 @@ licenses:
312
312
  - MIT
313
313
  metadata:
314
314
  homepage_uri: https://turbo-tests2.galtzo.com
315
- source_code_uri: https://github.com/galtzo-floss/turbo_tests2/tree/v3.1.12
316
- changelog_uri: https://github.com/galtzo-floss/turbo_tests2/blob/v3.1.12/CHANGELOG.md
315
+ source_code_uri: https://github.com/galtzo-floss/turbo_tests2/tree/v3.1.13
316
+ changelog_uri: https://github.com/galtzo-floss/turbo_tests2/blob/v3.1.13/CHANGELOG.md
317
317
  bug_tracker_uri: https://github.com/galtzo-floss/turbo_tests2/issues
318
- documentation_uri: https://www.rubydoc.info/gems/turbo_tests2/3.1.12
318
+ documentation_uri: https://www.rubydoc.info/gems/turbo_tests2/3.1.13
319
319
  funding_uri: https://github.com/sponsors/pboling
320
320
  wiki_uri: https://github.com/galtzo-floss/turbo_tests2/wiki
321
321
  news_uri: https://www.railsbling.com/tags/turbo_tests2
metadata.gz.sig CHANGED
Binary file