pry 0.9.10pre1-java → 0.9.11-java
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +3 -1
- data/CHANGELOG +63 -2
- 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 +30 -19
- 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 +7 -122
- 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 +239 -115
- 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.
|
5
|
-
prerelease:
|
4
|
+
version: 0.9.11
|
5
|
+
prerelease:
|
6
6
|
platform: java
|
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,6 +109,54 @@ 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
|
- !ruby/object:Gem::Dependency
|
112
161
|
name: spoon
|
113
162
|
requirement: !ruby/object:Gem::Requirement
|
@@ -128,6 +177,7 @@ description: An IRB alternative and runtime developer console
|
|
128
177
|
email:
|
129
178
|
- jrmair@gmail.com
|
130
179
|
- conrad.irwin@gmail.com
|
180
|
+
- rwfitzge@gmail.com
|
131
181
|
executables:
|
132
182
|
- pry
|
133
183
|
extensions: []
|
@@ -141,54 +191,86 @@ files:
|
|
141
191
|
- CHANGELOG
|
142
192
|
- CONTRIBUTORS
|
143
193
|
- Gemfile
|
194
|
+
- Guardfile
|
144
195
|
- LICENSE
|
145
196
|
- README.markdown
|
146
197
|
- Rakefile
|
147
198
|
- TODO
|
148
199
|
- bin/pry
|
149
|
-
- examples/example_basic.rb
|
150
|
-
- examples/example_command_override.rb
|
151
|
-
- examples/example_commands.rb
|
152
|
-
- examples/example_hooks.rb
|
153
|
-
- examples/example_image_edit.rb
|
154
|
-
- examples/example_input.rb
|
155
|
-
- examples/example_input2.rb
|
156
|
-
- examples/example_output.rb
|
157
|
-
- examples/example_print.rb
|
158
|
-
- examples/example_prompt.rb
|
159
|
-
- examples/helper.rb
|
160
200
|
- lib/pry.rb
|
161
201
|
- lib/pry/cli.rb
|
162
202
|
- lib/pry/code.rb
|
203
|
+
- lib/pry/code/code_range.rb
|
204
|
+
- lib/pry/code/loc.rb
|
205
|
+
- lib/pry/code_object.rb
|
163
206
|
- lib/pry/command.rb
|
164
207
|
- lib/pry/command_set.rb
|
165
208
|
- lib/pry/commands.rb
|
209
|
+
- lib/pry/commands/amend_line.rb
|
210
|
+
- lib/pry/commands/bang.rb
|
211
|
+
- lib/pry/commands/bang_pry.rb
|
212
|
+
- lib/pry/commands/cat.rb
|
213
|
+
- lib/pry/commands/cat/abstract_formatter.rb
|
214
|
+
- lib/pry/commands/cat/exception_formatter.rb
|
215
|
+
- lib/pry/commands/cat/file_formatter.rb
|
216
|
+
- lib/pry/commands/cat/input_expression_formatter.rb
|
217
|
+
- lib/pry/commands/cd.rb
|
218
|
+
- lib/pry/commands/code_collector.rb
|
219
|
+
- lib/pry/commands/deprecated_commands.rb
|
220
|
+
- lib/pry/commands/disable_pry.rb
|
221
|
+
- lib/pry/commands/easter_eggs.rb
|
222
|
+
- lib/pry/commands/edit.rb
|
223
|
+
- lib/pry/commands/edit/exception_patcher.rb
|
224
|
+
- lib/pry/commands/edit/file_and_line_locator.rb
|
225
|
+
- lib/pry/commands/edit/method_patcher.rb
|
226
|
+
- lib/pry/commands/exit.rb
|
227
|
+
- lib/pry/commands/exit_all.rb
|
228
|
+
- lib/pry/commands/exit_program.rb
|
229
|
+
- lib/pry/commands/find_method.rb
|
230
|
+
- lib/pry/commands/fix_indent.rb
|
231
|
+
- lib/pry/commands/gem_cd.rb
|
232
|
+
- lib/pry/commands/gem_install.rb
|
233
|
+
- lib/pry/commands/gem_list.rb
|
234
|
+
- lib/pry/commands/gem_open.rb
|
235
|
+
- lib/pry/commands/gist.rb
|
236
|
+
- lib/pry/commands/help.rb
|
237
|
+
- lib/pry/commands/hist.rb
|
238
|
+
- lib/pry/commands/import_set.rb
|
239
|
+
- lib/pry/commands/install_command.rb
|
240
|
+
- lib/pry/commands/jump_to.rb
|
241
|
+
- lib/pry/commands/ls.rb
|
242
|
+
- lib/pry/commands/nesting.rb
|
243
|
+
- lib/pry/commands/play.rb
|
244
|
+
- lib/pry/commands/pry_backtrace.rb
|
245
|
+
- lib/pry/commands/pry_version.rb
|
246
|
+
- lib/pry/commands/raise_up.rb
|
247
|
+
- lib/pry/commands/reload_code.rb
|
248
|
+
- lib/pry/commands/reset.rb
|
249
|
+
- lib/pry/commands/ri.rb
|
250
|
+
- lib/pry/commands/save_file.rb
|
251
|
+
- lib/pry/commands/shell_command.rb
|
252
|
+
- lib/pry/commands/shell_mode.rb
|
253
|
+
- lib/pry/commands/show_doc.rb
|
254
|
+
- lib/pry/commands/show_info.rb
|
255
|
+
- lib/pry/commands/show_input.rb
|
256
|
+
- lib/pry/commands/show_source.rb
|
257
|
+
- lib/pry/commands/simple_prompt.rb
|
258
|
+
- lib/pry/commands/stat.rb
|
259
|
+
- lib/pry/commands/switch_to.rb
|
260
|
+
- lib/pry/commands/toggle_color.rb
|
261
|
+
- lib/pry/commands/whereami.rb
|
262
|
+
- lib/pry/commands/wtf.rb
|
166
263
|
- lib/pry/completion.rb
|
167
264
|
- lib/pry/config.rb
|
168
265
|
- lib/pry/core_extensions.rb
|
169
266
|
- lib/pry/custom_completions.rb
|
170
|
-
- lib/pry/
|
171
|
-
- lib/pry/default_commands/commands.rb
|
172
|
-
- lib/pry/default_commands/context.rb
|
173
|
-
- lib/pry/default_commands/easter_eggs.rb
|
174
|
-
- lib/pry/default_commands/editing.rb
|
175
|
-
- lib/pry/default_commands/find_method.rb
|
176
|
-
- lib/pry/default_commands/gems.rb
|
177
|
-
- lib/pry/default_commands/gist.rb
|
178
|
-
- lib/pry/default_commands/help.rb
|
179
|
-
- lib/pry/default_commands/hist.rb
|
180
|
-
- lib/pry/default_commands/input_and_output.rb
|
181
|
-
- lib/pry/default_commands/introspection.rb
|
182
|
-
- lib/pry/default_commands/ls.rb
|
183
|
-
- lib/pry/default_commands/misc.rb
|
184
|
-
- lib/pry/default_commands/navigating_pry.rb
|
185
|
-
- lib/pry/default_commands/whereami.rb
|
186
|
-
- lib/pry/extended_commands/experimental.rb
|
267
|
+
- lib/pry/editor.rb
|
187
268
|
- lib/pry/helpers.rb
|
188
269
|
- lib/pry/helpers/base_helpers.rb
|
189
270
|
- lib/pry/helpers/command_helpers.rb
|
190
271
|
- lib/pry/helpers/documentation_helpers.rb
|
191
272
|
- lib/pry/helpers/options_helpers.rb
|
273
|
+
- lib/pry/helpers/table.rb
|
192
274
|
- lib/pry/helpers/text.rb
|
193
275
|
- lib/pry/history.rb
|
194
276
|
- lib/pry/history_array.rb
|
@@ -196,57 +278,80 @@ files:
|
|
196
278
|
- lib/pry/indent.rb
|
197
279
|
- lib/pry/method.rb
|
198
280
|
- lib/pry/module_candidate.rb
|
281
|
+
- lib/pry/pager.rb
|
199
282
|
- lib/pry/plugins.rb
|
200
283
|
- lib/pry/pry_class.rb
|
201
284
|
- lib/pry/pry_instance.rb
|
202
285
|
- lib/pry/rbx_method.rb
|
203
286
|
- lib/pry/rbx_path.rb
|
204
287
|
- lib/pry/repl_file_loader.rb
|
288
|
+
- lib/pry/rubygem.rb
|
289
|
+
- lib/pry/terminal_info.rb
|
290
|
+
- lib/pry/test/helper.rb
|
205
291
|
- lib/pry/version.rb
|
206
292
|
- lib/pry/wrapped_module.rb
|
207
293
|
- man/pry.1
|
208
294
|
- man/pry.1.html
|
209
295
|
- man/pry.1.ronn
|
210
296
|
- pry.gemspec
|
211
|
-
-
|
212
|
-
-
|
213
|
-
-
|
214
|
-
-
|
215
|
-
-
|
216
|
-
-
|
217
|
-
-
|
218
|
-
-
|
219
|
-
-
|
220
|
-
-
|
221
|
-
-
|
222
|
-
-
|
223
|
-
-
|
224
|
-
-
|
225
|
-
-
|
226
|
-
-
|
227
|
-
-
|
228
|
-
-
|
229
|
-
-
|
230
|
-
-
|
231
|
-
-
|
232
|
-
-
|
233
|
-
-
|
234
|
-
-
|
235
|
-
-
|
236
|
-
-
|
237
|
-
-
|
238
|
-
-
|
239
|
-
-
|
240
|
-
-
|
241
|
-
-
|
242
|
-
-
|
243
|
-
-
|
244
|
-
-
|
245
|
-
-
|
246
|
-
-
|
247
|
-
-
|
248
|
-
-
|
249
|
-
-
|
297
|
+
- spec/cli_spec.rb
|
298
|
+
- spec/code_object_spec.rb
|
299
|
+
- spec/code_spec.rb
|
300
|
+
- spec/command_helpers_spec.rb
|
301
|
+
- spec/command_integration_spec.rb
|
302
|
+
- spec/command_set_spec.rb
|
303
|
+
- spec/command_spec.rb
|
304
|
+
- spec/commands/amend_line_spec.rb
|
305
|
+
- spec/commands/bang_spec.rb
|
306
|
+
- spec/commands/cat_spec.rb
|
307
|
+
- spec/commands/cd_spec.rb
|
308
|
+
- spec/commands/disable_pry_spec.rb
|
309
|
+
- spec/commands/edit_spec.rb
|
310
|
+
- spec/commands/exit_all_spec.rb
|
311
|
+
- spec/commands/exit_program_spec.rb
|
312
|
+
- spec/commands/exit_spec.rb
|
313
|
+
- spec/commands/find_method_spec.rb
|
314
|
+
- spec/commands/gem_list_spec.rb
|
315
|
+
- spec/commands/gist_spec.rb
|
316
|
+
- spec/commands/help_spec.rb
|
317
|
+
- spec/commands/hist_spec.rb
|
318
|
+
- spec/commands/jump_to_spec.rb
|
319
|
+
- spec/commands/ls_spec.rb
|
320
|
+
- spec/commands/play_spec.rb
|
321
|
+
- spec/commands/raise_up_spec.rb
|
322
|
+
- spec/commands/save_file_spec.rb
|
323
|
+
- spec/commands/show_doc_spec.rb
|
324
|
+
- spec/commands/show_input_spec.rb
|
325
|
+
- spec/commands/show_source_spec.rb
|
326
|
+
- spec/commands/whereami_spec.rb
|
327
|
+
- spec/completion_spec.rb
|
328
|
+
- spec/control_d_handler_spec.rb
|
329
|
+
- spec/editor_spec.rb
|
330
|
+
- spec/exception_whitelist_spec.rb
|
331
|
+
- spec/fixtures/candidate_helper1.rb
|
332
|
+
- spec/fixtures/candidate_helper2.rb
|
333
|
+
- spec/fixtures/example.erb
|
334
|
+
- spec/fixtures/example_nesting.rb
|
335
|
+
- spec/fixtures/show_source_doc_examples.rb
|
336
|
+
- spec/fixtures/testrc
|
337
|
+
- spec/fixtures/testrcbad
|
338
|
+
- spec/helper.rb
|
339
|
+
- spec/helpers/bacon.rb
|
340
|
+
- spec/helpers/mock_pry.rb
|
341
|
+
- spec/helpers/table_spec.rb
|
342
|
+
- spec/history_array_spec.rb
|
343
|
+
- spec/hooks_spec.rb
|
344
|
+
- spec/indent_spec.rb
|
345
|
+
- spec/input_stack_spec.rb
|
346
|
+
- spec/method_spec.rb
|
347
|
+
- spec/prompt_spec.rb
|
348
|
+
- spec/pry_defaults_spec.rb
|
349
|
+
- spec/pry_history_spec.rb
|
350
|
+
- spec/pry_output_spec.rb
|
351
|
+
- spec/pry_spec.rb
|
352
|
+
- spec/sticky_locals_spec.rb
|
353
|
+
- spec/syntax_checking_spec.rb
|
354
|
+
- spec/wrapped_module_spec.rb
|
250
355
|
- wiki/Customizing-pry.md
|
251
356
|
- wiki/Home.md
|
252
357
|
homepage: http://pry.github.com
|
@@ -264,9 +369,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
264
369
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
265
370
|
none: false
|
266
371
|
requirements:
|
267
|
-
- - ! '
|
372
|
+
- - ! '>='
|
268
373
|
- !ruby/object:Gem::Version
|
269
|
-
version:
|
374
|
+
version: '0'
|
270
375
|
requirements: []
|
271
376
|
rubyforge_project:
|
272
377
|
rubygems_version: 1.8.24
|
@@ -274,42 +379,61 @@ signing_key:
|
|
274
379
|
specification_version: 3
|
275
380
|
summary: An IRB alternative and runtime developer console
|
276
381
|
test_files:
|
277
|
-
-
|
278
|
-
-
|
279
|
-
-
|
280
|
-
-
|
281
|
-
-
|
282
|
-
-
|
283
|
-
-
|
284
|
-
-
|
285
|
-
-
|
286
|
-
-
|
287
|
-
-
|
288
|
-
-
|
289
|
-
-
|
290
|
-
-
|
291
|
-
-
|
292
|
-
-
|
293
|
-
-
|
294
|
-
-
|
295
|
-
-
|
296
|
-
-
|
297
|
-
-
|
298
|
-
-
|
299
|
-
-
|
300
|
-
-
|
301
|
-
-
|
302
|
-
-
|
303
|
-
-
|
304
|
-
-
|
305
|
-
-
|
306
|
-
-
|
307
|
-
-
|
308
|
-
-
|
309
|
-
-
|
310
|
-
-
|
311
|
-
-
|
312
|
-
-
|
313
|
-
-
|
314
|
-
-
|
315
|
-
-
|
382
|
+
- spec/cli_spec.rb
|
383
|
+
- spec/code_object_spec.rb
|
384
|
+
- spec/code_spec.rb
|
385
|
+
- spec/command_helpers_spec.rb
|
386
|
+
- spec/command_integration_spec.rb
|
387
|
+
- spec/command_set_spec.rb
|
388
|
+
- spec/command_spec.rb
|
389
|
+
- spec/commands/amend_line_spec.rb
|
390
|
+
- spec/commands/bang_spec.rb
|
391
|
+
- spec/commands/cat_spec.rb
|
392
|
+
- spec/commands/cd_spec.rb
|
393
|
+
- spec/commands/disable_pry_spec.rb
|
394
|
+
- spec/commands/edit_spec.rb
|
395
|
+
- spec/commands/exit_all_spec.rb
|
396
|
+
- spec/commands/exit_program_spec.rb
|
397
|
+
- spec/commands/exit_spec.rb
|
398
|
+
- spec/commands/find_method_spec.rb
|
399
|
+
- spec/commands/gem_list_spec.rb
|
400
|
+
- spec/commands/gist_spec.rb
|
401
|
+
- spec/commands/help_spec.rb
|
402
|
+
- spec/commands/hist_spec.rb
|
403
|
+
- spec/commands/jump_to_spec.rb
|
404
|
+
- spec/commands/ls_spec.rb
|
405
|
+
- spec/commands/play_spec.rb
|
406
|
+
- spec/commands/raise_up_spec.rb
|
407
|
+
- spec/commands/save_file_spec.rb
|
408
|
+
- spec/commands/show_doc_spec.rb
|
409
|
+
- spec/commands/show_input_spec.rb
|
410
|
+
- spec/commands/show_source_spec.rb
|
411
|
+
- spec/commands/whereami_spec.rb
|
412
|
+
- spec/completion_spec.rb
|
413
|
+
- spec/control_d_handler_spec.rb
|
414
|
+
- spec/editor_spec.rb
|
415
|
+
- spec/exception_whitelist_spec.rb
|
416
|
+
- spec/fixtures/candidate_helper1.rb
|
417
|
+
- spec/fixtures/candidate_helper2.rb
|
418
|
+
- spec/fixtures/example.erb
|
419
|
+
- spec/fixtures/example_nesting.rb
|
420
|
+
- spec/fixtures/show_source_doc_examples.rb
|
421
|
+
- spec/fixtures/testrc
|
422
|
+
- spec/fixtures/testrcbad
|
423
|
+
- spec/helper.rb
|
424
|
+
- spec/helpers/bacon.rb
|
425
|
+
- spec/helpers/mock_pry.rb
|
426
|
+
- spec/helpers/table_spec.rb
|
427
|
+
- spec/history_array_spec.rb
|
428
|
+
- spec/hooks_spec.rb
|
429
|
+
- spec/indent_spec.rb
|
430
|
+
- spec/input_stack_spec.rb
|
431
|
+
- spec/method_spec.rb
|
432
|
+
- spec/prompt_spec.rb
|
433
|
+
- spec/pry_defaults_spec.rb
|
434
|
+
- spec/pry_history_spec.rb
|
435
|
+
- spec/pry_output_spec.rb
|
436
|
+
- spec/pry_spec.rb
|
437
|
+
- spec/sticky_locals_spec.rb
|
438
|
+
- spec/syntax_checking_spec.rb
|
439
|
+
- spec/wrapped_module_spec.rb
|