mutaterb 0.3.0 → 0.3.1

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: 0fcfd443fe916c062548f30e91d88d26a3315995867ef5171ae65a59075a8f30
4
- data.tar.gz: 349a834f109c1ab01cbf632ca042fa2850691c88ef77c61250c2d37d8e7def6b
3
+ metadata.gz: 82ad4fc719ac8b83a1857348b0be06c45fbb2995fbcf431d85fb2b2b52c74342
4
+ data.tar.gz: add794c175e4509c69fc293090c5c60c6f9493c5477cabeea89630863b5c1832
5
5
  SHA512:
6
- metadata.gz: c46d5fcaf78d48abde487f77f96803ec0748e011b20d6d00cfb9d00766ae69e94c3403b3dd9be35867f2ff854608cfb13e218cd82c5a94d7635b5077861b6df2
7
- data.tar.gz: a7327b9f520ebae9231729c43b8f29cbb171e35f6781eef35889c63ff5502dc9cd3ce431833e7b77ae9b759065648cc805af39b7b2fb8f4b3c14c440e2be145e
6
+ metadata.gz: 1128b8a7cd0462d1aa9eff94dfeaec8e7950b59faed65cb7cd91a9731e2fbf7f18b225098cad6a1c43e576ce82ffd5b876d384e67f72ae735849fdbb6f8767dc
7
+ data.tar.gz: 47642ca53aa83eb67f9a5226a0452a6c6c4d8fdc4fe6369a02e4253c6c7a568d836a1be54f725dd6955097667489c6f46a25f2f38108a1c7e14ad252d5761042
@@ -17,9 +17,14 @@ module MutateRB
17
17
  LINE_PATTERN = /^(\S+)\s*=\s*([\d.]+)\s*s\s*=\s*([.FES])/
18
18
  FILE_MARKER = "@@MUTATERB_FILE@@"
19
19
 
20
+ # Files are joined with `;`, not `&&`: `bin/rails test`/`ruby` exits non-zero whenever a
21
+ # test fails or errors, which is the normal case for a real project's suite — `&&` would
22
+ # silently stop the whole chain at the first failing file, dropping every file after it
23
+ # from the baseline. Nothing here reads the shell's exit status (TestRunner classifies
24
+ # purely from parsed output), so running every file regardless is safe.
20
25
  def self.command_for(files, project_type:)
21
26
  files.map { |file| "echo #{FILE_MARKER}#{Shellwords.escape(file)} && #{run_one(file, project_type)}" }
22
- .join(" && ")
27
+ .join(" ; ")
23
28
  end
24
29
 
25
30
  def self.run_one(file, project_type)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MutateRB
4
- VERSION = "0.3.0"
4
+ VERSION = "0.3.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mutaterb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - MarceloM47