pry 0.5.1 → 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -235,7 +235,7 @@ If you want to access a method of the same name, prefix the invocation by whites
235
235
  * `status` shows status information about the current session.
236
236
  * `version` Show Pry version information
237
237
  * `help` shows the list of session commands with brief explanations.
238
- * `exit` or `quit` or `back` will end the current Pry session and go
238
+ * `exit` or `quit` or `back` or `^d` (control-d) will end the current Pry session and go
239
239
  back to the calling process or back one level of nesting (if there
240
240
  are nested sessions).
241
241
  * `ls [OPTIONS] [VAR]` returns a list of local variables, instance variables, and
@@ -163,7 +163,10 @@ class Pry
163
163
  val = readline(current_prompt)
164
164
 
165
165
  # exit pry if we receive EOF character
166
- val = "quit" if !val
166
+ if !val
167
+ output.puts
168
+ throw(:breakout, nesting.level)
169
+ end
167
170
 
168
171
  val.chomp!
169
172
 
@@ -1,3 +1,3 @@
1
1
  class Pry
2
- VERSION = "0.5.1"
2
+ VERSION = "0.5.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pry
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -14,7 +14,7 @@ default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: ruby_parser
17
- requirement: &17143128 !ruby/object:Gem::Requirement
17
+ requirement: &17099076 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ! '>='
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: 2.0.5
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *17143128
25
+ version_requirements: *17099076
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: method_source
28
- requirement: &17142852 !ruby/object:Gem::Requirement
28
+ requirement: &17098800 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ! '>='
@@ -33,10 +33,10 @@ dependencies:
33
33
  version: 0.2.0
34
34
  type: :runtime
35
35
  prerelease: false
36
- version_requirements: *17142852
36
+ version_requirements: *17098800
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: bacon
39
- requirement: &17026524 !ruby/object:Gem::Requirement
39
+ requirement: &17098524 !ruby/object:Gem::Requirement
40
40
  none: false
41
41
  requirements:
42
42
  - - ! '>='
@@ -44,7 +44,7 @@ dependencies:
44
44
  version: 1.1.0
45
45
  type: :development
46
46
  prerelease: false
47
- version_requirements: *17026524
47
+ version_requirements: *17098524
48
48
  description: attach an irb-like session to any object at runtime
49
49
  email: jrmair@gmail.com
50
50
  executables: []