-
-
Save rking/2356c4677edb49eca331 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Same starts. | |
Processing file examples/example_basic.rb | |
Processing file examples/example_command_override.rb | |
Processing file examples/example_commands.rb | |
Processing file examples/example_hooks.rb | |
Processing file examples/example_image_edit.rb | |
Processing file examples/example_input2.rb | |
Processing file examples/example_input.rb | |
Processing file examples/example_output.rb | |
Processing file examples/example_print.rb | |
Processing file examples/example_prompt.rb | |
Processing file examples/helper.rb | |
Processing file lib/pry/cli.rb | |
Processing file lib/pry/code.rb | |
Processing file lib/pry/command.rb | |
Processing file lib/pry/commands/amend_line.rb | |
Processing file lib/pry/commands/bang_pry.rb | |
Processing file lib/pry/commands/bang.rb | |
Processing file lib/pry/commands/cat.rb | |
Processing file lib/pry/commands/cd.rb | |
Processing file lib/pry/commands/disable_pry.rb | |
Processing file lib/pry/commands/easter_eggs.rb | |
Processing file lib/pry/commands/edit_method.rb | |
Processing file lib/pry/commands/edit.rb | |
Processing file lib/pry/command_set.rb | |
Processing file lib/pry/commands/exit_all.rb | |
Processing file lib/pry/commands/exit_program.rb | |
Processing file lib/pry/commands/exit.rb | |
Processing file lib/pry/commands/find_method.rb | |
Processing file lib/pry/commands/gem_cd.rb | |
Processing file lib/pry/commands/gem_install.rb | |
Processing file lib/pry/commands/gem_list.rb | |
Processing file lib/pry/commands/gist.rb | |
Processing file lib/pry/commands/help.rb | |
Processing file lib/pry/commands/hist.rb | |
Processing file lib/pry/commands/import_set.rb | |
Processing file lib/pry/commands/install_command.rb | |
Processing file lib/pry/commands/jump_to.rb | |
Processing file lib/pry/commands/ls.rb | |
Processing file lib/pry/commands/nesting.rb | |
Processing file lib/pry/commands/play.rb | |
Processing file lib/pry/commands/pry_backtrace.rb | |
Processing file lib/pry/commands/pry_version.rb | |
Processing file lib/pry/commands/raise_up.rb | |
Processing file lib/pry/commands.rb | |
Processing file lib/pry/commands/reload_method.rb | |
Processing file lib/pry/commands/reset.rb | |
Processing file lib/pry/commands/ri.rb | |
Processing file lib/pry/commands/save_file.rb | |
Processing file lib/pry/commands/shell_command.rb | |
Processing file lib/pry/commands/shell_mode.rb | |
Processing file lib/pry/commands/show_command.rb | |
Processing file lib/pry/commands/show_doc.rb | |
Processing file lib/pry/commands/show_input.rb | |
Processing file lib/pry/commands/show_source.rb | |
Processing file lib/pry/commands/simple_prompt.rb | |
Processing file lib/pry/commands/stat.rb | |
Processing file lib/pry/commands/switch_to.rb | |
Processing file lib/pry/commands/toggle_color.rb | |
Processing file lib/pry/commands/whereami.rb | |
Processing file lib/pry/commands/wtf.rb | |
Processing file lib/pry/completion.rb | |
Processing file lib/pry/config.rb | |
Processing file lib/pry/core_extensions.rb | |
Processing file lib/pry/custom_completions.rb | |
Processing file lib/pry/helpers/base_helpers.rb | |
Processing file lib/pry/helpers/command_helpers.rb | |
Processing file lib/pry/helpers/documentation_helpers.rb | |
Processing file lib/pry/helpers/module_introspection_helpers.rb | |
Processing file lib/pry/helpers/options_helpers.rb | |
Processing file lib/pry/helpers.rb | |
Processing file lib/pry/helpers/text.rb | |
Processing file lib/pry/history_array.rb | |
Processing file lib/pry/history.rb | |
Processing file lib/pry/hooks.rb | |
Processing file lib/pry/indent.rb | |
Processing file lib/pry/method.rb | |
Processing file lib/pry/module_candidate.rb | |
Processing file lib/pry/pager.rb | |
Processing file lib/pry/plugins.rb | |
Processing file lib/pry/pry_class.rb | |
Processing file lib/pry/pry_instance.rb | |
Processing file lib/pry.rb | |
Processing file lib/pry/rbx_method.rb | |
Processing file lib/pry/rbx_path.rb | |
Processing file lib/pry/repl_file_loader.rb | |
Processing file lib/pry/version.rb | |
Processing file lib/pry/wrapped_module.rb | |
Processing file test/candidate_helper1.rb | |
Processing file test/candidate_helper2.rb | |
Processing file test/example_nesting.rb | |
Processing file test/helper.rb | |
Processing file test/test_cli.rb | |
Processing file test/test_code.rb | |
Processing file test/test_command_helpers.rb | |
Processing file test/test_command_integration.rb | |
Processing file test/test_command.rb | |
Processing file test/test_command_set.rb | |
Processing file test/test_commands/test_amend_line.rb | |
Processing file test/test_commands/test_bang.rb | |
Processing file test/test_commands/test_cat.rb | |
Processing file test/test_commands/test_cd.rb | |
Processing file test/test_commands/test_disable_pry.rb | |
Processing file test/test_commands/test_edit_method.rb | |
Processing file test/test_commands/test_edit.rb | |
Processing file test/test_commands/test_exit_all.rb | |
Processing file test/test_commands/test_exit_program.rb | |
Processing file test/test_commands/test_exit.rb | |
Processing file test/test_commands/test_find_method.rb | |
Processing file test/test_commands/test_gem_list.rb | |
Processing file test/test_commands/test_help.rb | |
Processing file test/test_commands/test_hist.rb | |
Processing file test/test_commands/test_jump_to.rb | |
Processing file test/test_commands/test_ls.rb | |
Processing file test/test_commands/test_play.rb | |
Processing file test/test_commands/test_raise_up.rb | |
Processing file test/test_commands/test_save_file.rb | |
Processing file test/test_commands/test_show_doc.rb | |
Processing file test/test_commands/test_show_input.rb | |
Processing file test/test_commands/test_show_source.rb | |
Processing file test/test_commands/test_whereami.rb | |
Processing file test/test_completion.rb | |
Processing file test/test_control_d_handler.rb | |
Processing file test/test_exception_whitelist.rb | |
Processing file test/test_history_array.rb | |
Processing file test/test_hooks.rb | |
Processing file test/test_indent.rb | |
Processing file test/test_input_stack.rb | |
Processing file test/test_method.rb | |
Processing file test/test_prompt.rb | |
Processing file test/test_pry_defaults.rb | |
Processing file test/test_pry_history.rb | |
Processing file test/test_pry_output.rb | |
Processing file test/test_pry.rb | |
Processing file test/test_sticky_locals.rb | |
Processing file test/test_syntax_checking.rb | |
Processing file test/test_wrapped_module.rb | |
Number of potential matches: 622 | |
<<<<<<<< | |
File: lib/pry/commands/show_doc.rb, from line: 48 | |
end | |
def process_module | |
raise Pry::CommandError, "No documentation found." if module_object.nil? | |
if opts.present?(:all) | |
all_modules | |
else | |
normal_module | |
end | |
end | |
def normal_module | |
======== | |
File: lib/pry/commands/show_source.rb, from line: 67 | |
end | |
def process_module | |
raise Pry::CommandError, "No documentation found." if module_object.nil? | |
if opts.present?(:all) | |
all_modules | |
else | |
normal_module | |
end | |
end | |
def normal_module | |
>>>>>>>> | |
<<<<<<<< | |
File: test/test_command_integration.rb, from line: 139 | |
end | |
end | |
redirect_pry_io(InputTester.new("cd 1/2/3/4/5/6", @bs1, "test-run", | |
@self, @bs2, "exit-all")) do | |
Pry.start(@o, :commands => set) | |
end | |
Pad.bs1.size.should == 7 | |
Pad.self.should == @o | |
Pad.bs2.size.should == 1 | |
end | |
======== | |
File: test/test_command_integration.rb, from line: 156 | |
end | |
end | |
redirect_pry_io(InputTester.new("cd 1/2/3/4/5/6", @bs1, "test-run", | |
@self, @bs2, "exit-all")) do | |
Pry.start(@o, :commands => set) | |
end | |
Pad.bs1.size.should == 7 | |
Pad.self.should == @o | |
Pad.bs2.size.should == 1 | |
end | |
>>>>>>>> | |
<<<<<<<< | |
File: test/test_command_integration.rb, from line: 139 | |
end | |
end | |
redirect_pry_io(InputTester.new("cd 1/2/3/4/5/6", @bs1, "test-run", | |
@self, @bs2, "exit-all")) do | |
Pry.start(@o, :commands => set) | |
end | |
Pad.bs1.size.should == 7 | |
Pad.self.should == @o | |
Pad.bs2.size.should == 1 | |
end | |
======== | |
File: test/test_command_integration.rb, from line: 173 | |
end | |
end | |
redirect_pry_io(InputTester.new("cd 1/2/3/4/5/6", @bs1, "test-run", | |
@self, @bs2, "exit-all")) do | |
Pry.start(@o, :commands => set) | |
end | |
Pad.bs1.size.should == 7 | |
Pad.self.should == @o | |
Pad.bs2.size.should == 1 | |
end | |
>>>>>>>> | |
<<<<<<<< | |
File: test/test_command_integration.rb, from line: 156 | |
end | |
end | |
redirect_pry_io(InputTester.new("cd 1/2/3/4/5/6", @bs1, "test-run", | |
@self, @bs2, "exit-all")) do | |
Pry.start(@o, :commands => set) | |
end | |
Pad.bs1.size.should == 7 | |
Pad.self.should == @o | |
Pad.bs2.size.should == 1 | |
end | |
======== | |
File: test/test_command_integration.rb, from line: 173 | |
end | |
end | |
redirect_pry_io(InputTester.new("cd 1/2/3/4/5/6", @bs1, "test-run", | |
@self, @bs2, "exit-all")) do | |
Pry.start(@o, :commands => set) | |
end | |
Pad.bs1.size.should == 7 | |
Pad.self.should == @o | |
Pad.bs2.size.should == 1 | |
end | |
>>>>>>>> | |
<<<<<<<< | |
File: test/test_completion.rb, from line: 112 | |
end | |
completer_test(Mod).call('Con') | |
# Constants or Class Methods | |
completer_test(o).call('Mod::Con') | |
# Symbol | |
foo = :symbol | |
completer_test(o).call(':symbol') | |
# Variables | |
class << o | |
attr_accessor :foo | |
end | |
o.foo = 'bar' | |
completer_test(binding).call('o.foo') | |
# trailing slash | |
new_completer(Mod).call('Mod2/').include?('Mod2/').should == true | |
end | |
it 'should complete for arbitrary scopes' do | |
module Bar | |
@barvar = :bar | |
end | |
module Baz | |
@bar = Bar | |
@bazvar = :baz | |
Con = :constant | |
end | |
pry = Pry.new() | |
stack = pry.binding_stack | |
stack.push(Pry.binding_for(Baz)) | |
stack.push(Pry.binding_for(Bar)) | |
b = Pry.binding_for(Bar) | |
completer_test(b, pry).call("../@bazvar") | |
completer_test(b, pry).call('/Con') | |
end | |
======== | |
File: test/test_completion.rb, from line: 185 | |
end | |
completer_test(Mod).call('Con') | |
# Constants or Class Methods | |
completer_test(o).call('Mod::Con') | |
# Symbol | |
foo = :symbol | |
completer_test(o).call(':symbol') | |
# Variables | |
class << o | |
attr_accessor :foo | |
end | |
o.foo = 'bar' | |
completer_test(binding).call('o.foo') | |
# trailing slash | |
new_completer(Mod).call('Mod2/').include?('Mod2/').should == true | |
end | |
it 'should complete for arbitrary scopes' do | |
module Bar | |
@barvar = :bar | |
end | |
module Baz | |
@bar = Bar | |
@bazvar = :baz | |
Con = :constant | |
end | |
pry = Pry.new() | |
stack = pry.binding_stack | |
stack.push(Pry.binding_for(Baz)) | |
stack.push(Pry.binding_for(Bar)) | |
b = Pry.binding_for(Bar) | |
completer_test(b, pry).call("../@bazvar") | |
completer_test(b, pry).call('/Con') | |
end | |
>>>>>>>> | |
<<<<<<<< | |
File: test/test_completion.rb, from line: 79 | |
end | |
it 'should complete for stdlib symbols' do | |
o = Object.new | |
# Regexp | |
completer_test(o).call('/foo/.extend') | |
# Array | |
completer_test(o).call('[1].push') | |
# Hash | |
completer_test(o).call('{"a" => "b"}.keys') | |
# Proc | |
completer_test(o).call('{2}.call') | |
# Symbol | |
completer_test(o).call(':symbol.to_s') | |
# Absolute Constant | |
completer_test(o).call('::IndexError') | |
end | |
it 'should complete for target symbols' do | |
o = Object.new | |
# Constant | |
module Mod | |
Con = 'Constant' | |
module Mod2 | |
end | |
end | |
completer_test(Mod).call('Con') | |
# Constants or Class Methods | |
completer_test(o).call('Mod::Con') | |
# Symbol | |
foo = :symbol | |
completer_test(o).call(':symbol') | |
# Variables | |
class << o | |
attr_accessor :foo | |
end | |
o.foo = 'bar' | |
completer_test(binding).call('o.foo') | |
# trailing slash | |
new_completer(Mod).call('Mod2/').include?('Mod2/').should == true | |
end | |
it 'should complete for arbitrary scopes' do | |
module Bar | |
@barvar = :bar | |
end | |
module Baz | |
@bar = Bar | |
@bazvar = :baz | |
Con = :constant | |
end | |
pry = Pry.new() | |
stack = pry.binding_stack | |
stack.push(Pry.binding_for(Baz)) | |
stack.push(Pry.binding_for(Bar)) | |
b = Pry.binding_for(Bar) | |
completer_test(b, pry).call("../@bazvar") | |
completer_test(b, pry).call('/Con') | |
end | |
======== | |
File: test/test_completion.rb, from line: 153 | |
end | |
it 'should complete for stdlib symbols' do | |
o = Object.new | |
# Regexp | |
completer_test(o).call('/foo/.extend') | |
# Array | |
completer_test(o).call('[1].push') | |
# Hash | |
completer_test(o).call('{"a" => "b"}.keys') | |
# Proc | |
completer_test(o).call('{2}.call') | |
# Symbol | |
completer_test(o).call(':symbol.to_s') | |
# Absolute Constant | |
completer_test(o).call('::IndexError') | |
end | |
it 'should complete for target symbols' do | |
o = Object.new | |
# Constant | |
module Mod | |
Con = 'Constant' | |
module Mod2 | |
end | |
end | |
completer_test(Mod).call('Con') | |
# Constants or Class Methods | |
completer_test(o).call('Mod::Con') | |
# Symbol | |
foo = :symbol | |
completer_test(o).call(':symbol') | |
# Variables | |
class << o | |
attr_accessor :foo | |
end | |
o.foo = 'bar' | |
completer_test(binding).call('o.foo') | |
# trailing slash | |
new_completer(Mod).call('Mod2/').include?('Mod2/').should == true | |
end | |
it 'should complete for arbitrary scopes' do | |
module Bar | |
@barvar = :bar | |
end | |
module Baz | |
@bar = Bar | |
@bazvar = :baz | |
Con = :constant | |
end | |
pry = Pry.new() | |
stack = pry.binding_stack | |
stack.push(Pry.binding_for(Baz)) | |
stack.push(Pry.binding_for(Bar)) | |
b = Pry.binding_for(Bar) | |
completer_test(b, pry).call("../@bazvar") | |
completer_test(b, pry).call('/Con') | |
end | |
>>>>>>>> | |
Match summary: | |
Frequency: 2, length: 10 (lib/pry/commands/show_doc.rb:48, lib/pry/commands/show_source.rb:67) | |
Frequency: 3, length: 10 (test/test_command_integration.rb:139, test/test_command_integration.rb:156, test/test_command_integration.rb:173) | |
Frequency: 2, length: 33 (test/test_completion.rb:112, test/test_completion.rb:185) | |
Frequency: 2, length: 58 (test/test_completion.rb:79, test/test_completion.rb:153) | |
Statistics: | |
Number of files: 136 | |
Total number of lines: 19061 | |
Number of filtered lines: 15896 (83.4% of total) | |
Number of potential pairwise matches: 622 | |
Number of pairwise comparisons made: 573 | |
Number of matches found: 4 (1 per 4765 lines, 1 per 3974 filtered lines) | |
Number of superfluous lines (at most): 121 (0.6% of lines, 0.8% of filtered lines) | |
Same ends. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment