mutant 0.3.0.rc5 → 0.3.0

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: 93fb22e9e2e3e14dc8a4801c5bb1258307f2a45d
4
- data.tar.gz: e3777ec7be30e6e2ba7623ba884962d79f2ed3f8
3
+ metadata.gz: e810c11e9fb94160c87f687622579f5847c6dfa3
4
+ data.tar.gz: c85861025f1b22cc0c05c39968fe46414d27eec4
5
5
  SHA512:
6
- metadata.gz: 7ac0e6884996342e298c117bded83b14949bf4eb68b8dcf58ee436dafee7dcd44ef76c916d7a551b3ea92ae75105ee79909cd6a4a1d1a94775a4f6093912f1bb
7
- data.tar.gz: 8e819ec82cf6305e3bf5124bae1b9f7363d06e1ca6d3c05bb7dacef7c044f69ea557ffe48c767c5b9550730f3501d30ee487aa0e4490dfc7ae1506ab92dc909b
6
+ metadata.gz: 709810ded5270837fdff852c3de89793c1e35fc56a26bc88e3e96254d85e46339c3fde307fbc160154dc887bd2f48a4403c7245d7aa68d51d503446ce1dc69bc
7
+ data.tar.gz: 9940313f7b1d240115bdad720f24e68c7318f7c31683d47c4e84d42ab3cb1b222e56ede65798277874c592d59eaca508d1d2695e511bcc5a6e439dc80656b698
@@ -1,15 +1,23 @@
1
- # v0.3.0 2013-06-xx
1
+ # v0.3.0 2013-12-10
2
2
 
3
3
  Feature:
4
4
 
5
- * Rewrite all mutators on top of whitequark/parser
5
+ * Rewrite all mutators on top of whitequark/parser (major!)
6
6
  * Also mutate conditions in case statements
7
+ * Add tons of mutators I lost track about during development.
8
+ * Add --ignore-subject optoin supporting the same syntax as matchers
9
+
10
+ Bugfixes:
11
+
12
+ * Fix lots of crashes.
13
+ * Fix all known multiple diff errors
14
+ * Handle methods memoized with adamantium correctly
7
15
 
8
16
  Bugfixes:
9
17
 
10
18
  * Fix all bugs caused by mutant-melbourne
11
19
 
12
- # v0.2.20 2013-03-1
20
+ # v0.2.20 2013-03-01
13
21
 
14
22
  * Update dependencies
15
23
 
@@ -1,3 +1,3 @@
1
1
  ---
2
2
  threshold: 18
3
- total_score: 784
3
+ total_score: 791
@@ -13,9 +13,9 @@ module Mutant
13
13
  #
14
14
  # @api private
15
15
  #
16
- def self.each(node, parent = nil, &block)
17
- return to_enum(__method__, node, parent) unless block_given?
18
- Registry.lookup(node).new(node, parent, block)
16
+ def self.each(input, parent = nil, &block)
17
+ return to_enum(__method__, input, parent) unless block_given?
18
+ Registry.lookup(input).new(input, parent, block)
19
19
 
20
20
  self
21
21
  end
@@ -92,7 +92,7 @@ module Mutant
92
92
  # @api private
93
93
  #
94
94
  def new?(object)
95
- !@seen.include?(self.class.identity(object))
95
+ !@seen.include?(identity(object))
96
96
  end
97
97
 
98
98
  # Add object to guarded values
@@ -104,7 +104,19 @@ module Mutant
104
104
  # @api private
105
105
  #
106
106
  def guard(object)
107
- @seen << self.class.identity(object)
107
+ @seen << identity(object)
108
+ end
109
+
110
+ # Return identity for input
111
+ #
112
+ # @param [Object] input
113
+ #
114
+ # @return [Object]
115
+ #
116
+ # @api private
117
+ #
118
+ def identity(input)
119
+ self.class.identity(input)
108
120
  end
109
121
 
110
122
  # Dispatch node generations
@@ -31,7 +31,7 @@ module Mutant
31
31
  # @api private
32
32
  #
33
33
  def self.define_named_child(name, index)
34
- define_method("#{name}") do
34
+ define_method(name) do
35
35
  children.at(index)
36
36
  end
37
37
 
@@ -1,3 +1,5 @@
1
+ # encoding: UTF-8
2
+
1
3
  module Mutant
2
4
  class Mutator
3
5
  class Node
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Mutant
4
4
  # The current mutant version
5
- VERSION = '0.3.0.rc5'.freeze
5
+ VERSION = '0.3.0'.freeze
6
6
  end # Mutant
@@ -1,3 +1,5 @@
1
+ # encoding: UTF-8
2
+
1
3
  require 'spec_helper'
2
4
 
3
5
  describe Mutant::Subject::Method::Instance do
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.rc5
4
+ version: 0.3.0
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-12-07 00:00:00.000000000 Z
11
+ date: 2013-12-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parser
@@ -454,9 +454,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
454
454
  version: '0'
455
455
  required_rubygems_version: !ruby/object:Gem::Requirement
456
456
  requirements:
457
- - - '>'
457
+ - - '>='
458
458
  - !ruby/object:Gem::Version
459
- version: 1.3.1
459
+ version: '0'
460
460
  requirements: []
461
461
  rubyforge_project:
462
462
  rubygems_version: 2.0.14