mutant 0.10.18 → 0.10.19
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/lib/mutant/mutator/node/defined.rb +12 -3
- data/lib/mutant/mutator/node/procarg_zero.rb +0 -6
- data/lib/mutant/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f4950653df0e159b7d178e4770ad8ecf03994f1d08c99e4ba3589d9d76131840
|
4
|
+
data.tar.gz: 143ea75408ac2d9e6fda64e44e4ee1172317a716e593150df323ef6005f04598
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: efc662d1906386fbbbf011cabebd4d88450169237680c64e52e2e2432dd22f0ae6dc6a0cecddebf0357932b4520be0ec5e4a3aa63cf0734b9d8f0e47d5b8d5b4
|
7
|
+
data.tar.gz: d0d84126e2bd05e9d6a8b4360821eb4473049f92ac7b7257286b92e48b8c9e1d428ba8bbb7f708e19590c065aa415b1928f58fd50ebeb6ac5decc568afb90b32
|
@@ -13,10 +13,19 @@ module Mutant
|
|
13
13
|
private
|
14
14
|
|
15
15
|
def dispatch
|
16
|
-
|
17
|
-
|
16
|
+
emit(N_NIL)
|
17
|
+
emit_instance_variable_mutation
|
18
|
+
end
|
19
|
+
|
20
|
+
def emit_instance_variable_mutation
|
21
|
+
return unless n_ivar?(expression)
|
22
|
+
|
23
|
+
instance_variable_name = Mutant::Util.one(expression.children)
|
18
24
|
|
19
|
-
|
25
|
+
emit(
|
26
|
+
s(:send, nil, :instance_variable_defined?,
|
27
|
+
s(:sym, instance_variable_name))
|
28
|
+
)
|
20
29
|
end
|
21
30
|
|
22
31
|
end # Defined
|
@@ -4,12 +4,6 @@ module Mutant
|
|
4
4
|
class Mutator
|
5
5
|
class Node
|
6
6
|
class ProcargZero < self
|
7
|
-
MAP = {
|
8
|
-
::Parser::AST::Node => :emit_argument_node_mutations,
|
9
|
-
Symbol => :emit_argument_symbol_mutations
|
10
|
-
}.freeze
|
11
|
-
|
12
|
-
private_constant(*constants(false))
|
13
7
|
|
14
8
|
handle :procarg0
|
15
9
|
|
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.10.
|
4
|
+
version: 0.10.19
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Markus Schirp
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-12-
|
11
|
+
date: 2020-12-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: abstract_type
|