mutant 0.15.0 → 0.15.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: cdcb7051e04dfb3ff669e6f673f13837725981be61745b633fda8c00122bb439
4
- data.tar.gz: bc51f9a72c0163a1bae7f56f56ce10a06cf825281d1248b380048237394e404c
3
+ metadata.gz: d4eb76ac40bf4c263a5201b009dbc0760df5191918754bd47452017a4c97ac9b
4
+ data.tar.gz: b7ed8bb7728602995b796d7950d7c5ed445a3d9e775f7ad69b0dd5e91da3a69f
5
5
  SHA512:
6
- metadata.gz: 6482d04cf00047a75531c116439726545e2955b0a0df5a9104f855b29720d30d61cc7779b4adaca2982596544bf5b46dc7f34f9d42eb2f187c973bf4288051dc
7
- data.tar.gz: a805ae81a1f767004c37305555778aab712f58684f0cee50bfe9428f6dd9ab8979796ffdcaa4436510e579752b2a7c2e6331b37dc4af3ced942f3ae67536c906
6
+ metadata.gz: 27d3948ff6e67c670aefe552fad358d333ee584d48090f13b14d15bee01a756dd6982be5922200dd0d2d939916b9d97e02c862b5d3487c9fd7572688affa544d
7
+ data.tar.gz: 3155f5599aa51d7d8644fbac0f4f6edb0f2e63d26bd70ca87f20b820f492ba07fa773ec974ad474f3ec08b652acc89eb23033124925c37f933e84eee803f0219
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.15.0
1
+ 0.15.1
data/bin/mutant CHANGED
@@ -1,11 +1,4 @@
1
1
  #!/usr/bin/env ruby
2
2
  # frozen_string_literal: true
3
3
 
4
- # Dispatcher that selects between mutant-ruby and mutant-rust
5
- # based on MUTANT_RUST environment variable.
6
- #
7
- # See RUST.md for documentation.
8
-
9
- fail 'MUTANT_RUST=1 is not yet supported via gem installation' if ENV['MUTANT_RUST']
10
-
11
4
  exec('mutant-ruby', *ARGV)
@@ -8,10 +8,19 @@ module Mutant
8
8
  class EnvResult < self
9
9
  delegate(:failed_subject_results)
10
10
 
11
+ ALIVE_EXPLANATION = <<~'MESSAGE'
12
+ Alive mutations require one of two actions:
13
+ A) Keep the mutated code: Your tests specify the correct semantics,
14
+ and the original code is redundant. Accept the mutation.
15
+ B) Add a missing test: The original code is correct, but the tests
16
+ do not verify the behavior the mutation removed.
17
+ MESSAGE
18
+
11
19
  # Run printer
12
20
  #
13
21
  # @return [undefined]
14
22
  def run
23
+ puts(ALIVE_EXPLANATION) if failed_subject_results.any?
15
24
  visit_collection(SubjectResult, failed_subject_results)
16
25
  visit(EnvProgress, object)
17
26
  end
@@ -4,19 +4,13 @@ require 'pathname'
4
4
 
5
5
  module Mutant
6
6
  # Current mutant version
7
- #
8
- # See RUST.md for documentation on version loading behavior.
9
7
  VERSION =
10
- if ENV['MUTANT_RUST']
11
- ENV.fetch('MUTANT_VERSION').freeze
12
- else
13
- Pathname
14
- .new(__dir__)
15
- .parent
16
- .parent
17
- .join('VERSION')
18
- .read
19
- .chomp
20
- .freeze
21
- end
8
+ Pathname
9
+ .new(__dir__)
10
+ .parent
11
+ .parent
12
+ .join('VERSION')
13
+ .read
14
+ .chomp
15
+ .freeze
22
16
  end # Mutant
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mutant
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.0
4
+ version: 0.15.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Markus Schirp