diff --git a/Library/Homebrew/Gemfile.lock b/Library/Homebrew/Gemfile.lock index 1a925ebbc9466..e83a902741ec8 100644 --- a/Library/Homebrew/Gemfile.lock +++ b/Library/Homebrew/Gemfile.lock @@ -37,7 +37,7 @@ GEM elftools (>= 1.3) plist (3.7.1) prism (1.2.0) - pry (0.14.2) + pry (0.15.0) coderay (~> 1.1) method_source (~> 1.0) public_suffix (6.0.1) diff --git a/Library/Homebrew/sorbet/rbi/gems/pry@0.14.2.rbi b/Library/Homebrew/sorbet/rbi/gems/pry@0.15.0.rbi similarity index 93% rename from Library/Homebrew/sorbet/rbi/gems/pry@0.14.2.rbi rename to Library/Homebrew/sorbet/rbi/gems/pry@0.15.0.rbi index 10ea8f68ea505..ca5698a6f9b0d 100644 --- a/Library/Homebrew/sorbet/rbi/gems/pry@0.14.2.rbi +++ b/Library/Homebrew/sorbet/rbi/gems/pry@0.15.0.rbi @@ -4,6 +4,7 @@ # This is an autogenerated file for types exported from the `pry` gem. # Please instead update this file by running `bin/tapioca gem pry`. + # source://pry//lib/pry/core_extensions.rb#115 class BasicObject # Return a binding object for the receiver. @@ -90,7 +91,7 @@ class Pry # @param options [Hash] # @return [Pry] a new instance of Pry # - # source://pry//lib/pry/pry_instance.rb#81 + # source://pry//lib/pry/pry_instance.rb#80 def initialize(options = T.unsafe(nil)); end # Add a sticky local to this Pry instance. @@ -100,43 +101,43 @@ class Pry # @yield The block that defines the content of the local. The local # will be refreshed at each tick of the repl loop. # - # source://pry//lib/pry/pry_instance.rb#212 + # source://pry//lib/pry/pry_instance.rb#210 def add_sticky_local(name, &block); end # Returns the value of attribute backtrace. # - # source://pry//lib/pry/pry_instance.rb#35 + # source://pry//lib/pry/pry_instance.rb#34 def backtrace; end # Sets the attribute backtrace # # @param value the value to set the attribute backtrace to. # - # source://pry//lib/pry/pry_instance.rb#35 + # source://pry//lib/pry/pry_instance.rb#34 def backtrace=(_arg0); end # Returns the value of attribute binding_stack. # - # source://pry//lib/pry/pry_instance.rb#32 + # source://pry//lib/pry/pry_instance.rb#31 def binding_stack; end # Sets the attribute binding_stack # # @param value the value to set the attribute binding_stack to. # - # source://pry//lib/pry/pry_instance.rb#32 + # source://pry//lib/pry/pry_instance.rb#31 def binding_stack=(_arg0); end - # source://forwardable/1.3.2/forwardable.rb#229 + # source://forwardable/1.3.3/forwardable.rb#231 def color(*args, **_arg1, &block); end - # source://forwardable/1.3.2/forwardable.rb#229 + # source://forwardable/1.3.3/forwardable.rb#231 def color=(*args, **_arg1, &block); end - # source://forwardable/1.3.2/forwardable.rb#229 + # source://forwardable/1.3.3/forwardable.rb#231 def commands(*args, **_arg1, &block); end - # source://forwardable/1.3.2/forwardable.rb#229 + # source://forwardable/1.3.3/forwardable.rb#231 def commands=(*args, **_arg1, &block); end # Generate completions. @@ -144,19 +145,19 @@ class Pry # @param str [String] What the user has typed so far # @return [Array] Possible completions # - # source://pry//lib/pry/pry_instance.rb#145 + # source://pry//lib/pry/pry_instance.rb#143 def complete(str); end # Returns the value of attribute config. # - # source://pry//lib/pry/pry_instance.rb#50 + # source://pry//lib/pry/pry_instance.rb#49 def config; end # The currently active `Binding`. # # @return [Binding] The currently active `Binding` for the session. # - # source://pry//lib/pry/pry_instance.rb#124 + # source://pry//lib/pry/pry_instance.rb#122 def current_binding; end # The currently active `Binding`. @@ -164,25 +165,25 @@ class Pry # # @return [Binding] The currently active `Binding` for the session. # - # source://pry//lib/pry/pry_instance.rb#124 + # source://pry//lib/pry/pry_instance.rb#122 def current_context; end # Returns the value of attribute custom_completions. # - # source://pry//lib/pry/pry_instance.rb#33 + # source://pry//lib/pry/pry_instance.rb#32 def custom_completions; end # Sets the attribute custom_completions # # @param value the value to set the attribute custom_completions to. # - # source://pry//lib/pry/pry_instance.rb#33 + # source://pry//lib/pry/pry_instance.rb#32 def custom_completions=(_arg0); end - # source://forwardable/1.3.2/forwardable.rb#229 + # source://forwardable/1.3.3/forwardable.rb#231 def editor(*args, **_arg1, &block); end - # source://forwardable/1.3.2/forwardable.rb#229 + # source://forwardable/1.3.3/forwardable.rb#231 def editor=(*args, **_arg1, &block); end # Pass a line of input to Pry. @@ -206,32 +207,32 @@ class Pry # will raise that exception. # @return [Boolean] Is Pry ready to accept more input? # - # source://pry//lib/pry/pry_instance.rb#255 + # source://pry//lib/pry/pry_instance.rb#253 def eval(line, options = T.unsafe(nil)); end # Returns the value of attribute eval_string. # - # source://pry//lib/pry/pry_instance.rb#34 + # source://pry//lib/pry/pry_instance.rb#33 def eval_string; end # Sets the attribute eval_string # # @param value the value to set the attribute eval_string to. # - # source://pry//lib/pry/pry_instance.rb#34 + # source://pry//lib/pry/pry_instance.rb#33 def eval_string=(_arg0); end - # source://pry//lib/pry/pry_instance.rb#286 + # source://pry//lib/pry/pry_instance.rb#284 def evaluate_ruby(code); end - # source://forwardable/1.3.2/forwardable.rb#229 + # source://forwardable/1.3.3/forwardable.rb#231 def exception_handler(*args, **_arg1, &block); end - # source://forwardable/1.3.2/forwardable.rb#229 + # source://forwardable/1.3.3/forwardable.rb#231 def exception_handler=(*args, **_arg1, &block); end # Execute the specified hook. - # If executing a hook raises an exception, we log that and then continue sucessfully. + # If executing a hook raises an exception, we log that and then continue successfully. # To debug such errors, use the global variable $pry_hook_error, which is set as a # result. # @@ -239,24 +240,24 @@ class Pry # @param args [*Object] The arguments to pass to the hook # @return [Object, Exception] The return value of the hook or the exception raised # - # source://pry//lib/pry/pry_instance.rb#394 + # source://pry//lib/pry/pry_instance.rb#392 def exec_hook(name, *args, &block); end # Returns the value of attribute exit_value. # - # source://pry//lib/pry/pry_instance.rb#42 + # source://pry//lib/pry/pry_instance.rb#41 def exit_value; end - # source://forwardable/1.3.2/forwardable.rb#229 + # source://forwardable/1.3.3/forwardable.rb#231 def extra_sticky_locals(*args, **_arg1, &block); end - # source://forwardable/1.3.2/forwardable.rb#229 + # source://forwardable/1.3.3/forwardable.rb#231 def extra_sticky_locals=(*args, **_arg1, &block); end - # source://forwardable/1.3.2/forwardable.rb#229 + # source://forwardable/1.3.3/forwardable.rb#231 def hooks(*args, **_arg1, &block); end - # source://forwardable/1.3.2/forwardable.rb#229 + # source://forwardable/1.3.3/forwardable.rb#231 def hooks=(*args, **_arg1, &block); end # Injects a local variable into the provided binding. @@ -266,87 +267,87 @@ class Pry # @param binding [Binding] The binding to set the local on. # @return [Object] The value the local was set to. # - # source://pry//lib/pry/pry_instance.rb#173 + # source://pry//lib/pry/pry_instance.rb#171 def inject_local(name, value, binding); end # Inject all the sticky locals into the current binding. # - # source://pry//lib/pry/pry_instance.rb#201 + # source://pry//lib/pry/pry_instance.rb#199 def inject_sticky_locals!; end - # source://forwardable/1.3.2/forwardable.rb#229 + # source://forwardable/1.3.3/forwardable.rb#231 def input(*args, **_arg1, &block); end - # source://forwardable/1.3.2/forwardable.rb#229 + # source://forwardable/1.3.3/forwardable.rb#231 def input=(*args, **_arg1, &block); end # @since v0.12.0 # - # source://pry//lib/pry/pry_instance.rb#45 + # source://pry//lib/pry/pry_instance.rb#44 def input_ring; end # Returns the value of attribute last_dir. # - # source://pry//lib/pry/pry_instance.rb#39 + # source://pry//lib/pry/pry_instance.rb#38 def last_dir; end # Sets the attribute last_dir # # @param value the value to set the attribute last_dir to. # - # source://pry//lib/pry/pry_instance.rb#39 + # source://pry//lib/pry/pry_instance.rb#38 def last_dir=(_arg0); end # Returns the value of attribute last_exception. # - # source://pry//lib/pry/pry_instance.rb#41 + # source://pry//lib/pry/pry_instance.rb#40 def last_exception; end # Set the last exception for a session. # # @param exception [Exception] The last exception. # - # source://pry//lib/pry/pry_instance.rb#418 + # source://pry//lib/pry/pry_instance.rb#416 def last_exception=(exception); end # Returns the value of attribute last_file. # - # source://pry//lib/pry/pry_instance.rb#38 + # source://pry//lib/pry/pry_instance.rb#37 def last_file; end # Sets the attribute last_file # # @param value the value to set the attribute last_file to. # - # source://pry//lib/pry/pry_instance.rb#38 + # source://pry//lib/pry/pry_instance.rb#37 def last_file=(_arg0); end # Returns the value of attribute last_result. # - # source://pry//lib/pry/pry_instance.rb#37 + # source://pry//lib/pry/pry_instance.rb#36 def last_result; end # Sets the attribute last_result # # @param value the value to set the attribute last_result to. # - # source://pry//lib/pry/pry_instance.rb#37 + # source://pry//lib/pry/pry_instance.rb#36 def last_result=(_arg0); end # @return [Boolean] True if the last result is an exception that was raised, # as opposed to simply an instance of Exception (like the result of # Exception.new) # - # source://pry//lib/pry/pry_instance.rb#440 + # source://pry//lib/pry/pry_instance.rb#438 def last_result_is_exception?; end # @return [Integer] The maximum amount of objects remembered by the inp and # out arrays. Defaults to 100. # - # source://pry//lib/pry/pry_instance.rb#190 + # source://pry//lib/pry/pry_instance.rb#188 def memory_size; end - # source://pry//lib/pry/pry_instance.rb#195 + # source://pry//lib/pry/pry_instance.rb#193 def memory_size=(size); end # Returns an output device @@ -354,15 +355,15 @@ class Pry # @example # pry_instance.output.puts "ohai!" # - # source://pry//lib/pry/pry_instance.rb#538 + # source://pry//lib/pry/pry_instance.rb#508 def output; end - # source://forwardable/1.3.2/forwardable.rb#229 + # source://forwardable/1.3.3/forwardable.rb#231 def output=(*args, **_arg1, &block); end # @since v0.12.0 # - # source://pry//lib/pry/pry_instance.rb#48 + # source://pry//lib/pry/pry_instance.rb#47 def output_ring; end # Returns the currently configured pager @@ -370,10 +371,10 @@ class Pry # @example # pry_instance.pager.page text # - # source://pry//lib/pry/pry_instance.rb#530 + # source://pry//lib/pry/pry_instance.rb#500 def pager; end - # source://forwardable/1.3.2/forwardable.rb#229 + # source://forwardable/1.3.3/forwardable.rb#231 def pager=(*args, **_arg1, &block); end # Pops the current prompt off of the prompt stack. If the prompt you are @@ -388,13 +389,13 @@ class Pry # pry.pop_prompt # => prompt1 # @return [Pry::Prompt] the prompt being popped # - # source://pry//lib/pry/pry_instance.rb#522 + # source://pry//lib/pry/pry_instance.rb#492 def pop_prompt; end - # source://forwardable/1.3.2/forwardable.rb#229 + # source://forwardable/1.3.3/forwardable.rb#231 def print(*args, **_arg1, &block); end - # source://forwardable/1.3.2/forwardable.rb#229 + # source://forwardable/1.3.3/forwardable.rb#231 def print=(*args, **_arg1, &block); end # If the given line is a valid command, process it in the context of the @@ -403,7 +404,7 @@ class Pry # @param val [String] The line to process. # @return [Boolean] `true` if `val` is a command, `false` otherwise # - # source://pry//lib/pry/pry_instance.rb#325 + # source://pry//lib/pry/pry_instance.rb#323 def process_command(val); end # Same as process_command, but outputs exceptions to `#output` instead of @@ -412,14 +413,14 @@ class Pry # @param val [String] The line to process. # @return [Boolean] `true` if `val` is a command, `false` otherwise # - # source://pry//lib/pry/pry_instance.rb#360 + # source://pry//lib/pry/pry_instance.rb#358 def process_command_safely(val); end # This is the prompt at the top of the prompt stack. # # @return [Pry::Prompt] the current prompt # - # source://pry//lib/pry/pry_instance.rb#101 + # source://pry//lib/pry/pry_instance.rb#99 def prompt; end # Sets the Pry prompt. @@ -427,19 +428,19 @@ class Pry # @param new_prompt [Pry::Prompt] # @return [void] # - # source://pry//lib/pry/pry_instance.rb#108 + # source://pry//lib/pry/pry_instance.rb#106 def prompt=(new_prompt); end # Push a binding for the given object onto the stack. If this instance is # currently stopped, mark it as usable again. # - # source://pry//lib/pry/pry_instance.rb#131 + # source://pry//lib/pry/pry_instance.rb#129 def push_binding(object); end # Initialize this instance by pushing its initial context into the binding # stack. If no target is given, start at the top level. # - # source://pry//lib/pry/pry_instance.rb#118 + # source://pry//lib/pry/pry_instance.rb#116 def push_initial_binding(target = T.unsafe(nil)); end # Pushes the current prompt onto a stack that it can be restored from later. @@ -450,20 +451,20 @@ class Pry # @param new_prompt [Pry::Prompt] # @return [Pry::Prompt] new_prompt # - # source://pry//lib/pry/pry_instance.rb#506 + # source://pry//lib/pry/pry_instance.rb#476 def push_prompt(new_prompt); end # Convenience accessor for the `quiet` config key. # # @return [Boolean] # - # source://pry//lib/pry/pry_instance.rb#592 + # source://pry//lib/pry/pry_instance.rb#562 def quiet?; end - # source://pry//lib/pry/pry_instance.rb#582 + # source://pry//lib/pry/pry_instance.rb#552 def raise_up(*args); end - # source://pry//lib/pry/pry_instance.rb#586 + # source://pry//lib/pry/pry_instance.rb#556 def raise_up!(*args); end # Raise an exception out of Pry. @@ -476,24 +477,24 @@ class Pry # and a mistake in specifying that exception. # # (i.e. raise-up RunThymeError.new should not be the same as - # raise-up NameError, "unititialized constant RunThymeError") + # raise-up NameError, "uninitialized constant RunThymeError") # # @raise [TypeError] # - # source://pry//lib/pry/pry_instance.rb#554 + # source://pry//lib/pry/pry_instance.rb#524 def raise_up_common(force, *args); end # Potentially deprecated. Use `Pry::REPL.new(pry, :target => target).start` # (If nested sessions are going to exist, this method is fine, but a goal is # to come up with an alternative to nested sessions altogether.) # - # source://pry//lib/pry/pry_instance.rb#282 + # source://pry//lib/pry/pry_instance.rb#280 def repl(target = T.unsafe(nil)); end # Reset the current eval string. If the user has entered part of a multiline # expression, this discards that input. # - # source://pry//lib/pry/pry_instance.rb#231 + # source://pry//lib/pry/pry_instance.rb#229 def reset_eval_string; end # Run the specified command. @@ -503,14 +504,14 @@ class Pry # @param val [String] The command (and its params) to execute. # @return [Pry::Command::VOID_VALUE] # - # source://pry//lib/pry/pry_instance.rb#375 + # source://pry//lib/pry/pry_instance.rb#373 def run_command(val); end # Returns the appropriate prompt to use. # # @return [String] The prompt. # - # source://pry//lib/pry/pry_instance.rb#453 + # source://pry//lib/pry/pry_instance.rb#451 def select_prompt; end # Set the last result of an eval. @@ -519,7 +520,7 @@ class Pry # @param result [Object] The result. # @param code [String] The code that was run. # - # source://pry//lib/pry/pry_instance.rb#409 + # source://pry//lib/pry/pry_instance.rb#407 def set_last_result(result, code = T.unsafe(nil)); end # Whether the print proc should be invoked. @@ -527,27 +528,27 @@ class Pry # # @return [Boolean] Whether the print proc should be invoked. # - # source://pry//lib/pry/pry_instance.rb#447 + # source://pry//lib/pry/pry_instance.rb#445 def should_print?; end # Output the result or pass to an exception handler (if result is an exception). # - # source://pry//lib/pry/pry_instance.rb#298 + # source://pry//lib/pry/pry_instance.rb#296 def show_result(result); end - # source://pry//lib/pry/pry_instance.rb#216 + # source://pry//lib/pry/pry_instance.rb#214 def sticky_locals; end # Returns the value of attribute suppress_output. # - # source://pry//lib/pry/pry_instance.rb#36 + # source://pry//lib/pry/pry_instance.rb#35 def suppress_output; end # Sets the attribute suppress_output # # @param value the value to set the attribute suppress_output to. # - # source://pry//lib/pry/pry_instance.rb#36 + # source://pry//lib/pry/pry_instance.rb#35 def suppress_output=(_arg0); end # Update Pry's internal state after evalling code. @@ -555,25 +556,22 @@ class Pry # # @param code [String] The code we just eval'd # - # source://pry//lib/pry/pry_instance.rb#428 + # source://pry//lib/pry/pry_instance.rb#426 def update_input_history(code); end private # Force `eval_string` into the encoding of `val`. [Issue #284] # - # source://pry//lib/pry/pry_instance.rb#680 + # source://pry//lib/pry/pry_instance.rb#650 def ensure_correct_encoding!(val); end - # source://pry//lib/pry/pry_instance.rb#688 - def generate_prompt(prompt_proc, conf); end - - # source://pry//lib/pry/pry_instance.rb#598 + # source://pry//lib/pry/pry_instance.rb#568 def handle_line(line, options); end # the array that the prompt stack is stored in # - # source://pry//lib/pry/pry_instance.rb#697 + # source://pry//lib/pry/pry_instance.rb#659 def prompt_stack; end class << self @@ -597,7 +595,7 @@ class Pry # source://pry//lib/pry/wrapped_module.rb#7 def WrappedModule(obj); end - # source://pry//lib/pry/pry_class.rb#294 + # source://pry//lib/pry/pry_class.rb#296 def auto_resize!; end # Return a `Binding` object for `target` or return `target` if it is @@ -607,7 +605,7 @@ class Pry # @param target [Object] The object to get a `Binding` object for. # @return [Binding] The `Binding` object. # - # source://pry//lib/pry/pry_class.rb#347 + # source://pry//lib/pry/pry_class.rb#349 def binding_for(target); end # Returns the value of attribute cli. @@ -622,16 +620,16 @@ class Pry # source://pry//lib/pry/pry_class.rb#22 def cli=(_arg0); end - # source://forwardable/1.3.2/forwardable.rb#229 + # source://forwardable/1.3.3/forwardable.rb#231 def color(*args, **_arg1, &block); end - # source://forwardable/1.3.2/forwardable.rb#229 + # source://forwardable/1.3.3/forwardable.rb#231 def color=(*args, **_arg1, &block); end - # source://forwardable/1.3.2/forwardable.rb#229 + # source://forwardable/1.3.3/forwardable.rb#231 def commands(*args, **_arg1, &block); end - # source://forwardable/1.3.2/forwardable.rb#229 + # source://forwardable/1.3.3/forwardable.rb#231 def commands=(*args, **_arg1, &block); end # Returns the value of attribute config. @@ -657,7 +655,7 @@ class Pry # source://pry//lib/pry/pry_class.rb#46 def configure; end - # source://pry//lib/pry/pry_class.rb#380 + # source://pry//lib/pry/pry_class.rb#382 def critical_section; end # @return [Pry::Config] Returns a value store for an instance of Pry running on the current thread. @@ -689,10 +687,10 @@ class Pry # source://pry//lib/pry/pry_class.rb#18 def custom_completions=(_arg0); end - # source://forwardable/1.3.2/forwardable.rb#229 + # source://forwardable/1.3.3/forwardable.rb#231 def editor(*args, **_arg1, &block); end - # source://forwardable/1.3.2/forwardable.rb#229 + # source://forwardable/1.3.3/forwardable.rb#231 def editor=(*args, **_arg1, &block); end # Returns the value of attribute eval_path. @@ -707,47 +705,47 @@ class Pry # source://pry//lib/pry/pry_class.rb#21 def eval_path=(_arg0); end - # source://forwardable/1.3.2/forwardable.rb#229 + # source://forwardable/1.3.3/forwardable.rb#231 def exception_handler(*args, **_arg1, &block); end - # source://forwardable/1.3.2/forwardable.rb#229 + # source://forwardable/1.3.3/forwardable.rb#231 def exception_handler=(*args, **_arg1, &block); end - # source://forwardable/1.3.2/forwardable.rb#229 + # source://forwardable/1.3.3/forwardable.rb#231 def extra_sticky_locals(*args, **_arg1, &block); end - # source://forwardable/1.3.2/forwardable.rb#229 + # source://forwardable/1.3.3/forwardable.rb#231 def extra_sticky_locals=(*args, **_arg1, &block); end # source://pry//lib/pry/pry_class.rb#139 def final_session_setup; end - # source://forwardable/1.3.2/forwardable.rb#229 + # source://forwardable/1.3.3/forwardable.rb#231 def history(*args, **_arg1, &block); end - # source://forwardable/1.3.2/forwardable.rb#229 + # source://forwardable/1.3.3/forwardable.rb#231 def history=(*args, **_arg1, &block); end - # source://forwardable/1.3.2/forwardable.rb#229 + # source://forwardable/1.3.3/forwardable.rb#231 def hooks(*args, **_arg1, &block); end - # source://forwardable/1.3.2/forwardable.rb#229 + # source://forwardable/1.3.3/forwardable.rb#231 def hooks=(*args, **_arg1, &block); end # @return [Boolean] # - # source://pry//lib/pry/pry_class.rb#375 + # source://pry//lib/pry/pry_class.rb#377 def in_critical_section?; end # Basic initialization. # - # source://pry//lib/pry/pry_class.rb#338 + # source://pry//lib/pry/pry_class.rb#340 def init; end # @return [Boolean] Whether this is the first time a Pry session has # been started since loading the Pry class. # - # source://pry//lib/pry/pry_class.rb#257 + # source://pry//lib/pry/pry_class.rb#259 def initial_session?; end # Do basic setup for initial session including: loading pryrc, plugins, @@ -756,10 +754,10 @@ class Pry # source://pry//lib/pry/pry_class.rb#129 def initial_session_setup; end - # source://forwardable/1.3.2/forwardable.rb#229 + # source://forwardable/1.3.3/forwardable.rb#231 def input(*args, **_arg1, &block); end - # source://forwardable/1.3.2/forwardable.rb#229 + # source://forwardable/1.3.3/forwardable.rb#231 def input=(*args, **_arg1, &block); end # Returns the value of attribute last_internal_error. @@ -797,12 +795,12 @@ class Pry # # @param file_name [String] File name to load through the REPL. # - # source://pry//lib/pry/pry_class.rb#202 + # source://pry//lib/pry/pry_class.rb#204 def load_file_through_repl(file_name); end # Load Readline history if required. # - # source://pry//lib/pry/pry_class.rb#251 + # source://pry//lib/pry/pry_class.rb#253 def load_history; end # Load RC files if appropriate This method can also be used to reload the @@ -830,34 +828,34 @@ class Pry # source://pry//lib/pry/pry_class.rb#55 def main; end - # source://forwardable/1.3.2/forwardable.rb#229 + # source://forwardable/1.3.3/forwardable.rb#231 def memory_size(*args, **_arg1, &block); end - # source://forwardable/1.3.2/forwardable.rb#229 + # source://forwardable/1.3.3/forwardable.rb#231 def memory_size=(*args, **_arg1, &block); end - # source://forwardable/1.3.2/forwardable.rb#229 + # source://forwardable/1.3.3/forwardable.rb#231 def output(*args, **_arg1, &block); end - # source://forwardable/1.3.2/forwardable.rb#229 + # source://forwardable/1.3.3/forwardable.rb#231 def output=(*args, **_arg1, &block); end - # source://forwardable/1.3.2/forwardable.rb#229 + # source://forwardable/1.3.3/forwardable.rb#231 def pager(*args, **_arg1, &block); end - # source://forwardable/1.3.2/forwardable.rb#229 + # source://forwardable/1.3.3/forwardable.rb#231 def pager=(*args, **_arg1, &block); end - # source://forwardable/1.3.2/forwardable.rb#229 + # source://forwardable/1.3.3/forwardable.rb#231 def print(*args, **_arg1, &block); end - # source://forwardable/1.3.2/forwardable.rb#229 + # source://forwardable/1.3.3/forwardable.rb#231 def print=(*args, **_arg1, &block); end - # source://forwardable/1.3.2/forwardable.rb#229 + # source://forwardable/1.3.3/forwardable.rb#231 def prompt(*args, **_arg1, &block); end - # source://forwardable/1.3.2/forwardable.rb#229 + # source://forwardable/1.3.3/forwardable.rb#231 def prompt=(*args, **_arg1, &block); end # Returns the value of attribute quiet. @@ -884,7 +882,7 @@ class Pry # Set all the configurable options back to their default values # - # source://pry//lib/pry/pry_class.rb#326 + # source://pry//lib/pry/pry_class.rb#328 def reset_defaults; end # Run a Pry command from outside a session. The commands available are @@ -903,7 +901,7 @@ class Pry # @param options [Hash] Optional named parameters. # @return [nil] # - # source://pry//lib/pry/pry_class.rb#277 + # source://pry//lib/pry/pry_class.rb#279 def run_command(command_string, options = T.unsafe(nil)); end # Start a Pry REPL. @@ -926,14 +924,14 @@ class Pry # source://pry//lib/pry/pry_class.rb#156 def start(target = T.unsafe(nil), options = T.unsafe(nil)); end - # source://pry//lib/pry/pry_class.rb#354 + # source://pry//lib/pry/pry_class.rb#356 def toplevel_binding; end # Sets the attribute toplevel_binding # # @param value the value to set the attribute toplevel_binding to. # - # source://pry//lib/pry/pry_class.rb#372 + # source://pry//lib/pry/pry_class.rb#374 def toplevel_binding=(_arg0); end # An inspector that clips the output to `max_length` chars. @@ -945,14 +943,14 @@ class Pry # @param options [Hash] # @return [String] The string representation of `obj`. # - # source://pry//lib/pry/pry_class.rb#225 + # source://pry//lib/pry/pry_class.rb#227 def view_clip(obj, options = T.unsafe(nil)); end private # @return [Boolean] # - # source://pry//lib/pry/pry_class.rb#388 + # source://pry//lib/pry/pry_class.rb#390 def mutex_available?; end end end @@ -995,7 +993,7 @@ Pry::BasicObject::Pry = Pry # # Create subclasses using {Pry::CommandSet#command}. # -# source://pry//lib/pry/block_command.rb#13 +# source://pry//lib/pry/block_command.rb#10 class Pry::BlockCommand < ::Pry::Command # Call the block that was registered with this command. # @@ -1156,7 +1154,7 @@ class Pry::ClassCommand < ::Pry::Command # The actual body of your command should go here. # - # The `opts` mehod can be called to get the options that Pry::Slop has passed, + # The `opts` method can be called to get the options that Pry::Slop has passed, # and `args` gives the remaining, unparsed arguments. # # The return value of this method is discarded unless the command was @@ -1212,7 +1210,7 @@ class Pry::ClassCommand < ::Pry::Command # end # end # end - # @example Define the invokation block anywhere you want + # @example Define the invocation block anywhere you want # def subcommands(cmd) # cmd.command :download do |opt| # description 'Downloads a content from a server' @@ -1824,7 +1822,7 @@ Pry::CodeFile::INITIAL_PWD = T.let(T.unsafe(nil), String) # object the user wants (applying precedence rules in doing so -- i.e methods # get precedence over commands with the same name) and 2. Returning # the appropriate object. If the user fails to provide a string -# identifer for the object (i.e they pass in `nil` or "") then the +# identifier for the object (i.e they pass in `nil` or "") then the # object looked up will be the 'current method' or 'current class' # associated with the Binding. # @@ -1853,7 +1851,7 @@ class Pry::CodeObject # source://pry//lib/pry/code_object.rb#118 def default_lookup; end - # when no paramter is given (i.e CodeObject.lookup(nil)), then we + # when no parameter is given (i.e CodeObject.lookup(nil)), then we # lookup the 'current object' from the binding. # # source://pry//lib/pry/code_object.rb#102 @@ -2018,7 +2016,7 @@ class Pry::ColorPrinter < ::PP end end -# N.B. using a regular expresion here so that "raise-up 'foo'" does the right thing. +# N.B. using a regular expression here so that "raise-up 'foo'" does the right thing. # # source://pry//lib/pry/command.rb#11 class Pry::Command @@ -2538,7 +2536,7 @@ class Pry::Command::AmendLine < ::Pry::ClassCommand # Takes two numbers that are 1-indexed, and returns a range (or # number) that is 0-indexed. 1-indexed means the first element is - # indentified by 1 rather than by 0 (as is the case for Ruby arrays). + # identified by 1 rather than by 0 (as is the case for Ruby arrays). # # @param start_line_number [Fixnum] One-indexed number. # @param end_line_number [Fixnum] One-indexed number. @@ -2753,7 +2751,7 @@ end # source://pry//lib/pry/commands/cd.rb#5 class Pry::Command::Cd < ::Pry::ClassCommand - # source://pry//lib/pry/commands/cd.rb#25 + # source://pry//lib/pry/commands/cd.rb#27 def process; end end @@ -2947,97 +2945,97 @@ end # source://pry//lib/pry/commands/edit.rb#5 class Pry::Command::Edit < ::Pry::ClassCommand - # source://pry//lib/pry/commands/edit.rb#89 + # source://pry//lib/pry/commands/edit.rb#91 def apply_runtime_patch; end # @return [Boolean] # - # source://pry//lib/pry/commands/edit.rb#172 + # source://pry//lib/pry/commands/edit.rb#174 def bad_option_combination?; end - # source://pry//lib/pry/commands/edit.rb#152 + # source://pry//lib/pry/commands/edit.rb#154 def code_object; end # @raise [CommandError] # - # source://pry//lib/pry/commands/edit.rb#105 + # source://pry//lib/pry/commands/edit.rb#107 def ensure_file_name_is_valid(file_name); end - # source://pry//lib/pry/commands/edit.rb#119 + # source://pry//lib/pry/commands/edit.rb#121 def file_and_line; end - # source://pry//lib/pry/commands/edit.rb#115 + # source://pry//lib/pry/commands/edit.rb#117 def file_and_line_for_current_exception; end # @return [Boolean] # - # source://pry//lib/pry/commands/edit.rb#78 + # source://pry//lib/pry/commands/edit.rb#80 def file_based_exception?; end - # source://pry//lib/pry/commands/edit.rb#135 + # source://pry//lib/pry/commands/edit.rb#137 def file_edit; end - # source://pry//lib/pry/commands/edit.rb#148 + # source://pry//lib/pry/commands/edit.rb#150 def filename_argument; end - # source://pry//lib/pry/commands/edit.rb#203 + # source://pry//lib/pry/commands/edit.rb#205 def initial_temp_file_content; end - # source://pry//lib/pry/commands/edit.rb#180 + # source://pry//lib/pry/commands/edit.rb#182 def input_expression; end # @return [Boolean] # - # source://pry//lib/pry/commands/edit.rb#195 + # source://pry//lib/pry/commands/edit.rb#197 def never_reload?; end - # source://pry//lib/pry/commands/edit.rb#25 + # source://pry//lib/pry/commands/edit.rb#27 def options(opt); end # @return [Boolean] # - # source://pry//lib/pry/commands/edit.rb#168 + # source://pry//lib/pry/commands/edit.rb#170 def patch_exception?; end # @return [Boolean] # - # source://pry//lib/pry/commands/edit.rb#163 + # source://pry//lib/pry/commands/edit.rb#165 def previously_patched?(code_object); end # @return [Boolean] # - # source://pry//lib/pry/commands/edit.rb#215 + # source://pry//lib/pry/commands/edit.rb#217 def probably_a_file?(str); end - # source://pry//lib/pry/commands/edit.rb#46 + # source://pry//lib/pry/commands/edit.rb#48 def process; end # @return [Boolean] # - # source://pry//lib/pry/commands/edit.rb#158 + # source://pry//lib/pry/commands/edit.rb#160 def pry_method?(code_object); end # @return [Boolean] # - # source://pry//lib/pry/commands/edit.rb#199 + # source://pry//lib/pry/commands/edit.rb#201 def reload?(file_name = T.unsafe(nil)); end # @return [Boolean] # - # source://pry//lib/pry/commands/edit.rb#191 + # source://pry//lib/pry/commands/edit.rb#193 def reloadable?; end - # source://pry//lib/pry/commands/edit.rb#69 + # source://pry//lib/pry/commands/edit.rb#71 def repl_edit; end # @return [Boolean] # - # source://pry//lib/pry/commands/edit.rb#64 + # source://pry//lib/pry/commands/edit.rb#66 def repl_edit?; end # @return [Boolean] # - # source://pry//lib/pry/commands/edit.rb#82 + # source://pry//lib/pry/commands/edit.rb#84 def runtime_patch?; end end @@ -3420,31 +3418,255 @@ class Pry::Command::ListInspectors < ::Pry::ClassCommand def selected_text; end end -# source://pry//lib/pry/commands/ls/jruby_hacks.rb#5 +# source://pry//lib/pry/commands/ls/config.rb#5 class Pry::Command::Ls < ::Pry::ClassCommand # Exclude -q, -v and --grep because they, # don't specify what the user wants to see. # # @return [Boolean] # - # source://pry//lib/pry/commands/ls.rb#85 + # source://pry//lib/pry/commands/ls.rb#64 def no_user_opts?; end - # source://pry//lib/pry/commands/ls.rb#52 + # source://pry//lib/pry/commands/ls.rb#31 def options(opt); end - # source://pry//lib/pry/commands/ls.rb#90 + # source://pry//lib/pry/commands/ls.rb#69 def process; end private - # source://pry//lib/pry/commands/ls.rb#106 + # source://pry//lib/pry/commands/ls.rb#85 def error_list; end - # source://pry//lib/pry/commands/ls.rb#126 + # source://pry//lib/pry/commands/ls.rb#105 def raise_errors_if_arguments_are_weird; end end +# source://pry//lib/pry/commands/ls/config.rb#6 +class Pry::Command::Ls::Config + # Returns the value of attribute builtin_global_color. + # + # source://pry//lib/pry/commands/ls/config.rb#7 + def builtin_global_color; end + + # Sets the attribute builtin_global_color + # + # @param value the value to set the attribute builtin_global_color to. + # + # source://pry//lib/pry/commands/ls/config.rb#7 + def builtin_global_color=(_arg0); end + + # Returns the value of attribute ceiling. + # + # source://pry//lib/pry/commands/ls/config.rb#7 + def ceiling; end + + # Sets the attribute ceiling + # + # @param value the value to set the attribute ceiling to. + # + # source://pry//lib/pry/commands/ls/config.rb#7 + def ceiling=(_arg0); end + + # Returns the value of attribute class_constant_color. + # + # source://pry//lib/pry/commands/ls/config.rb#7 + def class_constant_color; end + + # Sets the attribute class_constant_color + # + # @param value the value to set the attribute class_constant_color to. + # + # source://pry//lib/pry/commands/ls/config.rb#7 + def class_constant_color=(_arg0); end + + # Returns the value of attribute class_var_color. + # + # source://pry//lib/pry/commands/ls/config.rb#7 + def class_var_color; end + + # Sets the attribute class_var_color + # + # @param value the value to set the attribute class_var_color to. + # + # source://pry//lib/pry/commands/ls/config.rb#7 + def class_var_color=(_arg0); end + + # Returns the value of attribute constant_color. + # + # source://pry//lib/pry/commands/ls/config.rb#7 + def constant_color; end + + # Sets the attribute constant_color + # + # @param value the value to set the attribute constant_color to. + # + # source://pry//lib/pry/commands/ls/config.rb#7 + def constant_color=(_arg0); end + + # Returns the value of attribute exception_constant_color. + # + # source://pry//lib/pry/commands/ls/config.rb#7 + def exception_constant_color; end + + # Sets the attribute exception_constant_color + # + # @param value the value to set the attribute exception_constant_color to. + # + # source://pry//lib/pry/commands/ls/config.rb#7 + def exception_constant_color=(_arg0); end + + # Returns the value of attribute global_var_color. + # + # source://pry//lib/pry/commands/ls/config.rb#7 + def global_var_color; end + + # Sets the attribute global_var_color + # + # @param value the value to set the attribute global_var_color to. + # + # source://pry//lib/pry/commands/ls/config.rb#7 + def global_var_color=(_arg0); end + + # Returns the value of attribute heading_color. + # + # source://pry//lib/pry/commands/ls/config.rb#7 + def heading_color; end + + # Sets the attribute heading_color + # + # @param value the value to set the attribute heading_color to. + # + # source://pry//lib/pry/commands/ls/config.rb#7 + def heading_color=(_arg0); end + + # Returns the value of attribute instance_var_color. + # + # source://pry//lib/pry/commands/ls/config.rb#7 + def instance_var_color; end + + # Sets the attribute instance_var_color + # + # @param value the value to set the attribute instance_var_color to. + # + # source://pry//lib/pry/commands/ls/config.rb#7 + def instance_var_color=(_arg0); end + + # Returns the value of attribute local_var_color. + # + # source://pry//lib/pry/commands/ls/config.rb#7 + def local_var_color; end + + # Sets the attribute local_var_color + # + # @param value the value to set the attribute local_var_color to. + # + # source://pry//lib/pry/commands/ls/config.rb#7 + def local_var_color=(_arg0); end + + # Returns the value of attribute method_missing_color. + # + # source://pry//lib/pry/commands/ls/config.rb#7 + def method_missing_color; end + + # Sets the attribute method_missing_color + # + # @param value the value to set the attribute method_missing_color to. + # + # source://pry//lib/pry/commands/ls/config.rb#7 + def method_missing_color=(_arg0); end + + # Returns the value of attribute private_method_color. + # + # source://pry//lib/pry/commands/ls/config.rb#7 + def private_method_color; end + + # Sets the attribute private_method_color + # + # @param value the value to set the attribute private_method_color to. + # + # source://pry//lib/pry/commands/ls/config.rb#7 + def private_method_color=(_arg0); end + + # Returns the value of attribute protected_method_color. + # + # source://pry//lib/pry/commands/ls/config.rb#7 + def protected_method_color; end + + # Sets the attribute protected_method_color + # + # @param value the value to set the attribute protected_method_color to. + # + # source://pry//lib/pry/commands/ls/config.rb#7 + def protected_method_color=(_arg0); end + + # Returns the value of attribute pry_var_color. + # + # source://pry//lib/pry/commands/ls/config.rb#7 + def pry_var_color; end + + # Sets the attribute pry_var_color + # + # @param value the value to set the attribute pry_var_color to. + # + # source://pry//lib/pry/commands/ls/config.rb#7 + def pry_var_color=(_arg0); end + + # Returns the value of attribute pseudo_global_color. + # + # source://pry//lib/pry/commands/ls/config.rb#7 + def pseudo_global_color; end + + # Sets the attribute pseudo_global_color + # + # @param value the value to set the attribute pseudo_global_color to. + # + # source://pry//lib/pry/commands/ls/config.rb#7 + def pseudo_global_color=(_arg0); end + + # Returns the value of attribute public_method_color. + # + # source://pry//lib/pry/commands/ls/config.rb#7 + def public_method_color; end + + # Sets the attribute public_method_color + # + # @param value the value to set the attribute public_method_color to. + # + # source://pry//lib/pry/commands/ls/config.rb#7 + def public_method_color=(_arg0); end + + # Returns the value of attribute separator. + # + # source://pry//lib/pry/commands/ls/config.rb#7 + def separator; end + + # Sets the attribute separator + # + # @param value the value to set the attribute separator to. + # + # source://pry//lib/pry/commands/ls/config.rb#7 + def separator=(_arg0); end + + # Returns the value of attribute unloaded_constant_color. + # + # source://pry//lib/pry/commands/ls/config.rb#7 + def unloaded_constant_color; end + + # Sets the attribute unloaded_constant_color + # + # @param value the value to set the attribute unloaded_constant_color to. + # + # source://pry//lib/pry/commands/ls/config.rb#7 + def unloaded_constant_color=(_arg0); end + + class << self + # source://pry//lib/pry/commands/ls/config.rb#26 + def default; end + end +end + # source://pry//lib/pry/commands/ls/constants.rb#6 class Pry::Command::Ls::Constants < ::Pry::Command::Ls::Formatter include ::Pry::Command::Ls::Interrogatable @@ -3476,9 +3698,6 @@ end # source://pry//lib/pry/commands/ls/constants.rb#7 Pry::Command::Ls::Constants::DEPRECATED_CONSTANTS = T.let(T.unsafe(nil), Array) -# source://pry//lib/pry/commands/ls.rb#6 -Pry::Command::Ls::DEFAULT_OPTIONS = T.let(T.unsafe(nil), Hash) - # source://pry//lib/pry/commands/ls/formatter.rb#6 class Pry::Command::Ls::Formatter # @return [Formatter] a new instance of Formatter @@ -3529,7 +3748,7 @@ class Pry::Command::Ls::Formatter def output_self; end end -# source://pry//lib/pry/commands/ls/globals.rb#7 +# source://pry//lib/pry/commands/ls/globals.rb#6 class Pry::Command::Ls::Globals < ::Pry::Command::Ls::Formatter # @return [Globals] a new instance of Globals # @@ -3932,7 +4151,7 @@ end # source://pry//lib/pry/commands/shell_mode.rb#5 class Pry::Command::ShellMode < ::Pry::ClassCommand - # source://pry//lib/pry/commands/shell_mode.rb#14 + # source://pry//lib/pry/commands/shell_mode.rb#15 def process; end end @@ -4163,13 +4382,10 @@ class Pry::Command::WatchExpression < ::Pry::ClassCommand private - # TODO: fix arguments. - # https://github.com/pry/pry/commit/b031df2f2f5850ee6e9018f33d35f3485a9b0423 - # - # source://pry//lib/pry/commands/watch_expression.rb#93 - def add_expression(_arguments); end + # source://pry//lib/pry/commands/watch_expression.rb#91 + def add_expression; end - # source://pry//lib/pry/commands/watch_expression.rb#98 + # source://pry//lib/pry/commands/watch_expression.rb#96 def add_hook; end # source://pry//lib/pry/commands/watch_expression.rb#59 @@ -4194,7 +4410,7 @@ class Pry::Command::WatchExpression::Expression # Has the value of the expression changed? # - # We use the pretty-printed string represenation to detect differences + # We use the pretty-printed string representation to detect differences # as this avoids problems with dup (causes too many differences) and == # (causes too few) # @@ -4626,7 +4842,7 @@ class Pry::CommandSet # # @param sets [Array] Command sets, all of the commands of which # will be imported. - # @return [Pry::CommandSet] Returns the reciever (a command set). + # @return [Pry::CommandSet] Returns the receiver (a command set). # # source://pry//lib/pry/command_set.rb#149 def import(*sets); end @@ -4635,7 +4851,7 @@ class Pry::CommandSet # # @param set [CommandSet] Set to import commands from # @param matches [Array] Commands to import - # @return [Pry::CommandSet] Returns the reciever (a command set). + # @return [Pry::CommandSet] Returns the receiver (a command set). # # source://pry//lib/pry/command_set.rb#161 def import_from(set, *matches); end @@ -4714,32 +4930,40 @@ end # @api private # @since v0.13.0 # -# source://pry//lib/pry/command_state.rb#14 +# source://pry//lib/pry/command_state.rb#12 class Pry::CommandState # @api private # @return [CommandState] a new instance of CommandState # @since v0.13.0 # - # source://pry//lib/pry/command_state.rb#19 + # source://pry//lib/pry/command_state.rb#17 def initialize; end # @api private # @since v0.13.0 # - # source://pry//lib/pry/command_state.rb#27 - def reset(command_name); end + # source://pry//lib/pry/command_state.rb#25 + def reset(command_class); end + + # @api private + # @since v0.13.0 + # + # source://pry//lib/pry/command_state.rb#21 + def state_for(command_class); end + + private # @api private # @since v0.13.0 # - # source://pry//lib/pry/command_state.rb#23 - def state_for(command_name); end + # source://pry//lib/pry/command_state.rb#31 + def command_struct(command_class); end class << self # @api private # @since v0.13.0 # - # source://pry//lib/pry/command_state.rb#15 + # source://pry//lib/pry/command_state.rb#13 def default; end end end @@ -4756,17 +4980,17 @@ class Pry::Config # @api private # @return [Config] a new instance of Config # - # source://pry//lib/pry/config.rb#154 + # source://pry//lib/pry/config.rb#151 def initialize; end # @api private # - # source://pry//lib/pry/config.rb#234 + # source://pry//lib/pry/config.rb#224 def [](attr); end # @api private # - # source://pry//lib/pry/config.rb#230 + # source://pry//lib/pry/config.rb#220 def []=(attr, value); end # @api private @@ -4838,12 +5062,12 @@ class Pry::Config # @api private # - # source://pry//lib/pry/config.rb#259 + # source://pry//lib/pry/config.rb#249 def control_d_handler; end # @api private # - # source://pry//lib/pry/config.rb#260 + # source://pry//lib/pry/config.rb#250 def control_d_handler=(value); end # @api private @@ -4899,16 +5123,6 @@ class Pry::Config # source://pry//lib/pry/config/attributable.rb#18 def exception_handler=(_arg0); end - # @api private - # @deprecated - # @return [Array] Exception that Pry shouldn't rescue - # - # source://pry//lib/pry/config/attributable.rb#13 - def exception_whitelist; end - - # source://pry//lib/pry/config/attributable.rb#18 - def exception_whitelist=(_arg0); end - # @api private # @return [String] a line of code to execute in context before the session # starts @@ -4992,7 +5206,7 @@ class Pry::Config def hooks=(_arg0); end # @api private - # @return [IO, #readline] he object from which Pry retrieves its lines of + # @return [IO, #readline] the object from which Pry retrieves its lines of # input # # source://pry//lib/pry/config/attributable.rb#13 @@ -5021,19 +5235,28 @@ class Pry::Config # @api private # - # source://pry//lib/pry/config.rb#226 + # source://pry//lib/pry/config.rb#216 def merge(config_hash); end # @api private # - # source://pry//lib/pry/config.rb#221 + # source://pry//lib/pry/config.rb#211 def merge!(config_hash); end # @api private # - # source://pry//lib/pry/config.rb#239 + # source://pry//lib/pry/config.rb#229 def method_missing(method_name, *args, &_block); end + # @api private + # @return [Boolean] + # + # source://pry//lib/pry/config/attributable.rb#13 + def multiline; end + + # source://pry//lib/pry/config/attributable.rb#18 + def multiline=(_arg0); end + # @api private # @return [IO, #puts] where Pry should output results provided by {input} # @@ -5195,6 +5418,11 @@ class Pry::Config private + # @api private + # + # source://pry//lib/pry/config.rb#279 + def choose_input; end + # @api private # # source://pry//lib/pry/config.rb#303 @@ -5202,18 +5430,18 @@ class Pry::Config # @api private # - # source://pry//lib/pry/config.rb#254 + # source://pry//lib/pry/config.rb#244 def initialize_dup(other); end # @api private # # source://pry//lib/pry/config.rb#289 - def lazy_readline; end + def load_readline; end # @api private # @return [Boolean] # - # source://pry//lib/pry/config.rb#250 + # source://pry//lib/pry/config.rb#240 def respond_to_missing?(method_name, include_all = T.unsafe(nil)); end end @@ -5335,7 +5563,7 @@ module Pry::ControlDHandler end end -# source://pry//lib/pry/pry_instance.rb#59 +# source://pry//lib/pry/pry_instance.rb#58 Pry::EMPTY_COMPLETIONS = T.let(T.unsafe(nil), Array) # source://pry//lib/pry/editor.rb#6 @@ -5446,7 +5674,7 @@ module Pry::ExceptionHandler # @api private # @since v0.13.0 # - # source://pry//lib/pry/exception_handler.rb#37 + # source://pry//lib/pry/exception_handler.rb#42 def cause_text(cause); end # @api private @@ -6734,7 +6962,7 @@ class Pry::Indent # @return [Indent] a new instance of Indent # - # source://pry//lib/pry/indent.rb#104 + # source://pry//lib/pry/indent.rb#107 def initialize(pry_instance = T.unsafe(nil)); end # Return a string which, when printed, will rewrite the previous line with @@ -6746,7 +6974,7 @@ class Pry::Indent # the difference in length between the old line and the new one) # @return [String] correctly indented line # - # source://pry//lib/pry/indent.rb#393 + # source://pry//lib/pry/indent.rb#395 def correct_indentation(prompt, code, overhang = T.unsafe(nil)); end # Get the indentation for the start of the next line. @@ -6755,7 +6983,7 @@ class Pry::Indent # # @return String The correct number of spaces # - # source://pry//lib/pry/indent.rb#181 + # source://pry//lib/pry/indent.rb#185 def current_prefix; end # If the code just before an "if" or "while" token on a line looks like the @@ -6764,7 +6992,7 @@ class Pry::Indent # # @return [Boolean] # - # source://pry//lib/pry/indent.rb#264 + # source://pry//lib/pry/indent.rb#268 def end_of_statement?(last_token, last_kind); end # Are we currently in the middle of a string literal. @@ -6775,7 +7003,7 @@ class Pry::Indent # # @return [Boolean] Boolean # - # source://pry//lib/pry/indent.rb#275 + # source://pry//lib/pry/indent.rb#279 def in_string?; end # Indents a string and returns it. This string can either be a single line @@ -6798,7 +7026,7 @@ class Pry::Indent # @param input [String] The input string to indent. # @return [String] The indented version of +input+. # - # source://pry//lib/pry/indent.rb#142 + # source://pry//lib/pry/indent.rb#146 def indent(input); end # @return [String] String containing the spaces to be inserted before the next line. @@ -6819,9 +7047,14 @@ class Pry::Indent # @param tokens [Array] A list of tokens to scan. # @return [Array[Integer]] # - # source://pry//lib/pry/indent.rb#198 + # source://pry//lib/pry/indent.rb#202 def indentation_delta(tokens); end + # @return [String] String containing the spaces for the current line. + # + # source://pry//lib/pry/indent.rb#21 + def last_indent_level; end + # Return a list of strings which can be used to re-construct the Module.nesting at # the current point in the file. # @@ -6829,14 +7062,14 @@ class Pry::Indent # # @return [Array] # - # source://pry//lib/pry/indent.rb#376 + # source://pry//lib/pry/indent.rb#378 def module_nesting; end # All the open delimiters, in the order that they first appeared. # # @return [String] # - # source://pry//lib/pry/indent.rb#312 + # source://pry//lib/pry/indent.rb#314 def open_delimiters; end # Return a string which restores the CodeRay string status to the correct value by @@ -6844,17 +7077,17 @@ class Pry::Indent # # @return String # - # source://pry//lib/pry/indent.rb#320 + # source://pry//lib/pry/indent.rb#322 def open_delimiters_line; end # reset internal state # - # source://pry//lib/pry/indent.rb#110 + # source://pry//lib/pry/indent.rb#113 def reset; end # @return [Array] The stack of open tokens. # - # source://pry//lib/pry/indent.rb#21 + # source://pry//lib/pry/indent.rb#24 def stack; end # Given a string of Ruby code, use CodeRay to export the tokens. @@ -6862,7 +7095,7 @@ class Pry::Indent # @param string [String] The Ruby to lex # @return [Array] An Array of pairs of [token_value, token_type] # - # source://pry//lib/pry/indent.rb#283 + # source://pry//lib/pry/indent.rb#287 def tokenize(string); end # Update the internal state about what kind of strings are open. @@ -6874,7 +7107,7 @@ class Pry::Indent # # @param token [String] The token (of type :delimiter) # - # source://pry//lib/pry/indent.rb#297 + # source://pry//lib/pry/indent.rb#299 def track_delimiter(token); end # Update the internal state relating to module nesting. @@ -6895,7 +7128,7 @@ class Pry::Indent # @param token [String] a token from Coderay # @param kind [Symbol] the kind of that token # - # source://pry//lib/pry/indent.rb#341 + # source://pry//lib/pry/indent.rb#343 def track_module_nesting(token, kind); end # Update the internal state relating to module nesting on 'end'. @@ -6906,7 +7139,7 @@ class Pry::Indent # @param token [String] a token from Coderay # @param kind [Symbol] the kind of that token # - # source://pry//lib/pry/indent.rb#366 + # source://pry//lib/pry/indent.rb#368 def track_module_nesting_end(token, kind = T.unsafe(nil)); end class << self @@ -6915,7 +7148,7 @@ class Pry::Indent # @param str [String] # @return [String] # - # source://pry//lib/pry/indent.rb#82 + # source://pry//lib/pry/indent.rb#85 def indent(str); end # Get the module nesting at the given point in the given string. @@ -6928,7 +7161,7 @@ class Pry::Indent # @param line_number [Fixnum] The line number (starting from 1) # @return [Array] # - # source://pry//lib/pry/indent.rb#95 + # source://pry//lib/pry/indent.rb#98 def nesting_at(str, line_number); end end end @@ -6940,13 +7173,13 @@ end # :pre_constant and :preserved_constant are the CodeRay 0.9.8 and 1.0.0 # classifications of "true", "false", and "nil". # -# source://pry//lib/pry/indent.rb#60 +# source://pry//lib/pry/indent.rb#63 Pry::Indent::IGNORE_TOKENS = T.let(T.unsafe(nil), Array) # Collection of tokens that should appear dedented even though they # don't affect the surrounding code. # -# source://pry//lib/pry/indent.rb#76 +# source://pry//lib/pry/indent.rb#79 Pry::Indent::MIDWAY_TOKENS = T.let(T.unsafe(nil), Array) # Hash containing all the tokens that should increase the indentation @@ -6954,23 +7187,23 @@ Pry::Indent::MIDWAY_TOKENS = T.let(T.unsafe(nil), Array) # tokens that should prevent a line from being indented if they appear on # the same line. # -# source://pry//lib/pry/indent.rb#30 +# source://pry//lib/pry/indent.rb#33 Pry::Indent::OPEN_TOKENS = T.let(T.unsafe(nil), Hash) # Which tokens can be followed by an optional "do" keyword. # -# source://pry//lib/pry/indent.rb#52 +# source://pry//lib/pry/indent.rb#55 Pry::Indent::OPTIONAL_DO_TOKENS = T.let(T.unsafe(nil), Array) # Which tokens can either be open tokens, or appear as modifiers on # a single-line. # -# source://pry//lib/pry/indent.rb#49 +# source://pry//lib/pry/indent.rb#52 Pry::Indent::SINGLELINE_TOKENS = T.let(T.unsafe(nil), Array) # The amount of spaces to insert for each indent level. # -# source://pry//lib/pry/indent.rb#24 +# source://pry//lib/pry/indent.rb#27 Pry::Indent::SPACES = T.let(T.unsafe(nil), String) # Tokens that indicate the end of a statement (i.e. that, if they appear @@ -6980,7 +7213,7 @@ Pry::Indent::SPACES = T.let(T.unsafe(nil), String) # :reserved and :keywords are the CodeRay 0.9.8 and 1.0.0 respectively # classifications of "super", "next", "return", etc. # -# source://pry//lib/pry/indent.rb#69 +# source://pry//lib/pry/indent.rb#72 Pry::Indent::STATEMENT_END_TOKENS = T.let(T.unsafe(nil), Array) # Raised if {#module_nesting} would not work. @@ -6988,6 +7221,19 @@ Pry::Indent::STATEMENT_END_TOKENS = T.let(T.unsafe(nil), Array) # source://pry//lib/pry/indent.rb#15 class Pry::Indent::UnparseableNestingError < ::StandardError; end +# source://pry//lib/pry/input/simple_stdio.rb#4 +module Pry::Input; end + +# Readline replacement for low-capability terminals. +# +# source://pry//lib/pry/input/simple_stdio.rb#6 +class Pry::Input::SimpleStdio + class << self + # source://pry//lib/pry/input/simple_stdio.rb#7 + def readline(prompt); end + end +end + # source://pry//lib/pry/input_completer.rb#6 class Pry::InputCompleter # @return [InputCompleter] a new instance of InputCompleter @@ -6995,7 +7241,7 @@ class Pry::InputCompleter # source://pry//lib/pry/input_completer.rb#42 def initialize(input, pry = T.unsafe(nil)); end - # build_path seperates the input into two parts: path and input. + # build_path separates the input into two parts: path and input. # input is the partial string that should be completed # path is a proc that takes an input and builds a full path. # @@ -7276,10 +7522,10 @@ class Pry::Method # source://pry//lib/pry/method.rb#429 def original_name; end - # source://forwardable/1.3.2/forwardable.rb#229 + # source://forwardable/1.3.3/forwardable.rb#231 def owner(*args, **_arg1, &block); end - # source://forwardable/1.3.2/forwardable.rb#229 + # source://forwardable/1.3.3/forwardable.rb#231 def parameters(*args, **_arg1, &block); end # @return [Boolean] Was the method defined within the Pry REPL? @@ -7287,7 +7533,7 @@ class Pry::Method # source://pry//lib/pry/method.rb#456 def pry_method?; end - # source://forwardable/1.3.2/forwardable.rb#229 + # source://forwardable/1.3.3/forwardable.rb#231 def receiver(*args, **_arg1, &block); end # Update the live copy of the method's source. @@ -7391,7 +7637,7 @@ class Pry::Method private - # source://pry//lib/pry/method.rb#578 + # source://pry//lib/pry/method.rb#577 def c_source; end # @param first_ln [String] The first line of a method definition. @@ -7411,7 +7657,7 @@ class Pry::Method # source://pry//lib/pry/method.rb#511 def respond_to_missing?(method_name, include_private = T.unsafe(nil)); end - # source://pry//lib/pry/method.rb#583 + # source://pry//lib/pry/method.rb#582 def ruby_source; end # @param ancestors [Class, Module] The ancestors to investigate @@ -7681,7 +7927,7 @@ class Pry::Method::Patcher # # When we're redefining aliased methods we will overwrite the method at the # unaliased name (so that super continues to work). By wrapping that code in a - # transation we make that not happen, which means that alias_method_chains, etc. + # translation we make that not happen, which means that alias_method_chains, etc. # continue to work. # # source://pry//lib/pry/method/patcher.rb#49 @@ -7714,7 +7960,7 @@ class Pry::Method::Patcher # Update the source code so that when it has the right owner when eval'd. # # This (combined with definition_for_owner) is backup for the case that - # wrap_for_nesting fails, to ensure that the method will stil be defined in + # wrap_for_nesting fails, to ensure that the method will still be defined in # the correct place. # # @param source [String] The source to wrap @@ -7809,7 +8055,7 @@ class Pry::Method::WeirdMethodLocator # know which __FILE__ and __LINE__ the binding is at, we can hope to # disambiguate these cases. # - # This obviously won't work if the source is unavaiable for some reason, + # This obviously won't work if the source is unavailable for some reason, # or if both methods have the same __FILE__ and __LINE__. # # @return [Pry::Method, nil] The Pry::Method representing the @@ -8367,10 +8613,10 @@ class Pry::REPL # source://pry//lib/pry/repl.rb#22 def initialize(pry, options = T.unsafe(nil)); end - # source://forwardable/1.3.2/forwardable.rb#229 + # source://forwardable/1.3.3/forwardable.rb#231 def input(*args, **_arg1, &block); end - # source://forwardable/1.3.2/forwardable.rb#229 + # source://forwardable/1.3.3/forwardable.rb#231 def output(*args, **_arg1, &block); end # @return [Pry] The instance of {Pry} that the user is controlling. @@ -8403,12 +8649,17 @@ class Pry::REPL # indicators in 99% of cases. # @return [Integer] # - # source://pry//lib/pry/repl.rb#237 + # source://pry//lib/pry/repl.rb#300 def calculate_overhang(current_prompt, original_val, indented_val); end # @return [Boolean] # - # source://pry//lib/pry/repl.rb#205 + # source://pry//lib/pry/repl.rb#280 + def complete_expression?(multiline_input); end + + # @return [Boolean] + # + # source://pry//lib/pry/repl.rb#246 def coolline_available?; end # Clean up after the repl session. @@ -8426,9 +8677,17 @@ class Pry::REPL # source://pry//lib/pry/repl.rb#127 def handle_read_errors; end - # source://pry//lib/pry/repl.rb#195 + # @return [Boolean] + # + # source://pry//lib/pry/repl.rb#234 + def input_multiline?; end + + # source://pry//lib/pry/repl.rb#228 def input_readline(*args); end + # source://pry//lib/pry/repl.rb#219 + def input_readmultiline(*args); end + # If `$stdout` is not a tty, it's probably a pipe. # # @example @@ -8440,9 +8699,14 @@ class Pry::REPL # % pry | tee log # @return [Boolean] # - # source://pry//lib/pry/repl.rb#217 + # source://pry//lib/pry/repl.rb#265 def piping?; end + # @return [Boolean] + # + # source://pry//lib/pry/repl.rb#250 + def prism_available?; end + # Set up the repl session. # # @return [void] @@ -8470,9 +8734,14 @@ class Pry::REPL # @return [Boolean] # - # source://pry//lib/pry/repl.rb#201 + # source://pry//lib/pry/repl.rb#242 def readline_available?; end + # @return [Boolean] + # + # source://pry//lib/pry/repl.rb#238 + def reline_available?; end + # The actual read-eval-print loop. # # The {REPL} instance is responsible for reading and looping, whereas the @@ -8489,7 +8758,7 @@ class Pry::REPL # @return [void] # - # source://pry//lib/pry/repl.rb#224 + # source://pry//lib/pry/repl.rb#272 def set_readline_output; end class << self @@ -8504,6 +8773,9 @@ class Pry::REPL end end +# source://pry//lib/pry/repl.rb#278 +Pry::REPL::UNEXPECTED_TOKENS = T.let(T.unsafe(nil), Array) + # A class to manage the loading of files through the REPL loop. # This is an interesting trick as it processes your file as if it # was user input in an interactive session. As a result, all Pry @@ -8596,7 +8868,7 @@ end # A ring is a thread-safe fixed-capacity array to which you can only add # elements. Older entries are overwritten as you add new elements, so that the -# ring can never contain more than `max_size` elemens. +# ring can never contain more than `max_size` elements. # # @api public # @example @@ -9106,7 +9378,7 @@ class Pry::Slop # Build a Slop object from a option specification. # # This allows you to design your options via a simple String rather - # than programatically. Do note though that with this method, you're + # than programmatically. Do note though that with this method, you're # unable to pass any advanced options to the on() method when creating # options. # @@ -9892,7 +10164,7 @@ class Pry::WrappedModule # highest rank, that is the 'monkey patch' of this module with the # highest number of methods, which contains a source code line that # defines the module. It is considered the 'canonical' definition - # for the module. In the absense of a suitable candidate, the + # for the module. In the absence of a suitable candidate, the # candidate of rank 0 will be returned, or a CommandError raised if # there are no candidates at all. # @@ -9956,7 +10228,7 @@ class Pry::WrappedModule::Candidate # source://pry//lib/pry/wrapped_module/candidate.rb#38 def initialize(wrapper, rank); end - # source://forwardable/1.3.2/forwardable.rb#229 + # source://forwardable/1.3.3/forwardable.rb#231 def class?(*args, **_arg1, &block); end # @raise [Pry::CommandError] If documentation cannot be found. @@ -9975,13 +10247,13 @@ class Pry::WrappedModule::Candidate # source://pry//lib/pry/wrapped_module/candidate.rb#18 def line; end - # source://forwardable/1.3.2/forwardable.rb#229 + # source://forwardable/1.3.3/forwardable.rb#231 def module?(*args, **_arg1, &block); end - # source://forwardable/1.3.2/forwardable.rb#229 + # source://forwardable/1.3.3/forwardable.rb#231 def nonblank_name(*args, **_arg1, &block); end - # source://forwardable/1.3.2/forwardable.rb#229 + # source://forwardable/1.3.3/forwardable.rb#231 def number_of_candidates(*args, **_arg1, &block); end # @raise [Pry::CommandError] If source code cannot be found. @@ -10008,7 +10280,7 @@ class Pry::WrappedModule::Candidate # source://pry//lib/pry/wrapped_module/candidate.rb#79 def source_location; end - # source://forwardable/1.3.2/forwardable.rb#229 + # source://forwardable/1.3.3/forwardable.rb#231 def wrapped(*args, **_arg1, &block); end private diff --git a/Library/Homebrew/vendor/bundle/bundler/setup.rb b/Library/Homebrew/vendor/bundle/bundler/setup.rb index c1d6c48ad37ea..9b6faa9626826 100644 --- a/Library/Homebrew/vendor/bundle/bundler/setup.rb +++ b/Library/Homebrew/vendor/bundle/bundler/setup.rb @@ -68,7 +68,7 @@ def self.extension_api_version $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/plist-3.7.1/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/extensions/arm64-darwin-20/#{Gem.extension_api_version}/prism-1.2.0") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/prism-1.2.0/lib") -$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/pry-0.14.2/lib") +$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/pry-0.15.0/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rainbow-3.1.1/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/sorbet-runtime-0.5.11647/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rbi-0.2.1/lib")