From c7eed553ff8b1f616162b9011cf75dbe7c9e1a70 Mon Sep 17 00:00:00 2001 From: Robert Gleeson Date: Mon, 3 Feb 2014 19:46:07 +0100 Subject: [PATCH] rename "*_completer" to "*_completions" Config#file_completer -> Config#file_completions. Config#command_completer -> Config#command_completions. --- lib/pry/commands/shell_mode.rb | 4 ++-- lib/pry/config/default.rb | 4 ++-- lib/pry/pry_instance.rb | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/pry/commands/shell_mode.rb b/lib/pry/commands/shell_mode.rb index 64db7668..ee521d3b 100644 --- a/lib/pry/commands/shell_mode.rb +++ b/lib/pry/commands/shell_mode.rb @@ -12,10 +12,10 @@ class Pry case _pry_.prompt when Pry::SHELL_PROMPT _pry_.pop_prompt - _pry_.custom_completions = _pry_.config.file_completer + _pry_.custom_completions = _pry_.config.file_completions else _pry_.push_prompt Pry::SHELL_PROMPT - _pry_.custom_completions = _pry_.config.command_completer + _pry_.custom_completions = _pry_.config.command_completions end end end diff --git a/lib/pry/config/default.rb b/lib/pry/config/default.rb index c5d9d48d..557e0cf8 100644 --- a/lib/pry/config/default.rb +++ b/lib/pry/config/default.rb @@ -33,8 +33,8 @@ class Pry::Config::Default :control_d_handler => proc { Pry::DEFAULT_CONTROL_D_HANDLER }, :memory_size => proc { 100 }, :extra_sticky_locals => proc { {} }, - :command_completer => proc { proc { Pry.commands.commands.keys } }, - :file_completer => proc { proc { Dir["."] } }, + :command_completions => proc { proc { Pry.commands.commands.keys } }, + :file_completions => proc { proc { Dir["."] } }, :completer => proc { lazy_completer } } diff --git a/lib/pry/pry_instance.rb b/lib/pry/pry_instance.rb index b7458769..5db6a3fa 100644 --- a/lib/pry/pry_instance.rb +++ b/lib/pry/pry_instance.rb @@ -73,7 +73,7 @@ class Pry push_prompt(config.prompt) @input_array = Pry::HistoryArray.new config.memory_size @output_array = Pry::HistoryArray.new config.memory_size - @custom_completions = config.command_completer + @custom_completions = config.command_completions push_initial_binding(options[:target]) set_last_result nil @input_array << nil