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

version 0.5.2: corrected ^d behaviour; now performs a throw(:breakout) rather than relying on existence of 'quit' command.

This commit is contained in:
John Mair 2011-02-17 22:56:53 +13:00
parent d3addd8eb8
commit 481a215225
3 changed files with 6 additions and 3 deletions

View file

@ -235,7 +235,7 @@ If you want to access a method of the same name, prefix the invocation by whites
* `status` shows status information about the current session.
* `version` Show Pry version information
* `help` shows the list of session commands with brief explanations.
* `exit` or `quit` or `back` will end the current Pry session and go
* `exit` or `quit` or `back` or `^d` (control-d) will end the current Pry session and go
back to the calling process or back one level of nesting (if there
are nested sessions).
* `ls [OPTIONS] [VAR]` returns a list of local variables, instance variables, and

View file

@ -163,7 +163,10 @@ class Pry
val = readline(current_prompt)
# exit pry if we receive EOF character
val = "quit" if !val
if !val
output.puts
throw(:breakout, nesting.level)
end
val.chomp!

View file

@ -1,3 +1,3 @@
class Pry
VERSION = "0.5.1"
VERSION = "0.5.2"
end