mutant 0.3.0.beta12 → 0.3.0.beta13

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
  SHA1:
3
- metadata.gz: da90ad9db025d0f924a9a2ec2caa5f01e387f9f0
4
- data.tar.gz: e207396b46243ec605b51217da7547c9cada8cc8
3
+ metadata.gz: 5100a60ae10ea74c7d5429d4c6f8ab4a8eb6d324
4
+ data.tar.gz: d8c915c2bd55f043c2e6e7e39d41dfb67d0b9981
5
5
  SHA512:
6
- metadata.gz: a3af704eb2e700422af4fbada84859fbbaf34562f1e5a03d97483c9f81364fb331467e800f6b096e21bb85e6fe4a1766341deee1f9d403736bf348198542e027
7
- data.tar.gz: f72e8962725f13ee7eda39df07f2e8fb7c6efc0c22683112361cd0971c958d3fe6e41ba1f4acac3bebf465e0bff08201d2d539e536569c0c2f043e1ff20da1d5
6
+ metadata.gz: e90198db8556ad4ee0f3b1e882f3a61b7cee31ecfd1b4c6357dccba3984522775dc7789a9d4d629f26a63550d5748676c19cbaf870d2756ee5cd41b65bf25912
7
+ data.tar.gz: 91bcd04508b4924b334d09476be2f2ea4717ea817bea6cc39f3fb255fb072299eb7cfbffc3f62b0d73210b946ec60f3824e88c556b08e8a0d06c59db57fcc544
data/config/flay.yml CHANGED
@@ -1,3 +1,3 @@
1
1
  ---
2
2
  threshold: 16
3
- total_score: 674
3
+ total_score: 680
@@ -27,10 +27,9 @@ module Mutant
27
27
  # @api private
28
28
  #
29
29
  def dispatch
30
- children.each_index do |index|
31
- if children.at(index).kind_of?(Parser::AST::Node)
32
- mutate_child(index)
33
- end
30
+ children.each_with_index do |child, index|
31
+ next unless child.kind_of?(Parser::AST::Node)
32
+ mutate_child(index)
34
33
  end
35
34
  end
36
35
 
@@ -34,7 +34,6 @@ module Mutant
34
34
  emit_self(*dup_children)
35
35
  mutate_child(index)
36
36
  end
37
- emit_self(s(:nil), *children)
38
37
  end
39
38
 
40
39
  end # Array
data/mutant.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |gem|
4
4
  gem.name = 'mutant'
5
- gem.version = '0.3.0.beta12'
5
+ gem.version = '0.3.0.beta13'
6
6
  gem.authors = [ 'Markus Schirp' ]
7
7
  gem.email = [ 'mbj@schirp-dso.com' ]
8
8
 
@@ -21,9 +21,6 @@ describe Mutant::Mutator::Node::Literal, 'array' do
21
21
 
22
22
  # Empty array
23
23
  mutations << '[]'
24
-
25
- # Extra element
26
- mutations << '[nil, true, false]'
27
24
  end
28
25
 
29
26
  it_should_behave_like 'a mutator'
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.3.0.beta12
4
+ version: 0.3.0.beta13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Markus Schirp
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-07-05 00:00:00.000000000 Z
11
+ date: 2013-07-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parser
@@ -323,7 +323,6 @@ files:
323
323
  - spec/unit/mutant/mutator/node/if/mutation_spec.rb
324
324
  - spec/unit/mutant/mutator/node/literal/array_spec.rb
325
325
  - spec/unit/mutant/mutator/node/literal/boolean/mutation_spec.rb
326
- - spec/unit/mutant/mutator/node/literal/empty_array_spec.rb
327
326
  - spec/unit/mutant/mutator/node/literal/fixnum_spec.rb
328
327
  - spec/unit/mutant/mutator/node/literal/float_spec.rb
329
328
  - spec/unit/mutant/mutator/node/literal/hash_spec.rb
@@ -431,7 +430,6 @@ test_files:
431
430
  - spec/unit/mutant/mutator/node/if/mutation_spec.rb
432
431
  - spec/unit/mutant/mutator/node/literal/array_spec.rb
433
432
  - spec/unit/mutant/mutator/node/literal/boolean/mutation_spec.rb
434
- - spec/unit/mutant/mutator/node/literal/empty_array_spec.rb
435
433
  - spec/unit/mutant/mutator/node/literal/fixnum_spec.rb
436
434
  - spec/unit/mutant/mutator/node/literal/float_spec.rb
437
435
  - spec/unit/mutant/mutator/node/literal/hash_spec.rb
@@ -1,17 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe Mutant::Mutator::Node::Literal, 'empty array' do
4
- let(:source) { '[]' }
5
-
6
- let(:mutations) do
7
- mutations = []
8
-
9
- # Literal replaced with nil
10
- mutations << 'nil'
11
-
12
- # Extra element
13
- mutations << '[nil]'
14
- end
15
-
16
- it_should_behave_like 'a mutator'
17
- end