Commit graph

28 commits

Author SHA1 Message Date
Dan Kubb
3eef4f1173 Add explicit mutator for or_asgn 2013-09-07 23:57:47 -07:00
Markus Schirp
38c75ce089 Emit mutator from Object#gsub => Object#sub
Closes #85
2013-08-02 01:01:44 +02:00
Markus Schirp
28cad68acc Add Kernel#send => Kernel#public_send mutation
Closes #78
2013-08-02 00:46:50 +02:00
Dan Kubb
7293386c26 Add magic encoding header to all ruby files
* rubocop still warns about this on ruby 1.9.3, so it was fixed so
  it produces less output on travis.
2013-07-28 16:03:06 -07:00
Markus Schirp
a4b9e6d04a Correct mutation expectation
Unparser api change
2013-07-28 18:42:52 +02:00
Markus Schirp
811b4737da Fix begin mutator to visit children 2013-07-25 20:23:30 +02:00
Dan Kubb
23a84df277 Add mutator for self nodes 2013-07-23 00:43:48 -07:00
Markus Schirp
ad162c2a42 Add dedicated splat mutator
Closes #66
2013-07-15 22:25:09 +02:00
Markus Schirp
4a2d12e7bf Do not emit invalid ast for op-assign mutations
Closes #64
2013-07-14 21:39:23 +02:00
Markus Schirp
2d0c57ba07 Fix generation of invalid ast via parent tracking 2013-06-24 22:10:40 +02:00
Markus Schirp
37588b9bdb Fix mutation expectations for binary operator nodes 2013-06-22 21:44:58 +02:00
Markus Schirp
1c859483b3 Fix invalid ast generation on index sends 2013-06-22 17:53:12 +02:00
Markus Schirp
f79594bb63 Do not propagate splat args in send mutator
Closes #50
2013-06-22 03:25:27 +02:00
Markus Schirp
8b7be8a565 Fix propagation of splat args
Closes #39
2013-06-21 16:18:12 +02:00
Markus Schirp
1f447dc456 Add spec for block pass send mutations 2013-06-21 15:07:40 +02:00
Markus Schirp
b1f864d10f Port regular (non operator) sends to parser 2013-06-14 21:12:10 +02:00
Markus Schirp
d35df6d70c Use KEYWORDS constants from unparser 2013-06-14 21:12:10 +02:00
Dan Kubb
c3c0e06c86 Fix whitespace 2013-04-17 20:31:21 -07:00
Markus Schirp
97a75dd062 Cleanup mutation generation
This is a reaction to the to_source rewrite

* Do not use 1.8 specific nodes anymore
* Do not generate AST nodes that would not be generatable from source
2013-01-09 20:43:06 +01:00
Markus Schirp
5565f5309a Handle binary operator methods correctly 2013-01-03 19:09:43 +01:00
Markus Schirp
c6e60d9178 Bump version to 0.2.10 2013-01-03 16:52:42 +01:00
Markus Schirp
36aedc9a5a Catch more cases to preserve self.class 2012-12-30 01:03:31 +01:00
Markus Schirp
a06030ef06 Take care to not mutate self.class into class 2012-12-29 22:51:42 +01:00
Markus Schirp
22a5cda3f0 Add unary call mutation 2012-12-29 16:12:55 +01:00
Markus Schirp
3dc23c5238 Mutate method call receivers 2012-12-29 16:12:55 +01:00
Markus Schirp
40d5230c68 Introduce noop mutation guards and argument mutators
* Sorry for not splitting up into smaller commit
2012-12-11 00:17:19 +01:00
Markus Schirp
de276327f5 Add support for mutating block arguments 2012-12-10 17:11:08 +01:00
Markus Schirp
5f215e1dc1 Move specs and adjust flay score 2012-12-06 21:51:52 +01:00