JEG2/highline — pull request #67 by rsutphin (2013-02-23 01:36:21+00:00)
Title: Use the configured streams on JRuby with JLine

Without this change, the input and output parameters to `HighLine.new` are ignored for `#ask` (both for specifying the input stream and for displaying the prompt).

This addresses issue #31, though not completely — while it allows the tests to run on JRuby, many of them fail.

With this patch applied, the tests run to completion on JRuby 1.7.3:

```
94 tests, 743 assertions, 22 failures, 1 errors, 0 skips
```

On JRuby 1.6.8, they get further than they do without the patch, but many of them error out (as opposed to failing). The test run slows and eventually hangs before completing. The problem on 1.6.8 seems to be that the runner is running out of heap space.

For both JRuby 1.7.3 and 1.6.8, though, HighLine does better with this patch than without it so I'm submitting it for review.