mutant 0.8.4 → 0.8.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a7008d6d94f2de1e1c8d276c943491b0fb6cfdc1
4
- data.tar.gz: 70b30707970890aa21961febe6a7657aa1889522
3
+ metadata.gz: 7dd5fae5bb56ceed6c9afc7a06e760f07a4cfefb
4
+ data.tar.gz: 5379381863e779bff921ea7f51d0ca55832d4bb8
5
5
  SHA512:
6
- metadata.gz: b9fe654b8233c2666adadd104d7b6cfe4a5409b81913d9d446364424920a659becb763659c24e308915263a1a6a52e20ea8d7895ca27effb057ea169b1d51f79
7
- data.tar.gz: 5ea82f2c27289e2f307a5809f6c21a8d95315191069f240488419d6c5a65d360bc64ccf8a5d8f8b1f7eca4f23d283107c3a37768472d6a3970d52a9c2e114571
6
+ metadata.gz: 400a2e5a58ee453774f591ca6a4aa81904b07c18203c5cde21cef2bc0f8aae702fb0332dc62e40375476e9aebde7ba273d47716ef2c02a711f6931da7146966b
7
+ data.tar.gz: 042ef5b2171ef8a9fc059bb81370a7e6d494f95c826f7fa64e7ce347b6071ad9e45f711832fb0c81c21d37e20e5384456c00a6a4eff0947e392fe616e8f04d22
data/Changelog.md CHANGED
@@ -1,3 +1,8 @@
1
+ # v0.8.5 2015-09-11
2
+
3
+ * Fix misimplementation of block gluing operator that
4
+ as side effect could also cause invalid AST crashes
5
+
1
6
  # v0.8.4 2015-09-10
2
7
 
3
8
  * Add mutation from `a != b` to `!a.eql?(b)` and `!a.equal?(b)` #417
data/circle.yml CHANGED
@@ -2,6 +2,9 @@
2
2
  machine:
3
3
  ruby:
4
4
  version: '2.2'
5
+ dependencies:
6
+ pre:
7
+ - bundle -v | grep -Fx "Bundler version 1.10.6" || gem install bundler --version 1.10.6
5
8
  test:
6
9
  override:
7
10
  - bundle exec rake ci
data/config/flay.yml CHANGED
@@ -1,3 +1,3 @@
1
1
  ---
2
2
  threshold: 18
3
- total_score: 1234
3
+ total_score: 1233
@@ -49,9 +49,8 @@ module Mutant
49
49
  return unless n_send?(body)
50
50
 
51
51
  body_meta = AST::Meta::Send.new(body)
52
- send_meta = AST::Meta::Send.new(send)
53
52
 
54
- emit(s(:send, send_meta.receiver, body_meta.selector, *body_meta.arguments))
53
+ emit(s(:send, send, body_meta.selector, *body_meta.arguments))
55
54
  end
56
55
 
57
56
  end # Block
@@ -1,4 +1,4 @@
1
1
  module Mutant
2
2
  # Current mutant version
3
- VERSION = '0.8.4'.freeze
3
+ VERSION = '0.8.5'.freeze
4
4
  end # Mutant
data/meta/block.rb CHANGED
@@ -71,16 +71,32 @@ Mutant::Meta::Example.add do
71
71
  end
72
72
 
73
73
  Mutant::Meta::Example.add do
74
- source 'self.foo { bar(nil) }'
74
+ source 'foo { bar(nil) }'
75
75
 
76
76
  singleton_mutations
77
- mutation 'self.foo'
78
- mutation 'foo { bar(nil) }'
79
- mutation 'self.foo { bar }'
80
- mutation 'self.foo { nil }'
81
- mutation 'self.foo {}'
82
- mutation 'self.foo { self }'
83
- mutation 'self.foo { raise }'
77
+ mutation 'foo'
78
+ mutation 'foo { bar }'
79
+ mutation 'foo { nil }'
80
+ mutation 'foo {}'
81
+ mutation 'foo { self }'
82
+ mutation 'foo { raise }'
83
+ mutation 'foo.bar(nil)'
84
84
  mutation 'bar(nil)'
85
- mutation 'self.bar(nil)'
85
+ end
86
+
87
+ Mutant::Meta::Example.add do
88
+ source 'foo { self << true }'
89
+
90
+ singleton_mutations
91
+ mutation 'foo { self << false }'
92
+ mutation 'foo { self << nil }'
93
+ mutation 'foo { nil << true }'
94
+ mutation 'foo { nil }'
95
+ mutation 'foo { self }'
96
+ mutation 'foo { true }'
97
+ mutation 'self << true'
98
+ mutation 'foo << true'
99
+ mutation 'foo { raise }'
100
+ mutation 'foo { }'
101
+ mutation 'foo'
86
102
  end
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.8.4
4
+ version: 0.8.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Markus Schirp
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-10 00:00:00.000000000 Z
11
+ date: 2015-09-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parser
@@ -697,3 +697,4 @@ test_files:
697
697
  - spec/unit/mutant/warning_filter_spec.rb
698
698
  - spec/unit/mutant/zombifier_spec.rb
699
699
  - spec/unit/mutant_spec.rb
700
+ has_rdoc: