diff --git a/Library/Homebrew/Gemfile.lock b/Library/Homebrew/Gemfile.lock index a58ad6a519..5e03b95def 100644 --- a/Library/Homebrew/Gemfile.lock +++ b/Library/Homebrew/Gemfile.lock @@ -153,7 +153,7 @@ GEM spoom (>= 1.7.0) thor (>= 1.2.0) yard-sorbet - thor (1.3.2) + thor (1.4.0) unicode-display_width (3.1.4) unicode-emoji (~> 4.0, >= 4.0.4) unicode-emoji (4.0.4) diff --git a/Library/Homebrew/sorbet/rbi/gems/thor@1.3.2.rbi b/Library/Homebrew/sorbet/rbi/gems/thor@1.4.0.rbi similarity index 97% rename from Library/Homebrew/sorbet/rbi/gems/thor@1.3.2.rbi rename to Library/Homebrew/sorbet/rbi/gems/thor@1.4.0.rbi index 06a6a7c745..bc5661bde7 100644 --- a/Library/Homebrew/sorbet/rbi/gems/thor@1.3.2.rbi +++ b/Library/Homebrew/sorbet/rbi/gems/thor@1.4.0.rbi @@ -78,7 +78,7 @@ class Thor # # Then it is required either only one of "--one" or "--two". # - # source://thor//lib/thor.rb#246 + # source://thor//lib/thor.rb#250 def at_least_one(*args, &block); end # Extend check unknown options to accept a hash of conditions. @@ -131,7 +131,7 @@ class Thor # ==== Parameters # meth:: name of the default command # - # source://thor//lib/thor.rb#21 + # source://thor//lib/thor.rb#28 def default_task(meth = T.unsafe(nil)); end # source://thor//lib/thor/base.rb#26 @@ -188,7 +188,7 @@ class Thor # If you give "--one" and "--two" at the same time ExclusiveArgumentsError # will be raised. # - # source://thor//lib/thor.rb#203 + # source://thor//lib/thor.rb#207 def exclusive(*args, &block); end # Prints help information for this class. @@ -364,7 +364,7 @@ class Thor # :banner - String to show on usage notes. # :hide - If you want to hide this option from the help. # - # source://thor//lib/thor.rb#163 + # source://thor//lib/thor.rb#175 def option(name, options = T.unsafe(nil)); end # Declares the options for the next command to be declared. @@ -374,7 +374,7 @@ class Thor # is the type of the option. Can be :string, :array, :hash, :boolean, :numeric # or :required (string). If you give a value, the type of the value is used. # - # source://thor//lib/thor.rb#129 + # source://thor//lib/thor.rb#135 def options(options = T.unsafe(nil)); end # Allows for custom "Command" package naming. @@ -393,7 +393,7 @@ class Thor # Returns commands ready to be printed. # - # source://thor//lib/thor.rb#309 + # source://thor//lib/thor.rb#318 def printable_tasks(all = T.unsafe(nil), subcommand = T.unsafe(nil)); end # Registers another Thor subclass as a command. @@ -462,10 +462,10 @@ class Thor # source://thor//lib/thor.rb#320 def subcommands; end - # source://thor//lib/thor.rb#329 + # source://thor//lib/thor.rb#344 def subtask(subcommand, subcommand_class); end - # source://thor//lib/thor.rb#320 + # source://thor//lib/thor.rb#323 def subtasks; end # Prints help information for the given command. @@ -474,7 +474,7 @@ class Thor # shell # command_name # - # source://thor//lib/thor.rb#258 + # source://thor//lib/thor.rb#281 def task_help(shell, command_name); end protected @@ -493,7 +493,7 @@ class Thor # source://thor//lib/thor.rb#560 def create_command(meth); end - # source://thor//lib/thor.rb#560 + # source://thor//lib/thor.rb#584 def create_task(meth); end # help command has the required check disabled by default. @@ -522,7 +522,7 @@ class Thor # and determines whether it is an unambiguous substrings of a command or # alias name. # - # source://thor//lib/thor.rb#626 + # source://thor//lib/thor.rb#639 def find_task_possibilities(meth); end # source://thor//lib/thor.rb#586 @@ -567,7 +567,7 @@ class Thor # # @raise [AmbiguousTaskError] # - # source://thor//lib/thor.rb#605 + # source://thor//lib/thor.rb#621 def normalize_task_name(meth); end # source://thor//lib/thor.rb#493 @@ -583,7 +583,7 @@ class Thor # Retrieve the command name from given args. # - # source://thor//lib/thor.rb#592 + # source://thor//lib/thor.rb#596 def retrieve_task_name(args); end # Sort the commands, lexicographically by default. @@ -600,7 +600,7 @@ class Thor # source://thor//lib/thor.rb#641 def subcommand_help(cmd); end - # source://thor//lib/thor.rb#641 + # source://thor//lib/thor.rb#647 def subtask_help(cmd); end end end @@ -643,7 +643,7 @@ module Thor::Actions # # create_file "config/apache.conf", "your apache config" # - # source://thor//lib/thor/actions/create_file.rb#22 + # source://thor//lib/thor/actions/create_file.rb#27 def add_file(destination, *args, &block); end # Create a new file relative to the destination root from the given source. @@ -658,7 +658,7 @@ module Thor::Actions # # create_link "config/apache.conf", "/etc/apache.conf" # - # source://thor//lib/thor/actions/create_link.rb#17 + # source://thor//lib/thor/actions/create_link.rb#22 def add_link(destination, *args); end # Append text to a file. Since it depends on insert_into_file, it's reversible. @@ -676,7 +676,7 @@ module Thor::Actions # 'config.gem "rspec"' # end # - # source://thor//lib/thor/actions/file_manipulation.rb#192 + # source://thor//lib/thor/actions/file_manipulation.rb#197 def append_file(path, *args, &block); end # Append text to a file. Since it depends on insert_into_file, it's reversible. @@ -751,7 +751,7 @@ module Thor::Actions # # comment_lines 'config/initializers/session_store.rb', /cookie_store/ # - # source://thor//lib/thor/actions/file_manipulation.rb#308 + # source://thor//lib/thor/actions/file_manipulation.rb#333 def comment_lines(path, flag, *args); end # Copies the file from the relative source to the relative destination. If @@ -928,9 +928,30 @@ module Thor::Actions # match << " no more. Use thor!" # end # - # source://thor//lib/thor/actions/file_manipulation.rb#262 + # source://thor//lib/thor/actions/file_manipulation.rb#291 def gsub_file(path, flag, *args, &block); end + # Run a regular expression replacement on a file, raising an error if the + # contents of the file are not changed. + # + # ==== Parameters + # path:: path of the file to be changed + # flag:: the regexp or string to be replaced + # replacement:: the replacement, can be also given as a block + # config:: give :verbose => false to not log the status, and + # :force => true, to force the replacement regardless of runner behavior. + # + # ==== Example + # + # gsub_file! 'app/controllers/application_controller.rb', /#\s*(filter_parameter_logging :password)/, '\1' + # + # gsub_file! 'README', /rake/, :green do |match| + # match << " no more. Use thor!" + # end + # + # source://thor//lib/thor/actions/file_manipulation.rb#263 + def gsub_file!(path, flag, *args, &block); end + # Goes to the root and execute the given block. # # source://thor//lib/thor/actions.rb#200 @@ -956,7 +977,7 @@ module Thor::Actions # source://thor//lib/thor/actions/file_manipulation.rb#216 def inject_into_class(path, klass, *args, &block); end - # source://thor//lib/thor/actions/inject_into_file.rb#26 + # source://thor//lib/thor/actions/inject_into_file.rb#34 def inject_into_file(destination, *args, &block); end # Injects text right after the module definition. Since it depends on @@ -1028,7 +1049,7 @@ module Thor::Actions # 'config.gem "rspec"' # end # - # source://thor//lib/thor/actions/file_manipulation.rb#170 + # source://thor//lib/thor/actions/file_manipulation.rb#175 def prepend_file(path, *args, &block); end # Prepend text to a file. Since it depends on insert_into_file, it's reversible. @@ -1066,7 +1087,7 @@ module Thor::Actions # remove_file 'README' # remove_file 'app/controllers/application_controller.rb' # - # source://thor//lib/thor/actions/file_manipulation.rb#325 + # source://thor//lib/thor/actions/file_manipulation.rb#360 def remove_dir(path, config = T.unsafe(nil)); end # Removes a file at the given location. @@ -1080,7 +1101,7 @@ module Thor::Actions # remove_file 'README' # remove_file 'app/controllers/application_controller.rb' # - # source://thor//lib/thor/actions/file_manipulation.rb#325 + # source://thor//lib/thor/actions/file_manipulation.rb#350 def remove_file(path, config = T.unsafe(nil)); end # Executes a command returning the contents of the command. @@ -1164,7 +1185,7 @@ module Thor::Actions # # uncomment_lines 'config/initializers/session_store.rb', /active_record/ # - # source://thor//lib/thor/actions/file_manipulation.rb#289 + # source://thor//lib/thor/actions/file_manipulation.rb#314 def uncomment_lines(path, flag, *args); end protected @@ -1179,25 +1200,28 @@ module Thor::Actions private - # source://thor//lib/thor/actions/file_manipulation.rb#346 + # source://thor//lib/thor/actions/file_manipulation.rb#385 + def actually_gsub_file(path, flag, args, error_on_no_change, &block); end + + # source://thor//lib/thor/actions/file_manipulation.rb#371 def capture(*args); end - # source://thor//lib/thor/actions/file_manipulation.rb#342 + # source://thor//lib/thor/actions/file_manipulation.rb#367 def concat(string); end # Returns the value of attribute output_buffer. # - # source://thor//lib/thor/actions/file_manipulation.rb#337 + # source://thor//lib/thor/actions/file_manipulation.rb#362 def output_buffer; end # Sets the attribute output_buffer # # @param value the value to set the attribute output_buffer to. # - # source://thor//lib/thor/actions/file_manipulation.rb#337 + # source://thor//lib/thor/actions/file_manipulation.rb#362 def output_buffer=(_arg0); end - # source://thor//lib/thor/actions/file_manipulation.rb#350 + # source://thor//lib/thor/actions/file_manipulation.rb#375 def with_output_buffer(buf = T.unsafe(nil)); end class << self @@ -1209,9 +1233,9 @@ end # Thor::Actions#capture depends on what kind of buffer is used in ERB. # Thus CapturableERB fixes ERB to use String buffer. # -# source://thor//lib/thor/actions/file_manipulation.rb#362 +# source://thor//lib/thor/actions/file_manipulation.rb#398 class Thor::Actions::CapturableERB < ::ERB - # source://thor//lib/thor/actions/file_manipulation.rb#363 + # source://thor//lib/thor/actions/file_manipulation.rb#399 def set_eoutvar(compiler, eoutvar = T.unsafe(nil)); end end @@ -1568,7 +1592,7 @@ class Thor::Argument # Returns the value of attribute name. # - # source://thor//lib/thor/parser/argument.rb#5 + # source://thor//lib/thor/parser/argument.rb#6 def human_name; end # Returns the value of attribute name. @@ -1852,7 +1876,7 @@ module Thor::Base::ClassMethods # Hash:: An ordered hash with commands names as keys and Thor::Command # objects as values. # - # source://thor//lib/thor/base.rb#482 + # source://thor//lib/thor/base.rb#486 def all_tasks; end # If you want to use defaults that don't match the type of an option, @@ -2090,7 +2114,7 @@ module Thor::Base::ClassMethods # @raise [UndefinedCommandError] # - # source://thor//lib/thor/base.rb#613 + # source://thor//lib/thor/base.rb#616 def handle_no_task_error(command, has_namespace = T.unsafe(nil)); end # Sets the namespace for the Thor or Thor::Group class. By default the @@ -2167,7 +2191,7 @@ module Thor::Base::ClassMethods # remove_command :this_is_not_a_command # end # - # source://thor//lib/thor/base.rb#530 + # source://thor//lib/thor/base.rb#534 def no_tasks(&block); end # Allows to use private methods from parent in child classes as commands. @@ -2193,7 +2217,7 @@ module Thor::Base::ClassMethods # public_command :foo # public_command :foo, :bar, :baz # - # source://thor//lib/thor/base.rb#606 + # source://thor//lib/thor/base.rb#611 def public_task(*names); end # Removes a previous defined argument. If :undefine is given, undefine @@ -2250,7 +2274,7 @@ module Thor::Base::ClassMethods # options:: You can give :undefine => true if you want commands the method # to be undefined from the class as well. # - # source://thor//lib/thor/base.rb#500 + # source://thor//lib/thor/base.rb#509 def remove_task(*names); end # Parses the command and options from the given args, instantiate the class @@ -2294,7 +2318,7 @@ module Thor::Base::ClassMethods # Hash:: An ordered hash with commands names as keys and Thor::Command # objects as values. # - # source://thor//lib/thor/base.rb#471 + # source://thor//lib/thor/base.rb#474 def tasks; end protected @@ -2357,7 +2381,7 @@ module Thor::Base::ClassMethods # SIGNATURE: Creates a new command if valid_command? is true. This method is # called when a new method is added to the class. # - # source://thor//lib/thor/base.rb#782 + # source://thor//lib/thor/base.rb#784 def create_task(meth); end # SIGNATURE: The hook invoked by start. @@ -2378,7 +2402,7 @@ module Thor::Base::ClassMethods # class, just return it, otherwise dup it and add the fresh copy to the # current command hash. # - # source://thor//lib/thor/base.rb#708 + # source://thor//lib/thor/base.rb#717 def find_and_refresh_task(name); end # Retrieves a value from superclass. If it reaches the baseclass, @@ -2756,7 +2780,7 @@ class Thor::Group # Returns commands ready to be printed. # - # source://thor//lib/thor/group.rb#199 + # source://thor//lib/thor/group.rb#205 def printable_tasks(*_arg0); end # Remove a previously added invocation. @@ -2782,7 +2806,7 @@ class Thor::Group # source://thor//lib/thor/group.rb#263 def create_command(meth); end - # source://thor//lib/thor/group.rb#263 + # source://thor//lib/thor/group.rb#267 def create_task(meth); end # The method responsible for dispatching given the args. @@ -2799,7 +2823,7 @@ class Thor::Group # Represents the whole class as a command. # - # source://thor//lib/thor/group.rb#254 + # source://thor//lib/thor/group.rb#257 def self_task; end end end @@ -2919,7 +2943,7 @@ module Thor::Invocation # Invoke the given command if the given args. # - # source://thor//lib/thor/invocation.rb#122 + # source://thor//lib/thor/invocation.rb#130 def invoke_task(command, *args); end # Invokes using shell padding. @@ -2947,7 +2971,7 @@ module Thor::Invocation # use the given name and return self as class. Otherwise, call # prepare_for_invocation in the current class. # - # source://thor//lib/thor/invocation.rb#153 + # source://thor//lib/thor/invocation.rb#163 def _retrieve_class_and_task(name, sent_command = T.unsafe(nil)); end # Configuration values that are shared between invocations. @@ -3128,10 +3152,10 @@ class Thor::Option < ::Thor::Argument # source://thor//lib/thor/parser/option.rb#99 def aliases_for_usage; end - # source://thor//lib/thor/parser/option.rb#118 + # source://thor//lib/thor/parser/option.rb#117 def array?; end - # source://thor//lib/thor/parser/option.rb#118 + # source://thor//lib/thor/parser/option.rb#117 def boolean?; end # Returns the value of attribute group. @@ -3139,7 +3163,7 @@ class Thor::Option < ::Thor::Argument # source://thor//lib/thor/parser/option.rb#3 def group; end - # source://thor//lib/thor/parser/option.rb#118 + # source://thor//lib/thor/parser/option.rb#117 def hash?; end # Returns the value of attribute hide. @@ -3155,7 +3179,7 @@ class Thor::Option < ::Thor::Argument # source://thor//lib/thor/parser/option.rb#3 def lazy_default; end - # source://thor//lib/thor/parser/option.rb#118 + # source://thor//lib/thor/parser/option.rb#117 def numeric?; end # Returns the value of attribute repeatable. @@ -3168,7 +3192,7 @@ class Thor::Option < ::Thor::Argument # source://thor//lib/thor/parser/option.rb#107 def show_default?; end - # source://thor//lib/thor/parser/option.rb#118 + # source://thor//lib/thor/parser/option.rb#117 def string?; end # source://thor//lib/thor/parser/option.rb#75 @@ -3388,37 +3412,37 @@ module Thor::Shell # source://thor//lib/thor/shell.rb#44 def initialize(args = T.unsafe(nil), options = T.unsafe(nil), config = T.unsafe(nil)); end - # source://thor//lib/thor/shell.rb#59 + # source://thor//lib/thor/shell.rb#58 def ask(*args, &block); end - # source://thor//lib/thor/shell.rb#59 + # source://thor//lib/thor/shell.rb#58 def error(*args, &block); end - # source://thor//lib/thor/shell.rb#59 + # source://thor//lib/thor/shell.rb#58 def file_collision(*args, &block); end - # source://thor//lib/thor/shell.rb#59 + # source://thor//lib/thor/shell.rb#58 def no?(*args, &block); end - # source://thor//lib/thor/shell.rb#59 + # source://thor//lib/thor/shell.rb#58 def print_in_columns(*args, &block); end - # source://thor//lib/thor/shell.rb#59 + # source://thor//lib/thor/shell.rb#58 def print_table(*args, &block); end - # source://thor//lib/thor/shell.rb#59 + # source://thor//lib/thor/shell.rb#58 def print_wrapped(*args, &block); end - # source://thor//lib/thor/shell.rb#59 + # source://thor//lib/thor/shell.rb#58 def say(*args, &block); end - # source://thor//lib/thor/shell.rb#59 + # source://thor//lib/thor/shell.rb#58 def say_error(*args, &block); end - # source://thor//lib/thor/shell.rb#59 + # source://thor//lib/thor/shell.rb#58 def say_status(*args, &block); end - # source://thor//lib/thor/shell.rb#59 + # source://thor//lib/thor/shell.rb#58 def set_color(*args, &block); end # Holds the shell for the given Thor instance. If no shell is given, @@ -3434,7 +3458,7 @@ module Thor::Shell # source://thor//lib/thor/shell.rb#25 def shell=(_arg0); end - # source://thor//lib/thor/shell.rb#59 + # source://thor//lib/thor/shell.rb#58 def terminal_width(*args, &block); end # Yields the given block with padding. @@ -3442,7 +3466,7 @@ module Thor::Shell # source://thor//lib/thor/shell.rb#66 def with_padding; end - # source://thor//lib/thor/shell.rb#59 + # source://thor//lib/thor/shell.rb#58 def yes?(*args, &block); end protected @@ -3655,9 +3679,6 @@ class Thor::Shell::Basic # source://thor//lib/thor/shell/basic.rb#296 def file_collision_help(block_given); end - # source://thor//lib/thor/shell/basic.rb#383 - def git_merge_tool; end - # @return [Boolean] # # source://thor//lib/thor/shell/basic.rb#286 @@ -4259,7 +4280,7 @@ module Thor::Util # ==== Parameters # namespace # - # source://thor//lib/thor/util.rb#131 + # source://thor//lib/thor/util.rb#148 def find_class_and_task_by_namespace(namespace, fallback = T.unsafe(nil)); end # Where to look for Thor files. diff --git a/Library/Homebrew/vendor/bundle/bundler/setup.rb b/Library/Homebrew/vendor/bundle/bundler/setup.rb index 7d3cba2e89..d4d8269252 100644 --- a/Library/Homebrew/vendor/bundle/bundler/setup.rb +++ b/Library/Homebrew/vendor/bundle/bundler/setup.rb @@ -112,7 +112,7 @@ $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/sorbet-static-0.5.12230-universal-darwin/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/sorbet-0.5.12230/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/sorbet-static-and-runtime-0.5.12230/lib") -$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/thor-1.3.2/lib") +$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/thor-1.4.0/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/spoom-1.7.4/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/extensions/arm64-darwin-20/#{Gem.extension_api_version}/stackprof-0.2.27") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/stackprof-0.2.27/lib")