v0.15.02026-02-27
* Add operator mutations.
* #1523
#1530
Add arithmetic operator swap mutations (+ ↔ -, * ↔ /).
Multiplication/division skips multiplicative identity operands.
* #1532
#1533
Add % → / and ` → mutations.
* #1527
Add == ↔ != swap mutation.
* #1534
Add logical operator swap mutations (and ↔ or, && ↔ ||).
* #1535
#1576
Add compound assignment operator swap mutations
(+= ↔ -=, = ↔ /=, %= → /=, = → *=,
&= ↔ |= ↔ ^=, <<= ↔ >>=, &&= ↔ ||=).
* Add selector replacement mutations.
Orthogonal replacements (circular swaps):
* #1559 select/filter ↔ reject
* #1560 any? ↔ none?
* #1561 take ↔ drop
* #1562 append/push ↔ prepend/unshift
* #1563 positive? ↔ negative?
* #1564 zero? ↔ nonzero?
* #1565 count ↔ size/length
* #1568 keys ↔ values
#1571 even? ↔ odd?, min ↔ max, minby ↔ max_by
* #1573 all? ↔ none?, floor ↔ ceil,
startwith? ↔ endwith?, transformkeys ↔ transformvalues, upcase ↔ downcase
#1576 pop ↔ shift, eachkey ↔ each_value,
assoc ↔ rassoc, succ ↔ pred, chars ↔ bytes, empty? ↔ any?,
grep ↔ grep_v
Semantic reductions:
* #1542 Bang → non-bang methods
(e.g. map! → map, sort! → sort, compact! → compact).
* #1567
#1572 Enumerable reductions
(collect → each, eachwithobject → each, eachwithindex → each,
eachcons → each, eachslice → each, sample → first/last,
sort_by → sort).
#1574 filtermap → map,
deleteif → reject, keepif → select, collect_concat → collect,
chunk/chunkwhile/slicebefore/sliceafter/slicewhen → each,
strip → lstrip/rstrip, tof → toi,
defined? → true, strip regexp m (multiline) flag.
* #1558
#1537
Add pattern-matching mutation support. Dedicated mutators for case/in expressions,
in patterns, match alternatives (A | B), and pattern match predicates
(x in pattern → false). Guard clauses in pattern matches are now mutated.
* #1555
#1566
Add control flow mutations. while ↔ until orthogonal swap mutations.
whilepost and untilpost support for begin...end while/begin...end until
constructs.
* #1539
Add super ↔ super() mutation operators to test implicit vs explicit
argument forwarding.
* #1536
Add rescue clause removal mutations. When multiple rescue clauses exist,
emit mutations that remove each clause individually.
* #1543
Add inline rescue modifier mutations (foo rescue bar → bar).
* #1556
Add explicit ensure mutator with ensure-clause reduction.
* #1526
Add empty collection return value mutations (toa → [], toh → {},
to_s → "").
* #1540
Add type-aware default return mutations for method bodies
(Array → [], Hash → {}, String → "", Integer → 0, Float → 0.0).
* #1544
Add generic receiver promotion mutations for blocks (a.b { } → a`).
* #1547
Add non-empty string to empty string mutation.
* #1557
Add literal mutators for complex and rational numeric nodes.
* #1553
Add RSpec 4 support.
* Dependency updates:
* #1570
Bump parser dependency to ~> 3.3.10 and unparser dependency to ~> 0.8.2.
* #1550
Fix bundler stability issue.