1 bug fix:
Fixed handling of kwargs. (joenas)
1 bug fix:
Fixed readme to point out that deep_clone may be needed. (heathd)
1 bug fix:
Moved Regexp::CODES out of guard on ::ENC_NONE. (presidentbeef)
4 minor enhancements:
Don't indent defn body extra if it has a top-level rescue.
Don't indent defn body until fully processed.
Don't use simple rescue form if resbody is a return (statement keyword). (eyberg)
Remove superfluous begin/end for top-level defn rescue.
1 bug fix:
2.0/2.1: Fixed support for **kwsplat. (troessner)
4 minor enhancements:
Add != to list of binary operators. (camertron) *le sigh*
Clean out cruft from process_masgn that I can't reproduce anymore.
Extend process_args to deal with masgn (eg: a.b { |(c, d)| ... }).
Extend process_masgn to deal with both sexps and var lists.
1 bug fix:
Ensure proper parens on rescue subexpressions. (Bocete)
2 bug fixes:
Fixed bug with complex rescue but short enough to trigger 1-liner. (Confusion)
Fixed multiple expressions inside sclass
2 bug fixes:
Fixed attrasgn w/ multiple keys: a[x, y] = z. (derula)
Fixed error w/ attr_* detection when more than 1 ivar/iasgn exist in body.
1 bug fix:
Fixed attr_* generators in cases where the body isn't idiomatic. (robertfeldt)
2 minor enhancements:
1.9: Added support for ! call to go back to (not ...).
2nd and 3rd order testing now uses RubyPraser.for_current_ruby for maximal carnage.
1 bug fix:
On failure (eg ruby 2.0), fall back to compound RubyParser instance for 2nd & 3rd order testing
1 minor enhancement:
Updated to ruby_parser 3.1 and up
1 bug fix:
Fixed dependency on alpha ruby_parser. sigh
1 minor enhancement:
Only do phase 1 testing if $SIMPLE=1.
1 bug fix:
Fixed block args processing for RP 3.0 sexp changes
4 major enhancements:
Made it work without arglist in call.
Made it work without scope/block in class/module/defn/defs.
Removed block from resbody
Removed block from when node
4 minor enhancements:
Added debug task to help isolate an error
Empty hash is now a proper {}
Refactored and added finish method.
Switched to new Ruby18Parser to avoid deprecation warnings
4 bug fixes:
Fixed call with empty hash arg. (neilconway)
OMG WTF... removed long decrepit ParseTree dependency
Removed isolate/rake require to reduce minimum bootstrap to hoe + rake + rake install_plugins (*2)
Skip 1.9 tests for now.
1 minor enhancement:
Added parenthesize to add parens in certain contexts.
10 bug fixes:
Add newline to 'do nothing' comment in a block... seems contrived. (andreacampi)
Binary operations not work properly with some complex statements. (smorss)
Fixed if statements with no body (smorss)
Fixed logic for call with hash args in various locations (smorss)
Fixed match3 on an assignment. (smorss)
Fixed multiple nested rescue/ensure exprs (larsch)
Fixed process_alias to parenthesize (smorss)
Fixed process_and to parenthenize only when it makes sense.
Fixed rescue with 2+ statements in resbody (smorss)
Regexps with options other than /o were not showing flags. (smorss)
1 minor enhancement:
output comments for class and method definitions. (pythonic)
4 minor enhancements:
Added braces to hash args surrounded if in a binary method call.
Added rewrite_resbody to double check structure and freak if necessary.
Added stress task
rewrite_rescue now detects rescue with multiple arguments.
2 bug fixes:
Fixed dstr/dregex/d* roundtripping problem
Fixed up call arg processing to be more correct and to work with the new sexp form
2 bug fixes:
Fixed all doco to use ruby_praser
Fixed bin/r2r_show to use ruby_parser. oops
4 minor enhancements:
Overhauled 4-generation tests to use RubyParser. Much cleaner
Removed last of ParseTree. Fully switched to RubyParser.
Switched to minitest
Updated Rakefile to new hoe capabilities
3 minor enhancements:
Added -s to display sexp before printing r2r
Added a bunch of backslash and masgn tests.
Refactored tests.
4 bug fixes:
Fixed iters to deal with empty bodies.
Fixed process_call for a number of cases incl [], []=, and args processing.
Fixed process_hash to always generate braces if in arglist.
Switched process_alias to producing alias again, needed for globals.
1 bug fix:
Don't freak out and die if passed a c function defn. stupid rails.
2 minor enhancements:
Removed all PT dependent code to PT project (see parse_tree_extensions.rb).
Revamped. Got working with new unified ruby output. Much much cleaner.
5 minor enhancements:
Added more defensive programming in the tests to make it work with 1.9 and rubinius better.
Converted r2r_show to more plain parse style, no more discover_new_classes.
Made Proc#to_sexp and to_ruby more resiliant.
Started to work on fallback to ruby_parser code. Should prolly do flog first.
Updated rakefile and readme format for hoe. Much cleaner!
6 bug fixes:
Added 1.9 fixes.
Added code to tests to isolate rubyinline builds.
Fixed miniunit-deprecated assertions
Fixes for const2/3, esp in class names
Renamed ProcStoreTmp#name to new_name. dur.
Skip proc tests in 1.9 since they require ParseTree.
6 minor enhancements:
Added super awesome .autotest file. YAY!
Removed nil.method_missing... too many ppl bitching about it.
Renamed RubyToRuby (the class name) to Ruby2Ruby.
Restructured self-translation tests so they were friendlier when dying.
Strings are now always one line long only.
Fully in sync with ParseTree and ruby_parser.
2 bug fixes:
Fixed a number of issues/bugs discovered via ruby_parser.
Cleaned out some dead code and hacks we don't need anymore.
2 major enhancements:
Switched to ParseTree's UnifiedRuby... much much cleaner now!
Made test_ruby2ruby MUCH more rigorous with circular testing.
5 minor enhancements:
Add r2r_show command like parse_tree_show.
Add parens for :block nodes as appropriate. May be overzealous.
Make SexpAny work with #==.
Removed calls to processor_stack / caller in favor of self.context.
Some style differences, eschew rescue.
6 bug fixes:
Fix R2R bug with masgn/argscat.
Fixed a bug with new resbody unification.
Fixes for changes to pt_testcase.
Fixes the rest of the tests under strict sexp checking.
Fixed some circular bugs, mostly by hacking them out, wrt operator precidence.
Fixed trinary operator.
2 minor enhancements:
Extended tests for dstr/dsym/drgx to test against embedded slashes and quotes.
Updated for dasgn_curr changes to PT.
2 bug fixes:
Fixed a bug with begin/rescue/ensure.
Fixed argscat and blockpass bug. blah(42, *args, &block) handled.
3 minor enhancements:
Can now heckle ActiveRecord::Base in full.
Cleaned up 1-liner generating code.
Made clean/simple rescues 1-liners.
7 bug fixes:
Finally got the rest of block_pass working.
Fixed block_pass on procs in iters. UGH!
Fixed attrasgn in masgn.
Fixed splat in masgn.
Fixed unary/prefix methods.
Fixed attrasgn for []= where there were multiple args inside [].
Fixed a couple resbody bugs.
4 minor enhancements:
Added some extra rewriting code and tests for various bmethods. Ugh.
Added support for splatted block args.
Refactored class/module and dsym/dstr.
Short if/unless statements are now post-conditional expressions.
4 bug fixes:
Finally fixed eric's nebulous proc code-in-goalposts bug.
Fixed dasgn_curr so block's dasgn vars decl goes away (bug 7420).
Fixed dmethod. I think the tests were bogus before.
Fixed improper end in method rescues (bug 7396).
1 minor enhancement
Unit tests do self-translation and retesting for 3 generations! Solid. BAM!
1 bug fixes
iasgn inside masgn was totally borked in ruby2ruby.
2 minor enhancements
Improved []= and [] to be more idiomatic.
Support for nested whens (from when case has no expression).
3 bug fixes
Fixed case output when there is no case expression.
NEARLY have RubyToRuby self-cloning and passing tests again.
Minor cleanup
3 bug fixes
Fixed procs
Cleaned return when no return values.
Rewrote process_if. No more elsif but no more bugs. :)
2 major enhancements
Released separately from ZenHacks.
Major overhaul/audit from the new ParseTree test infrastructure. Very complete now.
Generated with the Darkfish Rdoc Generator 2.