pry 0.9.10 → 0.9.11
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +3 -1
- data/CHANGELOG +60 -1
- data/CONTRIBUTORS +43 -25
- data/Gemfile +7 -0
- data/Guardfile +62 -0
- data/README.markdown +4 -4
- data/Rakefile +34 -35
- data/lib/pry.rb +107 -54
- data/lib/pry/cli.rb +34 -11
- data/lib/pry/code.rb +165 -182
- data/lib/pry/code/code_range.rb +70 -0
- data/lib/pry/code/loc.rb +92 -0
- data/lib/pry/code_object.rb +153 -0
- data/lib/pry/command.rb +160 -22
- data/lib/pry/command_set.rb +37 -26
- data/lib/pry/commands.rb +4 -27
- data/lib/pry/commands/amend_line.rb +99 -0
- data/lib/pry/commands/bang.rb +20 -0
- data/lib/pry/commands/bang_pry.rb +17 -0
- data/lib/pry/commands/cat.rb +53 -0
- data/lib/pry/commands/cat/abstract_formatter.rb +27 -0
- data/lib/pry/commands/cat/exception_formatter.rb +78 -0
- data/lib/pry/commands/cat/file_formatter.rb +84 -0
- data/lib/pry/commands/cat/input_expression_formatter.rb +43 -0
- data/lib/pry/commands/cd.rb +30 -0
- data/lib/pry/commands/code_collector.rb +165 -0
- data/lib/pry/commands/deprecated_commands.rb +2 -0
- data/lib/pry/commands/disable_pry.rb +27 -0
- data/lib/pry/commands/easter_eggs.rb +112 -0
- data/lib/pry/commands/edit.rb +206 -0
- data/lib/pry/commands/edit/exception_patcher.rb +25 -0
- data/lib/pry/commands/edit/file_and_line_locator.rb +38 -0
- data/lib/pry/commands/edit/method_patcher.rb +122 -0
- data/lib/pry/commands/exit.rb +42 -0
- data/lib/pry/commands/exit_all.rb +29 -0
- data/lib/pry/commands/exit_program.rb +24 -0
- data/lib/pry/commands/find_method.rb +199 -0
- data/lib/pry/commands/fix_indent.rb +19 -0
- data/lib/pry/commands/gem_cd.rb +26 -0
- data/lib/pry/commands/gem_install.rb +29 -0
- data/lib/pry/commands/gem_list.rb +33 -0
- data/lib/pry/commands/gem_open.rb +29 -0
- data/lib/pry/commands/gist.rb +95 -0
- data/lib/pry/commands/help.rb +164 -0
- data/lib/pry/commands/hist.rb +161 -0
- data/lib/pry/commands/import_set.rb +22 -0
- data/lib/pry/commands/install_command.rb +51 -0
- data/lib/pry/commands/jump_to.rb +29 -0
- data/lib/pry/commands/ls.rb +339 -0
- data/lib/pry/commands/nesting.rb +25 -0
- data/lib/pry/commands/play.rb +69 -0
- data/lib/pry/commands/pry_backtrace.rb +26 -0
- data/lib/pry/commands/pry_version.rb +17 -0
- data/lib/pry/commands/raise_up.rb +32 -0
- data/lib/pry/commands/reload_code.rb +39 -0
- data/lib/pry/commands/reset.rb +18 -0
- data/lib/pry/commands/ri.rb +56 -0
- data/lib/pry/commands/save_file.rb +61 -0
- data/lib/pry/commands/shell_command.rb +43 -0
- data/lib/pry/commands/shell_mode.rb +27 -0
- data/lib/pry/commands/show_doc.rb +78 -0
- data/lib/pry/commands/show_info.rb +139 -0
- data/lib/pry/commands/show_input.rb +17 -0
- data/lib/pry/commands/show_source.rb +37 -0
- data/lib/pry/commands/simple_prompt.rb +22 -0
- data/lib/pry/commands/stat.rb +40 -0
- data/lib/pry/commands/switch_to.rb +23 -0
- data/lib/pry/commands/toggle_color.rb +20 -0
- data/lib/pry/commands/whereami.rb +114 -0
- data/lib/pry/commands/wtf.rb +57 -0
- data/lib/pry/completion.rb +120 -46
- data/lib/pry/config.rb +11 -0
- data/lib/pry/core_extensions.rb +27 -16
- data/lib/pry/editor.rb +129 -0
- data/lib/pry/helpers.rb +1 -0
- data/lib/pry/helpers/base_helpers.rb +89 -119
- data/lib/pry/helpers/command_helpers.rb +6 -121
- data/lib/pry/helpers/table.rb +100 -0
- data/lib/pry/helpers/text.rb +4 -4
- data/lib/pry/history_array.rb +5 -0
- data/lib/pry/hooks.rb +1 -3
- data/lib/pry/indent.rb +104 -30
- data/lib/pry/method.rb +66 -22
- data/lib/pry/module_candidate.rb +26 -15
- data/lib/pry/pager.rb +70 -0
- data/lib/pry/plugins.rb +1 -2
- data/lib/pry/pry_class.rb +63 -22
- data/lib/pry/pry_instance.rb +58 -37
- data/lib/pry/rubygem.rb +74 -0
- data/lib/pry/terminal_info.rb +43 -0
- data/lib/pry/test/helper.rb +185 -0
- data/lib/pry/version.rb +1 -1
- data/lib/pry/wrapped_module.rb +58 -24
- data/pry.gemspec +21 -37
- data/{test/test_cli.rb → spec/cli_spec.rb} +0 -0
- data/spec/code_object_spec.rb +277 -0
- data/{test/test_code.rb → spec/code_spec.rb} +19 -1
- data/{test/test_command_helpers.rb → spec/command_helpers_spec.rb} +0 -0
- data/{test/test_command_integration.rb → spec/command_integration_spec.rb} +38 -46
- data/{test/test_command_set.rb → spec/command_set_spec.rb} +18 -1
- data/{test/test_command.rb → spec/command_spec.rb} +250 -149
- data/spec/commands/amend_line_spec.rb +247 -0
- data/spec/commands/bang_spec.rb +19 -0
- data/spec/commands/cat_spec.rb +164 -0
- data/spec/commands/cd_spec.rb +250 -0
- data/spec/commands/disable_pry_spec.rb +25 -0
- data/spec/commands/edit_spec.rb +727 -0
- data/spec/commands/exit_all_spec.rb +34 -0
- data/spec/commands/exit_program_spec.rb +19 -0
- data/spec/commands/exit_spec.rb +34 -0
- data/{test/test_default_commands/test_find_method.rb → spec/commands/find_method_spec.rb} +27 -7
- data/spec/commands/gem_list_spec.rb +26 -0
- data/spec/commands/gist_spec.rb +75 -0
- data/{test/test_default_commands/test_help.rb → spec/commands/help_spec.rb} +8 -9
- data/spec/commands/hist_spec.rb +181 -0
- data/spec/commands/jump_to_spec.rb +15 -0
- data/spec/commands/ls_spec.rb +177 -0
- data/spec/commands/play_spec.rb +140 -0
- data/spec/commands/raise_up_spec.rb +56 -0
- data/spec/commands/save_file_spec.rb +177 -0
- data/spec/commands/show_doc_spec.rb +378 -0
- data/spec/commands/show_input_spec.rb +17 -0
- data/spec/commands/show_source_spec.rb +597 -0
- data/spec/commands/whereami_spec.rb +154 -0
- data/spec/completion_spec.rb +233 -0
- data/spec/control_d_handler_spec.rb +58 -0
- data/spec/editor_spec.rb +79 -0
- data/{test/test_exception_whitelist.rb → spec/exception_whitelist_spec.rb} +0 -0
- data/{test → spec/fixtures}/candidate_helper1.rb +0 -0
- data/{test → spec/fixtures}/candidate_helper2.rb +0 -0
- data/{test/test_default_commands → spec/fixtures}/example.erb +0 -0
- data/spec/fixtures/example_nesting.rb +33 -0
- data/spec/fixtures/show_source_doc_examples.rb +15 -0
- data/{test → spec/fixtures}/testrc +0 -0
- data/{test → spec/fixtures}/testrcbad +0 -0
- data/spec/helper.rb +34 -0
- data/spec/helpers/bacon.rb +86 -0
- data/spec/helpers/mock_pry.rb +43 -0
- data/spec/helpers/table_spec.rb +83 -0
- data/{test/test_history_array.rb → spec/history_array_spec.rb} +21 -19
- data/{test/test_hooks.rb → spec/hooks_spec.rb} +0 -0
- data/{test/test_indent.rb → spec/indent_spec.rb} +24 -0
- data/{test/test_input_stack.rb → spec/input_stack_spec.rb} +4 -0
- data/{test/test_method.rb → spec/method_spec.rb} +65 -1
- data/{test/test_prompt.rb → spec/prompt_spec.rb} +0 -0
- data/{test/test_pry_defaults.rb → spec/pry_defaults_spec.rb} +14 -14
- data/{test/test_pry_history.rb → spec/pry_history_spec.rb} +15 -0
- data/spec/pry_output_spec.rb +95 -0
- data/{test/test_pry.rb → spec/pry_spec.rb} +74 -32
- data/{test/test_sticky_locals.rb → spec/sticky_locals_spec.rb} +27 -25
- data/{test/test_syntax_checking.rb → spec/syntax_checking_spec.rb} +17 -1
- data/{test/test_wrapped_module.rb → spec/wrapped_module_spec.rb} +92 -5
- metadata +236 -112
- data/examples/example_basic.rb +0 -15
- data/examples/example_command_override.rb +0 -32
- data/examples/example_commands.rb +0 -36
- data/examples/example_hooks.rb +0 -9
- data/examples/example_image_edit.rb +0 -67
- data/examples/example_input.rb +0 -7
- data/examples/example_input2.rb +0 -29
- data/examples/example_output.rb +0 -11
- data/examples/example_print.rb +0 -6
- data/examples/example_prompt.rb +0 -9
- data/examples/helper.rb +0 -6
- data/lib/pry/default_commands/cd.rb +0 -81
- data/lib/pry/default_commands/commands.rb +0 -62
- data/lib/pry/default_commands/context.rb +0 -98
- data/lib/pry/default_commands/easter_eggs.rb +0 -95
- data/lib/pry/default_commands/editing.rb +0 -420
- data/lib/pry/default_commands/find_method.rb +0 -169
- data/lib/pry/default_commands/gems.rb +0 -84
- data/lib/pry/default_commands/gist.rb +0 -187
- data/lib/pry/default_commands/help.rb +0 -127
- data/lib/pry/default_commands/hist.rb +0 -120
- data/lib/pry/default_commands/input_and_output.rb +0 -306
- data/lib/pry/default_commands/introspection.rb +0 -410
- data/lib/pry/default_commands/ls.rb +0 -272
- data/lib/pry/default_commands/misc.rb +0 -38
- data/lib/pry/default_commands/navigating_pry.rb +0 -110
- data/lib/pry/default_commands/whereami.rb +0 -92
- data/lib/pry/extended_commands/experimental.rb +0 -7
- data/test/helper.rb +0 -223
- data/test/test_completion.rb +0 -62
- data/test/test_control_d_handler.rb +0 -45
- data/test/test_default_commands/test_cd.rb +0 -321
- data/test/test_default_commands/test_context.rb +0 -288
- data/test/test_default_commands/test_documentation.rb +0 -315
- data/test/test_default_commands/test_gems.rb +0 -18
- data/test/test_default_commands/test_input.rb +0 -428
- data/test/test_default_commands/test_introspection.rb +0 -511
- data/test/test_default_commands/test_ls.rb +0 -151
- data/test/test_default_commands/test_shell.rb +0 -343
- data/test/test_default_commands/test_show_source.rb +0 -432
- data/test/test_pry_output.rb +0 -41
@@ -2,23 +2,27 @@ require 'helper'
|
|
2
2
|
|
3
3
|
describe "Sticky locals (_file_ and friends)" do
|
4
4
|
it 'locals should all exist upon initialization' do
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
mock_pry("_pry_").should.not =~ /NameError/
|
9
|
-
mock_pry("_").should.not =~ /NameError/
|
5
|
+
proc {
|
6
|
+
pry_eval '_file_', '_dir_', '_ex_', '_pry_', '_'
|
7
|
+
}.should.not.raise(NameError)
|
10
8
|
end
|
11
9
|
|
12
10
|
it 'locals should still exist after cd-ing into a new context' do
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
mock_pry("cd 0","_pry_").should.not =~ /NameError/
|
17
|
-
mock_pry("cd 0","_").should.not =~ /NameError/
|
11
|
+
proc {
|
12
|
+
pry_eval 'cd 0', '_file_', '_dir_', '_ex_', '_pry_', '_'
|
13
|
+
}.should.not.raise(NameError)
|
18
14
|
end
|
19
15
|
|
20
|
-
it 'locals should keep value after cd-ing(_pry_
|
21
|
-
|
16
|
+
it 'locals should keep value after cd-ing (_pry_)' do
|
17
|
+
pry_tester.tap do |t|
|
18
|
+
pry = t.eval '_pry_'
|
19
|
+
t.eval 'cd 0'
|
20
|
+
t.eval('_pry_').should == pry
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
# Using mock_pry here until we figure out exception handling
|
25
|
+
it 'locals should keep value after cd-ing (_ex_)' do
|
22
26
|
mock_pry("error blah;", "$x = _ex_;", "cd 0", "_ex_ == $x").should =~ /true/
|
23
27
|
end
|
24
28
|
|
@@ -27,8 +31,12 @@ describe "Sticky locals (_file_ and friends)" do
|
|
27
31
|
set_file_and_dir_locals("/blah/ostrich.rb")
|
28
32
|
end
|
29
33
|
|
30
|
-
|
31
|
-
|
34
|
+
pry_eval('file-and-dir-test', 'cd 0', '_file_').
|
35
|
+
should =~ /\/blah\/ostrich\.rb/
|
36
|
+
|
37
|
+
pry_eval('file-and-dir-test', 'cd 0', '_dir_').
|
38
|
+
should =~ /\/blah/
|
39
|
+
|
32
40
|
Pry.commands.delete "file-and-dir-test"
|
33
41
|
end
|
34
42
|
|
@@ -138,17 +146,11 @@ describe "Sticky locals (_file_ and friends)" do
|
|
138
146
|
end
|
139
147
|
|
140
148
|
it 'should provide different values for successive block invocations' do
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
"@value2 = test_local", "exit-all")
|
147
|
-
pi.output = StringIO.new
|
148
|
-
pi.repl(o)
|
149
|
-
|
150
|
-
o.instance_variable_get(:@value1).should == 1
|
151
|
-
o.instance_variable_get(:@value2).should == 2
|
149
|
+
pry = Pry.new
|
150
|
+
pry.add_sticky_local(:test_local) { rand }
|
151
|
+
value1 = pry.evaluate_ruby 'test_local'
|
152
|
+
value2 = pry.evaluate_ruby 'test_local'
|
153
|
+
value1.should.not == value2
|
152
154
|
end
|
153
155
|
end
|
154
156
|
|
@@ -59,7 +59,23 @@ describe Pry do
|
|
59
59
|
Pry::Code.complete_expression?("puts 1, 2,\n3").should == true
|
60
60
|
end
|
61
61
|
|
62
|
+
it "should not suppress the error output if the line ends in ;" do
|
63
|
+
mock_pry("raise RuntimeError, 'foo';").should =~ /RuntimeError/
|
64
|
+
end
|
65
|
+
|
62
66
|
it "should not clobber _ex_ on a SyntaxError in the repl" do
|
63
|
-
mock_pry("raise RuntimeError, 'foo'
|
67
|
+
mock_pry("raise RuntimeError, 'foo'", "puts foo)", "_ex_.is_a?(RuntimeError)").should =~ /^RuntimeError.*\nSyntaxError.*\n=> true/m
|
68
|
+
end
|
69
|
+
|
70
|
+
it "should allow whitespace delimeted strings" do
|
71
|
+
mock_pry('"%s" %% foo ').should =~ /"foo"/
|
72
|
+
end
|
73
|
+
|
74
|
+
it "should allow newline delimeted strings" do
|
75
|
+
mock_pry('"%s" %%','foo').should =~ /"foo"/
|
76
|
+
end
|
77
|
+
|
78
|
+
it "should allow whitespace delimeted strings ending on the first char of a line" do
|
79
|
+
mock_pry('"%s" %% ', ' #done!').should =~ /"\\n"/
|
64
80
|
end
|
65
81
|
end
|
@@ -11,10 +11,8 @@ describe Pry::WrappedModule do
|
|
11
11
|
describe "candidates" do
|
12
12
|
before do
|
13
13
|
class Host
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
source_files.each do |file|
|
14
|
+
%w(spec/fixtures/candidate_helper1.rb
|
15
|
+
spec/fixtures/candidate_helper2.rb).each do |file|
|
18
16
|
binding.eval File.read(file), file, 1
|
19
17
|
end
|
20
18
|
|
@@ -25,6 +23,13 @@ describe Pry::WrappedModule do
|
|
25
23
|
end
|
26
24
|
|
27
25
|
class ForeverAlone
|
26
|
+
class DoublyNested
|
27
|
+
# nested docs
|
28
|
+
class TriplyNested
|
29
|
+
def nested_method
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
28
33
|
end
|
29
34
|
end
|
30
35
|
end
|
@@ -85,6 +90,11 @@ describe Pry::WrappedModule do
|
|
85
90
|
it 'should return source for third ranked candidate' do
|
86
91
|
Pry::WrappedModule(Host::CandidateTest).candidate(2).source.should =~ /test6/
|
87
92
|
end
|
93
|
+
|
94
|
+
it 'should return source for deeply nested class' do
|
95
|
+
Pry::WrappedModule(Host::ForeverAlone::DoublyNested::TriplyNested).source.should =~ /nested_method/
|
96
|
+
Pry::WrappedModule(Host::ForeverAlone::DoublyNested::TriplyNested).source.lines.count.should == 4
|
97
|
+
end
|
88
98
|
end
|
89
99
|
|
90
100
|
describe "doc" do
|
@@ -104,6 +114,10 @@ describe Pry::WrappedModule do
|
|
104
114
|
it 'should return doc for third ranked candidate' do
|
105
115
|
Pry::WrappedModule(Host::CandidateTest).candidate(2).doc.should =~ /rank 2/
|
106
116
|
end
|
117
|
+
|
118
|
+
it 'should return docs for deeply nested class' do
|
119
|
+
Pry::WrappedModule(Host::ForeverAlone::DoublyNested::TriplyNested).doc.should =~ /nested docs/
|
120
|
+
end
|
107
121
|
end
|
108
122
|
|
109
123
|
after do
|
@@ -170,5 +184,78 @@ describe Pry::WrappedModule do
|
|
170
184
|
Pry::WrappedModule.new(class << Object; self; end).singleton_instance.should.equal?(Object)
|
171
185
|
end
|
172
186
|
end
|
173
|
-
end
|
174
187
|
|
188
|
+
describe ".super" do
|
189
|
+
describe "receiver is a class" do
|
190
|
+
before do
|
191
|
+
@a = Class.new
|
192
|
+
@m = Module.new
|
193
|
+
@b = Class.new(@a)
|
194
|
+
@b.send(:include, @m)
|
195
|
+
@c = Class.new(@b)
|
196
|
+
end
|
197
|
+
|
198
|
+
it 'should return superclass for a wrapped class' do
|
199
|
+
Pry::WrappedModule(@c).super.wrapped.should == @b
|
200
|
+
end
|
201
|
+
|
202
|
+
it 'should return nth superclass for a wrapped class' do
|
203
|
+
d = Class.new(@c)
|
204
|
+
Pry::WrappedModule(d).super(2).wrapped.should == @b
|
205
|
+
end
|
206
|
+
|
207
|
+
it 'should ignore modules when retrieving nth superclass' do
|
208
|
+
Pry::WrappedModule(@c).super(2).wrapped.should == @a
|
209
|
+
end
|
210
|
+
|
211
|
+
it 'should return nil when no nth superclass exists' do
|
212
|
+
Pry::WrappedModule(@c).super(10).should == nil
|
213
|
+
end
|
214
|
+
|
215
|
+
it 'should return self when .super(0) is used' do
|
216
|
+
c = Pry::WrappedModule(@c)
|
217
|
+
c.super(0).should == c
|
218
|
+
end
|
219
|
+
end
|
220
|
+
|
221
|
+
describe "receiver is a module" do
|
222
|
+
before do
|
223
|
+
@m1 = Module.new
|
224
|
+
@m2 = Module.new.tap { |v| v.send(:include, @m1) }
|
225
|
+
@m3 = Module.new.tap { |v| v.send(:include, @m2) }
|
226
|
+
end
|
227
|
+
|
228
|
+
it 'should not ignore modules when retrieving supers' do
|
229
|
+
Pry::WrappedModule(@m3).super.wrapped.should == @m2
|
230
|
+
end
|
231
|
+
|
232
|
+
it 'should retrieve nth super' do
|
233
|
+
Pry::WrappedModule(@m3).super(2).wrapped.should == @m1
|
234
|
+
end
|
235
|
+
|
236
|
+
it 'should return self when .super(0) is used' do
|
237
|
+
m = Pry::WrappedModule(@m1)
|
238
|
+
m.super(0).should == m
|
239
|
+
end
|
240
|
+
end
|
241
|
+
end
|
242
|
+
|
243
|
+
describe ".from_str" do
|
244
|
+
it 'should lookup a constant' do
|
245
|
+
m = Pry::WrappedModule.from_str("Host::CandidateTest", binding)
|
246
|
+
m.wrapped.should == Host::CandidateTest
|
247
|
+
end
|
248
|
+
|
249
|
+
it 'should lookup a local' do
|
250
|
+
local = Host::CandidateTest
|
251
|
+
m = Pry::WrappedModule.from_str("local", binding)
|
252
|
+
m.wrapped.should == Host::CandidateTest
|
253
|
+
end
|
254
|
+
|
255
|
+
it 'should lookup an ivar' do
|
256
|
+
@ivar = Host::CandidateTest
|
257
|
+
m = Pry::WrappedModule.from_str("@ivar", binding)
|
258
|
+
m.wrapped.should == Host::CandidateTest
|
259
|
+
end
|
260
|
+
end
|
261
|
+
end
|
metadata
CHANGED
@@ -1,16 +1,17 @@
|
|
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.11
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- John Mair (banisterfiend)
|
9
9
|
- Conrad Irwin
|
10
|
+
- Ryan Fitzgerald
|
10
11
|
autorequire:
|
11
12
|
bindir: bin
|
12
13
|
cert_chain: []
|
13
|
-
date:
|
14
|
+
date: 2013-01-16 00:00:00.000000000 Z
|
14
15
|
dependencies:
|
15
16
|
- !ruby/object:Gem::Dependency
|
16
17
|
name: coderay
|
@@ -35,7 +36,7 @@ dependencies:
|
|
35
36
|
requirements:
|
36
37
|
- - ~>
|
37
38
|
- !ruby/object:Gem::Version
|
38
|
-
version: 3.
|
39
|
+
version: '3.4'
|
39
40
|
type: :runtime
|
40
41
|
prerelease: false
|
41
42
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -43,7 +44,7 @@ dependencies:
|
|
43
44
|
requirements:
|
44
45
|
- - ~>
|
45
46
|
- !ruby/object:Gem::Version
|
46
|
-
version: 3.
|
47
|
+
version: '3.4'
|
47
48
|
- !ruby/object:Gem::Dependency
|
48
49
|
name: method_source
|
49
50
|
requirement: !ruby/object:Gem::Requirement
|
@@ -67,7 +68,7 @@ dependencies:
|
|
67
68
|
requirements:
|
68
69
|
- - ~>
|
69
70
|
- !ruby/object:Gem::Version
|
70
|
-
version: '1.
|
71
|
+
version: '1.2'
|
71
72
|
type: :development
|
72
73
|
prerelease: false
|
73
74
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -75,7 +76,7 @@ dependencies:
|
|
75
76
|
requirements:
|
76
77
|
- - ~>
|
77
78
|
- !ruby/object:Gem::Version
|
78
|
-
version: '1.
|
79
|
+
version: '1.2'
|
79
80
|
- !ruby/object:Gem::Dependency
|
80
81
|
name: open4
|
81
82
|
requirement: !ruby/object:Gem::Requirement
|
@@ -108,10 +109,59 @@ dependencies:
|
|
108
109
|
- - ~>
|
109
110
|
- !ruby/object:Gem::Version
|
110
111
|
version: '0.9'
|
112
|
+
- !ruby/object:Gem::Dependency
|
113
|
+
name: guard
|
114
|
+
requirement: !ruby/object:Gem::Requirement
|
115
|
+
none: false
|
116
|
+
requirements:
|
117
|
+
- - ~>
|
118
|
+
- !ruby/object:Gem::Version
|
119
|
+
version: 1.3.2
|
120
|
+
type: :development
|
121
|
+
prerelease: false
|
122
|
+
version_requirements: !ruby/object:Gem::Requirement
|
123
|
+
none: false
|
124
|
+
requirements:
|
125
|
+
- - ~>
|
126
|
+
- !ruby/object:Gem::Version
|
127
|
+
version: 1.3.2
|
128
|
+
- !ruby/object:Gem::Dependency
|
129
|
+
name: mocha
|
130
|
+
requirement: !ruby/object:Gem::Requirement
|
131
|
+
none: false
|
132
|
+
requirements:
|
133
|
+
- - ~>
|
134
|
+
- !ruby/object:Gem::Version
|
135
|
+
version: 0.13.1
|
136
|
+
type: :development
|
137
|
+
prerelease: false
|
138
|
+
version_requirements: !ruby/object:Gem::Requirement
|
139
|
+
none: false
|
140
|
+
requirements:
|
141
|
+
- - ~>
|
142
|
+
- !ruby/object:Gem::Version
|
143
|
+
version: 0.13.1
|
144
|
+
- !ruby/object:Gem::Dependency
|
145
|
+
name: bond
|
146
|
+
requirement: !ruby/object:Gem::Requirement
|
147
|
+
none: false
|
148
|
+
requirements:
|
149
|
+
- - ~>
|
150
|
+
- !ruby/object:Gem::Version
|
151
|
+
version: 0.4.2
|
152
|
+
type: :development
|
153
|
+
prerelease: false
|
154
|
+
version_requirements: !ruby/object:Gem::Requirement
|
155
|
+
none: false
|
156
|
+
requirements:
|
157
|
+
- - ~>
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: 0.4.2
|
111
160
|
description: An IRB alternative and runtime developer console
|
112
161
|
email:
|
113
162
|
- jrmair@gmail.com
|
114
163
|
- conrad.irwin@gmail.com
|
164
|
+
- rwfitzge@gmail.com
|
115
165
|
executables:
|
116
166
|
- pry
|
117
167
|
extensions: []
|
@@ -125,54 +175,86 @@ files:
|
|
125
175
|
- CHANGELOG
|
126
176
|
- CONTRIBUTORS
|
127
177
|
- Gemfile
|
178
|
+
- Guardfile
|
128
179
|
- LICENSE
|
129
180
|
- README.markdown
|
130
181
|
- Rakefile
|
131
182
|
- TODO
|
132
183
|
- bin/pry
|
133
|
-
- examples/example_basic.rb
|
134
|
-
- examples/example_command_override.rb
|
135
|
-
- examples/example_commands.rb
|
136
|
-
- examples/example_hooks.rb
|
137
|
-
- examples/example_image_edit.rb
|
138
|
-
- examples/example_input.rb
|
139
|
-
- examples/example_input2.rb
|
140
|
-
- examples/example_output.rb
|
141
|
-
- examples/example_print.rb
|
142
|
-
- examples/example_prompt.rb
|
143
|
-
- examples/helper.rb
|
144
184
|
- lib/pry.rb
|
145
185
|
- lib/pry/cli.rb
|
146
186
|
- lib/pry/code.rb
|
187
|
+
- lib/pry/code/code_range.rb
|
188
|
+
- lib/pry/code/loc.rb
|
189
|
+
- lib/pry/code_object.rb
|
147
190
|
- lib/pry/command.rb
|
148
191
|
- lib/pry/command_set.rb
|
149
192
|
- lib/pry/commands.rb
|
193
|
+
- lib/pry/commands/amend_line.rb
|
194
|
+
- lib/pry/commands/bang.rb
|
195
|
+
- lib/pry/commands/bang_pry.rb
|
196
|
+
- lib/pry/commands/cat.rb
|
197
|
+
- lib/pry/commands/cat/abstract_formatter.rb
|
198
|
+
- lib/pry/commands/cat/exception_formatter.rb
|
199
|
+
- lib/pry/commands/cat/file_formatter.rb
|
200
|
+
- lib/pry/commands/cat/input_expression_formatter.rb
|
201
|
+
- lib/pry/commands/cd.rb
|
202
|
+
- lib/pry/commands/code_collector.rb
|
203
|
+
- lib/pry/commands/deprecated_commands.rb
|
204
|
+
- lib/pry/commands/disable_pry.rb
|
205
|
+
- lib/pry/commands/easter_eggs.rb
|
206
|
+
- lib/pry/commands/edit.rb
|
207
|
+
- lib/pry/commands/edit/exception_patcher.rb
|
208
|
+
- lib/pry/commands/edit/file_and_line_locator.rb
|
209
|
+
- lib/pry/commands/edit/method_patcher.rb
|
210
|
+
- lib/pry/commands/exit.rb
|
211
|
+
- lib/pry/commands/exit_all.rb
|
212
|
+
- lib/pry/commands/exit_program.rb
|
213
|
+
- lib/pry/commands/find_method.rb
|
214
|
+
- lib/pry/commands/fix_indent.rb
|
215
|
+
- lib/pry/commands/gem_cd.rb
|
216
|
+
- lib/pry/commands/gem_install.rb
|
217
|
+
- lib/pry/commands/gem_list.rb
|
218
|
+
- lib/pry/commands/gem_open.rb
|
219
|
+
- lib/pry/commands/gist.rb
|
220
|
+
- lib/pry/commands/help.rb
|
221
|
+
- lib/pry/commands/hist.rb
|
222
|
+
- lib/pry/commands/import_set.rb
|
223
|
+
- lib/pry/commands/install_command.rb
|
224
|
+
- lib/pry/commands/jump_to.rb
|
225
|
+
- lib/pry/commands/ls.rb
|
226
|
+
- lib/pry/commands/nesting.rb
|
227
|
+
- lib/pry/commands/play.rb
|
228
|
+
- lib/pry/commands/pry_backtrace.rb
|
229
|
+
- lib/pry/commands/pry_version.rb
|
230
|
+
- lib/pry/commands/raise_up.rb
|
231
|
+
- lib/pry/commands/reload_code.rb
|
232
|
+
- lib/pry/commands/reset.rb
|
233
|
+
- lib/pry/commands/ri.rb
|
234
|
+
- lib/pry/commands/save_file.rb
|
235
|
+
- lib/pry/commands/shell_command.rb
|
236
|
+
- lib/pry/commands/shell_mode.rb
|
237
|
+
- lib/pry/commands/show_doc.rb
|
238
|
+
- lib/pry/commands/show_info.rb
|
239
|
+
- lib/pry/commands/show_input.rb
|
240
|
+
- lib/pry/commands/show_source.rb
|
241
|
+
- lib/pry/commands/simple_prompt.rb
|
242
|
+
- lib/pry/commands/stat.rb
|
243
|
+
- lib/pry/commands/switch_to.rb
|
244
|
+
- lib/pry/commands/toggle_color.rb
|
245
|
+
- lib/pry/commands/whereami.rb
|
246
|
+
- lib/pry/commands/wtf.rb
|
150
247
|
- lib/pry/completion.rb
|
151
248
|
- lib/pry/config.rb
|
152
249
|
- lib/pry/core_extensions.rb
|
153
250
|
- lib/pry/custom_completions.rb
|
154
|
-
- lib/pry/
|
155
|
-
- lib/pry/default_commands/commands.rb
|
156
|
-
- lib/pry/default_commands/context.rb
|
157
|
-
- lib/pry/default_commands/easter_eggs.rb
|
158
|
-
- lib/pry/default_commands/editing.rb
|
159
|
-
- lib/pry/default_commands/find_method.rb
|
160
|
-
- lib/pry/default_commands/gems.rb
|
161
|
-
- lib/pry/default_commands/gist.rb
|
162
|
-
- lib/pry/default_commands/help.rb
|
163
|
-
- lib/pry/default_commands/hist.rb
|
164
|
-
- lib/pry/default_commands/input_and_output.rb
|
165
|
-
- lib/pry/default_commands/introspection.rb
|
166
|
-
- lib/pry/default_commands/ls.rb
|
167
|
-
- lib/pry/default_commands/misc.rb
|
168
|
-
- lib/pry/default_commands/navigating_pry.rb
|
169
|
-
- lib/pry/default_commands/whereami.rb
|
170
|
-
- lib/pry/extended_commands/experimental.rb
|
251
|
+
- lib/pry/editor.rb
|
171
252
|
- lib/pry/helpers.rb
|
172
253
|
- lib/pry/helpers/base_helpers.rb
|
173
254
|
- lib/pry/helpers/command_helpers.rb
|
174
255
|
- lib/pry/helpers/documentation_helpers.rb
|
175
256
|
- lib/pry/helpers/options_helpers.rb
|
257
|
+
- lib/pry/helpers/table.rb
|
176
258
|
- lib/pry/helpers/text.rb
|
177
259
|
- lib/pry/history.rb
|
178
260
|
- lib/pry/history_array.rb
|
@@ -180,57 +262,80 @@ files:
|
|
180
262
|
- lib/pry/indent.rb
|
181
263
|
- lib/pry/method.rb
|
182
264
|
- lib/pry/module_candidate.rb
|
265
|
+
- lib/pry/pager.rb
|
183
266
|
- lib/pry/plugins.rb
|
184
267
|
- lib/pry/pry_class.rb
|
185
268
|
- lib/pry/pry_instance.rb
|
186
269
|
- lib/pry/rbx_method.rb
|
187
270
|
- lib/pry/rbx_path.rb
|
188
271
|
- lib/pry/repl_file_loader.rb
|
272
|
+
- lib/pry/rubygem.rb
|
273
|
+
- lib/pry/terminal_info.rb
|
274
|
+
- lib/pry/test/helper.rb
|
189
275
|
- lib/pry/version.rb
|
190
276
|
- lib/pry/wrapped_module.rb
|
191
277
|
- man/pry.1
|
192
278
|
- man/pry.1.html
|
193
279
|
- man/pry.1.ronn
|
194
280
|
- pry.gemspec
|
195
|
-
-
|
196
|
-
-
|
197
|
-
-
|
198
|
-
-
|
199
|
-
-
|
200
|
-
-
|
201
|
-
-
|
202
|
-
-
|
203
|
-
-
|
204
|
-
-
|
205
|
-
-
|
206
|
-
-
|
207
|
-
-
|
208
|
-
-
|
209
|
-
-
|
210
|
-
-
|
211
|
-
-
|
212
|
-
-
|
213
|
-
-
|
214
|
-
-
|
215
|
-
-
|
216
|
-
-
|
217
|
-
-
|
218
|
-
-
|
219
|
-
-
|
220
|
-
-
|
221
|
-
-
|
222
|
-
-
|
223
|
-
-
|
224
|
-
-
|
225
|
-
-
|
226
|
-
-
|
227
|
-
-
|
228
|
-
-
|
229
|
-
-
|
230
|
-
-
|
231
|
-
-
|
232
|
-
-
|
233
|
-
-
|
281
|
+
- spec/cli_spec.rb
|
282
|
+
- spec/code_object_spec.rb
|
283
|
+
- spec/code_spec.rb
|
284
|
+
- spec/command_helpers_spec.rb
|
285
|
+
- spec/command_integration_spec.rb
|
286
|
+
- spec/command_set_spec.rb
|
287
|
+
- spec/command_spec.rb
|
288
|
+
- spec/commands/amend_line_spec.rb
|
289
|
+
- spec/commands/bang_spec.rb
|
290
|
+
- spec/commands/cat_spec.rb
|
291
|
+
- spec/commands/cd_spec.rb
|
292
|
+
- spec/commands/disable_pry_spec.rb
|
293
|
+
- spec/commands/edit_spec.rb
|
294
|
+
- spec/commands/exit_all_spec.rb
|
295
|
+
- spec/commands/exit_program_spec.rb
|
296
|
+
- spec/commands/exit_spec.rb
|
297
|
+
- spec/commands/find_method_spec.rb
|
298
|
+
- spec/commands/gem_list_spec.rb
|
299
|
+
- spec/commands/gist_spec.rb
|
300
|
+
- spec/commands/help_spec.rb
|
301
|
+
- spec/commands/hist_spec.rb
|
302
|
+
- spec/commands/jump_to_spec.rb
|
303
|
+
- spec/commands/ls_spec.rb
|
304
|
+
- spec/commands/play_spec.rb
|
305
|
+
- spec/commands/raise_up_spec.rb
|
306
|
+
- spec/commands/save_file_spec.rb
|
307
|
+
- spec/commands/show_doc_spec.rb
|
308
|
+
- spec/commands/show_input_spec.rb
|
309
|
+
- spec/commands/show_source_spec.rb
|
310
|
+
- spec/commands/whereami_spec.rb
|
311
|
+
- spec/completion_spec.rb
|
312
|
+
- spec/control_d_handler_spec.rb
|
313
|
+
- spec/editor_spec.rb
|
314
|
+
- spec/exception_whitelist_spec.rb
|
315
|
+
- spec/fixtures/candidate_helper1.rb
|
316
|
+
- spec/fixtures/candidate_helper2.rb
|
317
|
+
- spec/fixtures/example.erb
|
318
|
+
- spec/fixtures/example_nesting.rb
|
319
|
+
- spec/fixtures/show_source_doc_examples.rb
|
320
|
+
- spec/fixtures/testrc
|
321
|
+
- spec/fixtures/testrcbad
|
322
|
+
- spec/helper.rb
|
323
|
+
- spec/helpers/bacon.rb
|
324
|
+
- spec/helpers/mock_pry.rb
|
325
|
+
- spec/helpers/table_spec.rb
|
326
|
+
- spec/history_array_spec.rb
|
327
|
+
- spec/hooks_spec.rb
|
328
|
+
- spec/indent_spec.rb
|
329
|
+
- spec/input_stack_spec.rb
|
330
|
+
- spec/method_spec.rb
|
331
|
+
- spec/prompt_spec.rb
|
332
|
+
- spec/pry_defaults_spec.rb
|
333
|
+
- spec/pry_history_spec.rb
|
334
|
+
- spec/pry_output_spec.rb
|
335
|
+
- spec/pry_spec.rb
|
336
|
+
- spec/sticky_locals_spec.rb
|
337
|
+
- spec/syntax_checking_spec.rb
|
338
|
+
- spec/wrapped_module_spec.rb
|
234
339
|
- wiki/Customizing-pry.md
|
235
340
|
- wiki/Home.md
|
236
341
|
homepage: http://pry.github.com
|
@@ -258,42 +363,61 @@ signing_key:
|
|
258
363
|
specification_version: 3
|
259
364
|
summary: An IRB alternative and runtime developer console
|
260
365
|
test_files:
|
261
|
-
-
|
262
|
-
-
|
263
|
-
-
|
264
|
-
-
|
265
|
-
-
|
266
|
-
-
|
267
|
-
-
|
268
|
-
-
|
269
|
-
-
|
270
|
-
-
|
271
|
-
-
|
272
|
-
-
|
273
|
-
-
|
274
|
-
-
|
275
|
-
-
|
276
|
-
-
|
277
|
-
-
|
278
|
-
-
|
279
|
-
-
|
280
|
-
-
|
281
|
-
-
|
282
|
-
-
|
283
|
-
-
|
284
|
-
-
|
285
|
-
-
|
286
|
-
-
|
287
|
-
-
|
288
|
-
-
|
289
|
-
-
|
290
|
-
-
|
291
|
-
-
|
292
|
-
-
|
293
|
-
-
|
294
|
-
-
|
295
|
-
-
|
296
|
-
-
|
297
|
-
-
|
298
|
-
-
|
299
|
-
-
|
366
|
+
- spec/cli_spec.rb
|
367
|
+
- spec/code_object_spec.rb
|
368
|
+
- spec/code_spec.rb
|
369
|
+
- spec/command_helpers_spec.rb
|
370
|
+
- spec/command_integration_spec.rb
|
371
|
+
- spec/command_set_spec.rb
|
372
|
+
- spec/command_spec.rb
|
373
|
+
- spec/commands/amend_line_spec.rb
|
374
|
+
- spec/commands/bang_spec.rb
|
375
|
+
- spec/commands/cat_spec.rb
|
376
|
+
- spec/commands/cd_spec.rb
|
377
|
+
- spec/commands/disable_pry_spec.rb
|
378
|
+
- spec/commands/edit_spec.rb
|
379
|
+
- spec/commands/exit_all_spec.rb
|
380
|
+
- spec/commands/exit_program_spec.rb
|
381
|
+
- spec/commands/exit_spec.rb
|
382
|
+
- spec/commands/find_method_spec.rb
|
383
|
+
- spec/commands/gem_list_spec.rb
|
384
|
+
- spec/commands/gist_spec.rb
|
385
|
+
- spec/commands/help_spec.rb
|
386
|
+
- spec/commands/hist_spec.rb
|
387
|
+
- spec/commands/jump_to_spec.rb
|
388
|
+
- spec/commands/ls_spec.rb
|
389
|
+
- spec/commands/play_spec.rb
|
390
|
+
- spec/commands/raise_up_spec.rb
|
391
|
+
- spec/commands/save_file_spec.rb
|
392
|
+
- spec/commands/show_doc_spec.rb
|
393
|
+
- spec/commands/show_input_spec.rb
|
394
|
+
- spec/commands/show_source_spec.rb
|
395
|
+
- spec/commands/whereami_spec.rb
|
396
|
+
- spec/completion_spec.rb
|
397
|
+
- spec/control_d_handler_spec.rb
|
398
|
+
- spec/editor_spec.rb
|
399
|
+
- spec/exception_whitelist_spec.rb
|
400
|
+
- spec/fixtures/candidate_helper1.rb
|
401
|
+
- spec/fixtures/candidate_helper2.rb
|
402
|
+
- spec/fixtures/example.erb
|
403
|
+
- spec/fixtures/example_nesting.rb
|
404
|
+
- spec/fixtures/show_source_doc_examples.rb
|
405
|
+
- spec/fixtures/testrc
|
406
|
+
- spec/fixtures/testrcbad
|
407
|
+
- spec/helper.rb
|
408
|
+
- spec/helpers/bacon.rb
|
409
|
+
- spec/helpers/mock_pry.rb
|
410
|
+
- spec/helpers/table_spec.rb
|
411
|
+
- spec/history_array_spec.rb
|
412
|
+
- spec/hooks_spec.rb
|
413
|
+
- spec/indent_spec.rb
|
414
|
+
- spec/input_stack_spec.rb
|
415
|
+
- spec/method_spec.rb
|
416
|
+
- spec/prompt_spec.rb
|
417
|
+
- spec/pry_defaults_spec.rb
|
418
|
+
- spec/pry_history_spec.rb
|
419
|
+
- spec/pry_output_spec.rb
|
420
|
+
- spec/pry_spec.rb
|
421
|
+
- spec/sticky_locals_spec.rb
|
422
|
+
- spec/syntax_checking_spec.rb
|
423
|
+
- spec/wrapped_module_spec.rb
|