From 815589f668799c0ab3d73533df9cbc5d4743716a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 19 Oct 2023 18:26:03 +0000 Subject: [PATCH 1/3] build(deps-dev): bump thor from 1.2.2 to 1.3.0 in /Library/Homebrew Bumps [thor](https://github.com/rails/thor) from 1.2.2 to 1.3.0. - [Release notes](https://github.com/rails/thor/releases) - [Commits](https://github.com/rails/thor/compare/v1.2.2...v1.3.0) --- updated-dependencies: - dependency-name: thor dependency-type: indirect update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- Library/Homebrew/Gemfile.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/Gemfile.lock b/Library/Homebrew/Gemfile.lock index 2099dc00165e5..3de4837ab54fe 100644 --- a/Library/Homebrew/Gemfile.lock +++ b/Library/Homebrew/Gemfile.lock @@ -164,7 +164,7 @@ GEM spoom (~> 1.1.0, >= 1.1.11) thor (>= 1.2.0) yard-sorbet - thor (1.2.2) + thor (1.3.0) tzinfo (2.0.6) concurrent-ruby (~> 1.0) unf (0.1.4) From 3bcc8565811f432131e8dbd4bd1e9defe76640a7 Mon Sep 17 00:00:00 2001 From: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> Date: Thu, 19 Oct 2023 18:30:29 +0000 Subject: [PATCH 2/3] brew vendor-gems: commit updates. --- Library/Homebrew/vendor/bundle/bundler/setup.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/vendor/bundle/bundler/setup.rb b/Library/Homebrew/vendor/bundle/bundler/setup.rb index 3521b5a4ceede..ea93b1b227d62 100644 --- a/Library/Homebrew/vendor/bundle/bundler/setup.rb +++ b/Library/Homebrew/vendor/bundle/bundler/setup.rb @@ -110,7 +110,7 @@ def self.extension_api_version $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/sorbet-static-0.5.10461-universal-darwin-22/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/sorbet-0.5.10461/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/sorbet-static-and-runtime-0.5.10461/lib") -$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/thor-1.2.2/lib") +$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/thor-1.3.0/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/spoom-1.1.11/lib") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/extensions/universal-darwin-22/#{Gem.extension_api_version}/stackprof-0.2.25") $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/stackprof-0.2.25/lib") From 13ca7b6dd47db5dbfb3380c95121b76b42cc81f9 Mon Sep 17 00:00:00 2001 From: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> Date: Thu, 19 Oct 2023 18:35:16 +0000 Subject: [PATCH 3/3] Update RBI files for thor. Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml) workflow. --- .../gems/{thor@1.2.2.rbi => thor@1.3.0.rbi} | 118 ++++++++++++++---- 1 file changed, 97 insertions(+), 21 deletions(-) rename Library/Homebrew/sorbet/rbi/gems/{thor@1.2.2.rbi => thor@1.3.0.rbi} (89%) diff --git a/Library/Homebrew/sorbet/rbi/gems/thor@1.2.2.rbi b/Library/Homebrew/sorbet/rbi/gems/thor@1.3.0.rbi similarity index 89% rename from Library/Homebrew/sorbet/rbi/gems/thor@1.2.2.rbi rename to Library/Homebrew/sorbet/rbi/gems/thor@1.3.0.rbi index 8018184bb2620..621fbf8151dd7 100644 --- a/Library/Homebrew/sorbet/rbi/gems/thor@1.2.2.rbi +++ b/Library/Homebrew/sorbet/rbi/gems/thor@1.3.0.rbi @@ -4,6 +4,17 @@ # This is an autogenerated file for types exported from the `thor` gem. # Please instead update this file by running `bin/tapioca gem thor`. +module LCSDiff + protected + + def show_diff(destination, content); end + + private + + def diff_lcs_loaded?; end + def output_diff_line(diff); end +end + class Thor include ::Thor::Base include ::Thor::Invocation @@ -14,6 +25,7 @@ class Thor def help(command = T.unsafe(nil), subcommand = T.unsafe(nil)); end class << self + def at_least_one(*args, &block); end def check_unknown_options!(options = T.unsafe(nil)); end def check_unknown_options?(config); end def command_help(shell, command_name); end @@ -23,9 +35,12 @@ class Thor def desc(usage, description, options = T.unsafe(nil)); end def disable_required_check!(*command_names); end def disable_required_check?(command); end + def exclusive(*args, &block); end def help(shell, subcommand = T.unsafe(nil)); end def long_desc(long_description, options = T.unsafe(nil)); end def map(mappings = T.unsafe(nil), **kw); end + def method_at_least_one(*args, &block); end + def method_exclusive(*args, &block); end def method_option(name, options = T.unsafe(nil)); end def method_options(options = T.unsafe(nil)); end def option(name, options = T.unsafe(nil)); end @@ -55,10 +70,15 @@ class Thor def find_command_possibilities(meth); end def find_task_possibilities(meth); end def initialize_added; end + def method_at_least_one_option_names; end + def method_exclusive_option_names; end def normalize_command_name(meth); end def normalize_task_name(meth); end + def print_at_least_one_required_options(shell, command = T.unsafe(nil)); end + def print_exclusive_options(shell, command = T.unsafe(nil)); end def retrieve_command_name(args); end def retrieve_task_name(args); end + def sort_commands!(list); end def stop_on_unknown_option; end def subcommand_help(cmd); end def subtask_help(cmd); end @@ -208,7 +228,9 @@ class Thor::Actions::InjectIntoFile < ::Thor::Actions::EmptyDirectory protected + def content; end def replace!(regexp, string, force); end + def replacement_present?; end def say_status(behavior, warning: T.unsafe(nil), color: T.unsafe(nil)); end end @@ -223,8 +245,10 @@ class Thor::Argument def default; end def description; end def enum; end + def enum_to_s; end def human_name; end def name; end + def print_default; end def required; end def required?; end def show_default?; end @@ -259,6 +283,7 @@ class Thor::Arguments def peek; end def shift; end def unshift(arg); end + def validate_enum_value!(name, value, message); end class << self def parse(*args); end @@ -267,6 +292,7 @@ class Thor::Arguments end Thor::Arguments::NUMERIC = T.let(T.unsafe(nil), Regexp) +class Thor::AtLeastOneRequiredArgumentError < ::Thor::InvocationError; end module Thor::Base include ::Thor::Invocation @@ -308,6 +334,10 @@ module Thor::Base::ClassMethods def check_unknown_options; end def check_unknown_options!; end def check_unknown_options?(config); end + def class_at_least_one(*args, &block); end + def class_at_least_one_option_names; end + def class_exclusive(*args, &block); end + def class_exclusive_option_names; end def class_option(name, options = T.unsafe(nil)); end def class_options(options = T.unsafe(nil)); end def commands; end @@ -341,7 +371,9 @@ module Thor::Base::ClassMethods def basename; end def build_option(name, options, scope); end def build_options(options, scope); end + def built_option_names(target, opt = T.unsafe(nil), &block); end def class_options_help(shell, groups = T.unsafe(nil)); end + def command_scope_member(name, options = T.unsafe(nil)); end def create_command(meth); end def create_task(meth); end def dispatch(command, given_args, given_opts, config); end @@ -353,13 +385,16 @@ module Thor::Base::ClassMethods def is_thor_reserved_word?(word, type); end def method_added(meth); end def print_options(shell, options, group_name = T.unsafe(nil)); end + def register_options_relation_for(target, relation, *args, &block); end end class Thor::Command < ::Struct - def initialize(name, description, long_description, usage, options = T.unsafe(nil)); end + def initialize(name, description, long_description, wrap_long_description, usage, options = T.unsafe(nil), options_relation = T.unsafe(nil)); end def formatted_usage(klass, namespace = T.unsafe(nil), subcommand = T.unsafe(nil)); end def hidden?; end + def method_at_least_one_option_names; end + def method_exclusive_option_names; end def run(instance, args = T.unsafe(nil)); end protected @@ -396,6 +431,7 @@ class Thor::CoreExt::HashWithIndifferentAccess < ::Hash def replace(other_hash); end def reverse_merge(other); end def reverse_merge!(other_hash); end + def slice(*keys); end def to_hash; end def values_at(*indices); end @@ -418,6 +454,7 @@ end Thor::DynamicTask = Thor::DynamicCommand class Thor::Error < ::StandardError; end +class Thor::ExclusiveArgumentError < ::Thor::InvocationError; end class Thor::Group include ::Thor::Base @@ -561,10 +598,6 @@ class Thor::NestedContext def push; end end -class Thor::NoKwargSpellChecker < ::DidYouMean::SpellChecker - def initialize(dictionary); end -end - class Thor::Option < ::Thor::Argument def initialize(name, options = T.unsafe(nil)); end @@ -579,6 +612,7 @@ class Thor::Option < ::Thor::Argument def lazy_default; end def numeric?; end def repeatable; end + def show_default?; end def string?; end def switch_name; end def usage(padding = T.unsafe(nil)); end @@ -591,6 +625,10 @@ class Thor::Option < ::Thor::Argument def validate!; end def validate_default_type!; end + private + + def normalize_aliases(aliases); end + class << self def parse(key, value); end end @@ -599,8 +637,10 @@ end Thor::Option::VALID_TYPES = T.let(T.unsafe(nil), Array) class Thor::Options < ::Thor::Arguments - def initialize(hash_options = T.unsafe(nil), defaults = T.unsafe(nil), stop_on_unknown = T.unsafe(nil), disable_required_check = T.unsafe(nil)); end + def initialize(hash_options = T.unsafe(nil), defaults = T.unsafe(nil), stop_on_unknown = T.unsafe(nil), disable_required_check = T.unsafe(nil), relations = T.unsafe(nil)); end + def check_at_least_one!; end + def check_exclusive!; end def check_unknown!; end def parse(args); end def peek; end @@ -614,6 +654,7 @@ class Thor::Options < ::Thor::Arguments def current_is_switch?; end def current_is_switch_formatted?; end def current_is_value?; end + def names_to_switch_names(names = T.unsafe(nil)); end def normalize_switch(arg); end def parse_boolean(switch); end def parse_peek(switch, option); end @@ -681,20 +722,15 @@ class Thor::Shell::Basic def say_error(message = T.unsafe(nil), color = T.unsafe(nil), force_new_line = T.unsafe(nil)); end def say_status(status, message, log_status = T.unsafe(nil)); end def set_color(string, *_arg1); end - def terminal_width; end def yes?(statement, color = T.unsafe(nil)); end protected def answer_match(possibilities, answer, case_insensitive); end - def as_unicode; end def ask_filtered(statement, color, options); end def ask_simply(statement, color, options); end def can_display_colors?; end - def dynamic_width; end - def dynamic_width_stty; end - def dynamic_width_tput; end - def file_collision_help; end + def file_collision_help(block_given); end def git_merge_tool; end def is?(value); end def lookup_color(color); end @@ -705,13 +741,12 @@ class Thor::Shell::Basic def show_diff(destination, content); end def stderr; end def stdout; end - def truncate(string, width); end def unix?; end end -Thor::Shell::Basic::DEFAULT_TERMINAL_WIDTH = T.let(T.unsafe(nil), Integer) - class Thor::Shell::Color < ::Thor::Shell::Basic + include ::LCSDiff + def set_color(string, *colors); end protected @@ -719,9 +754,6 @@ class Thor::Shell::Color < ::Thor::Shell::Basic def are_colors_disabled?; end def are_colors_supported?; end def can_display_colors?; end - def diff_lcs_loaded?; end - def output_diff_line(diff); end - def show_diff(destination, content); end end Thor::Shell::Color::BLACK = T.let(T.unsafe(nil), String) @@ -743,16 +775,23 @@ Thor::Shell::Color::RED = T.let(T.unsafe(nil), String) Thor::Shell::Color::WHITE = T.let(T.unsafe(nil), String) Thor::Shell::Color::YELLOW = T.let(T.unsafe(nil), String) +class Thor::Shell::ColumnPrinter + def initialize(stdout, options = T.unsafe(nil)); end + + def options; end + def print(array); end + def stdout; end +end + class Thor::Shell::HTML < ::Thor::Shell::Basic + include ::LCSDiff + def ask(statement, color = T.unsafe(nil)); end def set_color(string, *colors); end protected def can_display_colors?; end - def diff_lcs_loaded?; end - def output_diff_line(diff); end - def show_diff(destination, content); end end Thor::Shell::HTML::BLACK = T.let(T.unsafe(nil), String) @@ -773,6 +812,43 @@ Thor::Shell::HTML::RED = T.let(T.unsafe(nil), String) Thor::Shell::HTML::WHITE = T.let(T.unsafe(nil), String) Thor::Shell::HTML::YELLOW = T.let(T.unsafe(nil), String) Thor::Shell::SHELL_DELEGATED_METHODS = T.let(T.unsafe(nil), Array) + +class Thor::Shell::TablePrinter < ::Thor::Shell::ColumnPrinter + def initialize(stdout, options = T.unsafe(nil)); end + + def print(array); end + + private + + def as_unicode; end + def format_cell(column, row_size, index); end + def indentation; end + def prepare(array); end + def print_border_separator; end + def truncate(string); end +end + +Thor::Shell::TablePrinter::BORDER_SEPARATOR = T.let(T.unsafe(nil), Symbol) + +module Thor::Shell::Terminal + class << self + def terminal_width; end + def unix?; end + + private + + def dynamic_width; end + def dynamic_width_stty; end + def dynamic_width_tput; end + end +end + +Thor::Shell::Terminal::DEFAULT_TERMINAL_WIDTH = T.let(T.unsafe(nil), Integer) + +class Thor::Shell::WrappedPrinter < ::Thor::Shell::ColumnPrinter + def print(message); end +end + Thor::TEMPLATE_EXTNAME = T.let(T.unsafe(nil), String) Thor::THOR_RESERVED_WORDS = T.let(T.unsafe(nil), Array) Thor::Task = Thor::Command