mutant 0.5.25 → 0.5.26
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 +4 -4
- data/Changelog.md +5 -0
- data/lib/mutant/env.rb +1 -1
- data/lib/mutant/expression/method.rb +1 -1
- data/lib/mutant/reporter/cli/report/mutation.rb +1 -1
- data/lib/mutant/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 40c90d9f752a1b8e3f120deb4c47f6a4a3683369
|
|
4
|
+
data.tar.gz: 833c87b79967039486f66c6e295992642243f2e9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 243b80a0db1e4c41a0d47fbc2056cf48d10e268a6c5af1cc9728a5645022a0ae042287242a8bef1fed6ec2a3df19b24cc8c589083aa4940a104fdef9a3e0a079
|
|
7
|
+
data.tar.gz: 113d8551fcc6102f8cc459b0e793e80abd77f685f80eb2895d5cf989b12eb65ffbc5d642bc762a5d750faeef90dde6a5c95a5c6d47365f3f6a30897f2cbf48a7
|
data/Changelog.md
CHANGED
data/lib/mutant/env.rb
CHANGED
|
@@ -107,7 +107,7 @@ module Mutant
|
|
|
107
107
|
name = scope_name(scope) or return
|
|
108
108
|
|
|
109
109
|
unless name.kind_of?(String)
|
|
110
|
-
warn("#{scope.class}#name from: #{scope.inspect} did not return a String or nil.
|
|
110
|
+
warn("#{scope.class}#name from: #{scope.inspect} did not return a String or nil. Fix your lib to support normal ruby semantics!")
|
|
111
111
|
return
|
|
112
112
|
end
|
|
113
113
|
|
|
@@ -25,7 +25,7 @@ module Mutant
|
|
|
25
25
|
methods_matcher = MATCHERS.fetch(scope_symbol).new(env, scope)
|
|
26
26
|
method = methods_matcher.methods.detect do |meth|
|
|
27
27
|
meth.name.equal?(method_name)
|
|
28
|
-
end or raise NameError, "Cannot find method #{
|
|
28
|
+
end or raise NameError, "Cannot find method #{method_name}"
|
|
29
29
|
methods_matcher.matcher.build(env, scope, method)
|
|
30
30
|
end
|
|
31
31
|
|
|
@@ -71,7 +71,7 @@ module Mutant
|
|
|
71
71
|
original, current = mutation.original_source, mutation.source
|
|
72
72
|
diff = Mutant::Diff.build(original, current)
|
|
73
73
|
diff = color? ? diff.colorized_diff : diff.diff
|
|
74
|
-
|
|
74
|
+
puts(diff || DIFF_ERROR_MESSAGE)
|
|
75
75
|
end
|
|
76
76
|
|
|
77
77
|
# Noop details
|
data/lib/mutant/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mutant
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.26
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Markus Schirp
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-07-
|
|
11
|
+
date: 2014-07-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: parser
|