1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00
Commit graph

6 commits

Author SHA1 Message Date
Conrad Irwin
7b251acd5a Clean line buffer after soiling it with Shift_JIS 2012-08-29 01:23:12 -07:00
Kyrylo Silin
8f3e4555ba Tidy up tests and remove some repeating code
Clean up repeating code on the subject of str_output variable. Fix
indentation in some files and restructure some tests, in order to
ease parsing of files by an eye.

Signed-off-by: Kyrylo Silin <kyrylosilin@gmail.com>
Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
2012-06-11 19:33:04 +02:00
Conrad Irwin
1ae93034da Use a more rbx-friendly test for unicodeness 2012-01-29 00:10:01 -08:00
Conrad Irwin
3bb6cd3a31 Issue 284, Pry should respect input encoding. 2011-10-01 13:19:44 -07:00
John Mair
4e3853ea33 now using 'retry' (in read loop) to switch input objects in input_stack
This is so we can make the switch to the new input object seemless on encountering EOFError in previous input object.
We also detect whether we are going to go into an infinite EOFError state (i.e if Pry.config.input generates EOFError) and so we break out of the REPL with an error message
and a throw(:breakout)
2011-09-16 03:27:19 +12:00
John Mair
5a274b26df added input_stack support to Pry
input_stack allows Pry instances to seemlessly continue reading input from other input objects on the stack when the current object generates EOF
Useful when you need to temporarily divert reading to another object and then switch back to another object
2011-09-15 21:10:37 +12:00