jruby/jruby — pull request #898 by dmarcotte (2013-07-21 17:22:17+00:00)
Title: More arg handling fixes for Enumerable methods

Inspired by #836, I reviewed Enumerable's methods for other places the fix in #807 should be extended to. There were quite a few :)

This fixes almost all of them, focusing on the ones which could be remedied by proper arg packing and/or an arity tweak. Here's what's still outstanding:
- `#chunk`, `#slice_before`, and `#take_while` still misbehave but seem to require deeper fixes
- though most of the problems manifest when `#each` is implemented with a `block.call`, `yield` fails a couple the tests added here (for the methods like `any?` that don't want the args packed into an array)

I'll open separate issues to track those and ideally follow up with fixes.