mutant 0.2.14 → 0.2.15
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.
data/Changelog.md
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
# v0.2.15 2013-01-10
|
2
|
+
|
3
|
+
* [change] Do not mutate super to super() anymore. This needs a context check in future.
|
4
|
+
|
5
|
+
[Compare v0.2.14..v0.2.15](https://github.com/mbj/mutant/compare/v0.2.14...v0.2.15)
|
6
|
+
|
1
7
|
# v0.2.14 2013-01-09
|
2
8
|
|
3
9
|
* [change] Do not emit mutation to { nil => nil } for hash literals
|
@@ -8,6 +8,7 @@ module Mutant
|
|
8
8
|
handle(Rubinius::AST::Self)
|
9
9
|
|
10
10
|
# Currently unhandled node classes. Feel free to contribute your mutator!
|
11
|
+
handle(Rubinius::AST::ZSuper)
|
11
12
|
handle(Rubinius::AST::ElementAssignment)
|
12
13
|
handle(Rubinius::AST::AttributeAssignment)
|
13
14
|
handle(Rubinius::AST::Not)
|
@@ -2,23 +2,6 @@ module Mutant
|
|
2
2
|
class Mutator
|
3
3
|
class Node
|
4
4
|
|
5
|
-
# Mutator for super without parantheses
|
6
|
-
class ZSuper < self
|
7
|
-
|
8
|
-
handle(Rubinius::AST::ZSuper)
|
9
|
-
|
10
|
-
# Emit mutations
|
11
|
-
#
|
12
|
-
# @return [undefined]
|
13
|
-
#
|
14
|
-
# @api private
|
15
|
-
#
|
16
|
-
def dispatch
|
17
|
-
emit_node(Rubinius::AST::Super, new(Rubinius::AST::ActualArguments))
|
18
|
-
end
|
19
|
-
|
20
|
-
end
|
21
|
-
|
22
5
|
# Mutator for super with parantheses
|
23
6
|
class Super < self
|
24
7
|
handle(Rubinius::AST::Super)
|
data/mutant.gemspec
CHANGED
@@ -5,12 +5,7 @@ describe Mutant::Mutator, 'super' do
|
|
5
5
|
context 'with no arguments' do
|
6
6
|
let(:source) { 'super' }
|
7
7
|
|
8
|
-
|
9
|
-
mutations = []
|
10
|
-
mutations << 'super()'
|
11
|
-
end
|
12
|
-
|
13
|
-
it_should_behave_like 'a mutator'
|
8
|
+
it_should_behave_like 'a noop mutator'
|
14
9
|
end
|
15
10
|
|
16
11
|
context 'with explicit empty arguments' do
|
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.2.
|
4
|
+
version: 0.2.15
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-01-
|
12
|
+
date: 2013-01-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: to_source
|