pry 0.9.9.4pre1 → 0.9.9.4
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +1 -0
- data/lib/pry/default_commands/navigating_pry.rb +4 -1
- data/lib/pry/version.rb +1 -1
- data/pry.gemspec +2 -2
- data/test/test_default_commands/test_context.rb +6 -0
- metadata +16 -16
data/CHANGELOG
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
26/4/2012 version 0.9.9.4 major bugfix
|
2
2
|
* fixed `NoMethodError: undefined method `winsize' for #<IO:<STDOUT>>`, bug #549
|
3
3
|
* fixes for jruby
|
4
|
+
* breakage on `exit` syntax error, fixes, #550
|
4
5
|
* heredoc content no longer auto-indented
|
5
6
|
|
6
7
|
19/4/2012 version 0.9.9.3 major doc bugfix
|
@@ -41,11 +41,14 @@ class Pry
|
|
41
41
|
end
|
42
42
|
|
43
43
|
command "exit-all", "End the current Pry session (popping all bindings) and returning to caller. Accepts optional return value. Aliases: !!@" do
|
44
|
+
# calculate user-given value
|
45
|
+
exit_value = target.eval(arg_string)
|
46
|
+
|
44
47
|
# clear the binding stack
|
45
48
|
_pry_.binding_stack.clear
|
46
49
|
|
47
50
|
# break out of the repl loop
|
48
|
-
throw(:breakout,
|
51
|
+
throw(:breakout, exit_value)
|
49
52
|
end
|
50
53
|
|
51
54
|
alias_command "!!@", "exit-all"
|
data/lib/pry/version.rb
CHANGED
data/pry.gemspec
CHANGED
@@ -2,9 +2,9 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = "pry"
|
5
|
-
s.version = "0.9.9.
|
5
|
+
s.version = "0.9.9.4"
|
6
6
|
|
7
|
-
s.required_rubygems_version = Gem::Requirement.new("
|
7
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["John Mair (banisterfiend)"]
|
9
9
|
s.date = "2012-04-26"
|
10
10
|
s.description = "An IRB alternative and runtime developer console"
|
@@ -77,6 +77,12 @@ describe "Pry::DefaultCommands::Context" do
|
|
77
77
|
it 'should break out of the repl loop of Pry instance when binding_stack has only one binding with exit, and return user-given value' do
|
78
78
|
Pry.start(0, :input => StringIO.new("exit :john")).should == :john
|
79
79
|
end
|
80
|
+
|
81
|
+
it 'should break out the repl loop of Pry instance even after an exception in user-given value' do
|
82
|
+
redirect_pry_io(InputTester.new("exit = 42", "exit"), StringIO.new) do
|
83
|
+
ins = Pry.new.tap { |v| v.repl(0).should == nil }
|
84
|
+
end
|
85
|
+
end
|
80
86
|
end
|
81
87
|
|
82
88
|
describe "jump-to" do
|
metadata
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pry
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.9.
|
5
|
-
prerelease:
|
4
|
+
version: 0.9.9.4
|
5
|
+
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- John Mair (banisterfiend)
|
@@ -13,7 +13,7 @@ date: 2012-04-26 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: coderay
|
16
|
-
requirement: &
|
16
|
+
requirement: &70146509151200 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 1.0.5
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70146509151200
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: slop
|
27
|
-
requirement: &
|
27
|
+
requirement: &70146509149520 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -35,10 +35,10 @@ dependencies:
|
|
35
35
|
version: '3'
|
36
36
|
type: :runtime
|
37
37
|
prerelease: false
|
38
|
-
version_requirements: *
|
38
|
+
version_requirements: *70146509149520
|
39
39
|
- !ruby/object:Gem::Dependency
|
40
40
|
name: method_source
|
41
|
-
requirement: &
|
41
|
+
requirement: &70146509146680 !ruby/object:Gem::Requirement
|
42
42
|
none: false
|
43
43
|
requirements:
|
44
44
|
- - ~>
|
@@ -46,10 +46,10 @@ dependencies:
|
|
46
46
|
version: 0.7.1
|
47
47
|
type: :runtime
|
48
48
|
prerelease: false
|
49
|
-
version_requirements: *
|
49
|
+
version_requirements: *70146509146680
|
50
50
|
- !ruby/object:Gem::Dependency
|
51
51
|
name: bacon
|
52
|
-
requirement: &
|
52
|
+
requirement: &70146509157160 !ruby/object:Gem::Requirement
|
53
53
|
none: false
|
54
54
|
requirements:
|
55
55
|
- - ~>
|
@@ -57,10 +57,10 @@ dependencies:
|
|
57
57
|
version: '1.1'
|
58
58
|
type: :development
|
59
59
|
prerelease: false
|
60
|
-
version_requirements: *
|
60
|
+
version_requirements: *70146509157160
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
62
|
name: open4
|
63
|
-
requirement: &
|
63
|
+
requirement: &70146509154460 !ruby/object:Gem::Requirement
|
64
64
|
none: false
|
65
65
|
requirements:
|
66
66
|
- - ~>
|
@@ -68,10 +68,10 @@ dependencies:
|
|
68
68
|
version: '1.3'
|
69
69
|
type: :development
|
70
70
|
prerelease: false
|
71
|
-
version_requirements: *
|
71
|
+
version_requirements: *70146509154460
|
72
72
|
- !ruby/object:Gem::Dependency
|
73
73
|
name: rake
|
74
|
-
requirement: &
|
74
|
+
requirement: &70146509169040 !ruby/object:Gem::Requirement
|
75
75
|
none: false
|
76
76
|
requirements:
|
77
77
|
- - ~>
|
@@ -79,7 +79,7 @@ dependencies:
|
|
79
79
|
version: '0.9'
|
80
80
|
type: :development
|
81
81
|
prerelease: false
|
82
|
-
version_requirements: *
|
82
|
+
version_requirements: *70146509169040
|
83
83
|
description: An IRB alternative and runtime developer console
|
84
84
|
email: jrmair@gmail.com
|
85
85
|
executables:
|
@@ -209,9 +209,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
209
209
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
210
210
|
none: false
|
211
211
|
requirements:
|
212
|
-
- - ! '
|
212
|
+
- - ! '>='
|
213
213
|
- !ruby/object:Gem::Version
|
214
|
-
version:
|
214
|
+
version: '0'
|
215
215
|
requirements: []
|
216
216
|
rubyforge_project:
|
217
217
|
rubygems_version: 1.8.16
|