pry 0.9.8.4-i386-mingw32 → 0.9.9-i386-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/CHANGELOG +26 -0
- data/README.markdown +3 -3
- data/lib/pry.rb +9 -1
- data/lib/pry/code.rb +93 -0
- data/lib/pry/command.rb +35 -22
- data/lib/pry/command_set.rb +97 -67
- data/lib/pry/config.rb +63 -10
- data/lib/pry/core_extensions.rb +24 -18
- data/lib/pry/default_commands/context.rb +72 -12
- data/lib/pry/default_commands/easter_eggs.rb +4 -0
- data/lib/pry/default_commands/editing.rb +43 -15
- data/lib/pry/default_commands/find_method.rb +171 -0
- data/lib/pry/default_commands/hist.rb +10 -6
- data/lib/pry/default_commands/introspection.rb +183 -30
- data/lib/pry/default_commands/ls.rb +77 -7
- data/lib/pry/default_commands/misc.rb +1 -0
- data/lib/pry/default_commands/navigating_pry.rb +1 -8
- data/lib/pry/helpers/base_helpers.rb +10 -2
- data/lib/pry/helpers/command_helpers.rb +23 -40
- data/lib/pry/helpers/documentation_helpers.rb +65 -0
- data/lib/pry/indent.rb +17 -4
- data/lib/pry/method.rb +61 -45
- data/lib/pry/pry_class.rb +9 -3
- data/lib/pry/pry_instance.rb +99 -65
- data/lib/pry/rbx_method.rb +2 -9
- data/lib/pry/version.rb +1 -1
- data/lib/pry/wrapped_module.rb +236 -1
- data/pry.gemspec +5 -5
- data/test/helper.rb +22 -0
- data/test/test_command.rb +29 -0
- data/test/test_command_integration.rb +193 -10
- data/test/test_command_set.rb +82 -17
- data/test/test_default_commands/test_cd.rb +16 -0
- data/test/test_default_commands/test_context.rb +61 -0
- data/test/test_default_commands/test_documentation.rb +163 -43
- data/test/test_default_commands/test_find_method.rb +42 -0
- data/test/test_default_commands/test_input.rb +32 -0
- data/test/test_default_commands/test_introspection.rb +50 -197
- data/test/test_default_commands/test_ls.rb +22 -0
- data/test/test_default_commands/test_show_source.rb +306 -0
- data/test/test_pry.rb +3 -3
- data/test/test_pry_defaults.rb +21 -0
- data/test/test_sticky_locals.rb +81 -1
- data/test/test_syntax_checking.rb +7 -6
- metadata +24 -16
@@ -24,10 +24,11 @@ describe Pry do
|
|
24
24
|
["end"],
|
25
25
|
["puts )("],
|
26
26
|
["1 1"],
|
27
|
-
["puts :"]
|
28
|
-
|
29
|
-
|
30
|
-
|
27
|
+
["puts :"]
|
28
|
+
] + (Pry::Helpers::BaseHelpers.rbx? ? [] : [
|
29
|
+
["def", "method(1"], # in this case the syntax error is "expecting ')'".
|
30
|
+
["o = Object.new.tap{ def o.render;","'MEH'", "}"] # in this case the syntax error is "expecting keyword_end".
|
31
|
+
]).compact.each do |foo|
|
31
32
|
it "should raise an error on invalid syntax like #{foo.inspect}" do
|
32
33
|
output = StringIO.new
|
33
34
|
redirect_pry_io(InputTester.new(*foo), output) do
|
@@ -48,12 +49,12 @@ describe Pry do
|
|
48
49
|
it "should allow trailing , to continue the line" do
|
49
50
|
pry = Pry.new
|
50
51
|
|
51
|
-
|
52
|
+
Pry::Code.complete_expression?("puts 1, 2,").should == false
|
52
53
|
end
|
53
54
|
|
54
55
|
it "should complete an expression that contains a line ending with a ," do
|
55
56
|
pry = Pry.new
|
56
|
-
|
57
|
+
Pry::Code.complete_expression?("puts 1, 2,\n3").should == true
|
57
58
|
end
|
58
59
|
|
59
60
|
it "should not clobber _ex_ on a SyntaxError in the repl" do
|
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.9.
|
4
|
+
version: 0.9.9
|
5
5
|
prerelease:
|
6
6
|
platform: i386-mingw32
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-04-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: coderay
|
16
|
-
requirement: &
|
16
|
+
requirement: &70238792647200 !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: *70238792647200
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: slop
|
27
|
-
requirement: &
|
27
|
+
requirement: &70238792646500 !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: *70238792646500
|
39
39
|
- !ruby/object:Gem::Dependency
|
40
40
|
name: method_source
|
41
|
-
requirement: &
|
41
|
+
requirement: &70238792645620 !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: *70238792645620
|
50
50
|
- !ruby/object:Gem::Dependency
|
51
51
|
name: bacon
|
52
|
-
requirement: &
|
52
|
+
requirement: &70238792645100 !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: *70238792645100
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
62
|
name: open4
|
63
|
-
requirement: &
|
63
|
+
requirement: &70238792644480 !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: *70238792644480
|
72
72
|
- !ruby/object:Gem::Dependency
|
73
73
|
name: rake
|
74
|
-
requirement: &
|
74
|
+
requirement: &70238792643860 !ruby/object:Gem::Requirement
|
75
75
|
none: false
|
76
76
|
requirements:
|
77
77
|
- - ~>
|
@@ -79,10 +79,10 @@ dependencies:
|
|
79
79
|
version: '0.9'
|
80
80
|
type: :development
|
81
81
|
prerelease: false
|
82
|
-
version_requirements: *
|
82
|
+
version_requirements: *70238792643860
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: win32console
|
85
|
-
requirement: &
|
85
|
+
requirement: &70238792643320 !ruby/object:Gem::Requirement
|
86
86
|
none: false
|
87
87
|
requirements:
|
88
88
|
- - ~>
|
@@ -90,7 +90,7 @@ dependencies:
|
|
90
90
|
version: '1.3'
|
91
91
|
type: :runtime
|
92
92
|
prerelease: false
|
93
|
-
version_requirements: *
|
93
|
+
version_requirements: *70238792643320
|
94
94
|
description: An IRB alternative and runtime developer console
|
95
95
|
email: jrmair@gmail.com
|
96
96
|
executables:
|
@@ -137,6 +137,7 @@ files:
|
|
137
137
|
- lib/pry/default_commands/context.rb
|
138
138
|
- lib/pry/default_commands/easter_eggs.rb
|
139
139
|
- lib/pry/default_commands/editing.rb
|
140
|
+
- lib/pry/default_commands/find_method.rb
|
140
141
|
- lib/pry/default_commands/gems.rb
|
141
142
|
- lib/pry/default_commands/help.rb
|
142
143
|
- lib/pry/default_commands/hist.rb
|
@@ -149,6 +150,7 @@ files:
|
|
149
150
|
- lib/pry/helpers.rb
|
150
151
|
- lib/pry/helpers/base_helpers.rb
|
151
152
|
- lib/pry/helpers/command_helpers.rb
|
153
|
+
- lib/pry/helpers/documentation_helpers.rb
|
152
154
|
- lib/pry/helpers/options_helpers.rb
|
153
155
|
- lib/pry/helpers/text.rb
|
154
156
|
- lib/pry/history.rb
|
@@ -175,14 +177,17 @@ files:
|
|
175
177
|
- test/test_command_integration.rb
|
176
178
|
- test/test_command_set.rb
|
177
179
|
- test/test_completion.rb
|
180
|
+
- test/test_default_commands/test_cd.rb
|
178
181
|
- test/test_default_commands/test_context.rb
|
179
182
|
- test/test_default_commands/test_documentation.rb
|
183
|
+
- test/test_default_commands/test_find_method.rb
|
180
184
|
- test/test_default_commands/test_gems.rb
|
181
185
|
- test/test_default_commands/test_help.rb
|
182
186
|
- test/test_default_commands/test_input.rb
|
183
187
|
- test/test_default_commands/test_introspection.rb
|
184
188
|
- test/test_default_commands/test_ls.rb
|
185
189
|
- test/test_default_commands/test_shell.rb
|
190
|
+
- test/test_default_commands/test_show_source.rb
|
186
191
|
- test/test_exception_whitelist.rb
|
187
192
|
- test/test_history_array.rb
|
188
193
|
- test/test_hooks.rb
|
@@ -233,14 +238,17 @@ test_files:
|
|
233
238
|
- test/test_command_integration.rb
|
234
239
|
- test/test_command_set.rb
|
235
240
|
- test/test_completion.rb
|
241
|
+
- test/test_default_commands/test_cd.rb
|
236
242
|
- test/test_default_commands/test_context.rb
|
237
243
|
- test/test_default_commands/test_documentation.rb
|
244
|
+
- test/test_default_commands/test_find_method.rb
|
238
245
|
- test/test_default_commands/test_gems.rb
|
239
246
|
- test/test_default_commands/test_help.rb
|
240
247
|
- test/test_default_commands/test_input.rb
|
241
248
|
- test/test_default_commands/test_introspection.rb
|
242
249
|
- test/test_default_commands/test_ls.rb
|
243
250
|
- test/test_default_commands/test_shell.rb
|
251
|
+
- test/test_default_commands/test_show_source.rb
|
244
252
|
- test/test_exception_whitelist.rb
|
245
253
|
- test/test_history_array.rb
|
246
254
|
- test/test_hooks.rb
|