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