language
stringclasses
1 value
owner
stringlengths
2
15
repo
stringlengths
2
21
sha
stringlengths
45
45
message
stringlengths
7
36.3k
path
stringlengths
1
199
patch
stringlengths
15
102k
is_multipart
bool
2 classes
Other
Homebrew
brew
ddeadaefce845256be3371c0d914f73274586376.json
dev-cmd/pr-pull: require unzip to be installed
Library/Homebrew/dev-cmd/pr-pull.rb
@@ -335,6 +335,9 @@ def download_artifact(url, dir, pr) def pr_pull args = pr_pull_args.parse + # Needed when extracting the CI artifact. + ensure_executable!("unzip", reason: "extracting CI artifacts") + workflows = args.workflows.presence || ["tests.yml"] artifact = args.artifact || "bottles" tap = Tap.fetch(args.tap || CoreTap.instance.name)
false
Other
Homebrew
brew
da6650348fb3bc6046e56f68dfe7bb9198319e25.json
Update RBI files for rubocop-rspec.
Library/Homebrew/sorbet/rbi/gems/rubocop-rspec@2.9.0.rbi
@@ -112,6 +112,16 @@ end RuboCop::Cop::RSpec::Be::MSG = T.let(T.unsafe(nil), String) +class RuboCop::Cop::RSpec::BeEq < ::RuboCop::Cop::RSpec::Base + extend ::RuboCop::Cop::AutoCorrector + + def eq_type_with_identity?(param0 = T.unsafe(nil)); end + def on_send(node); end +end + +RuboCop::Cop::RSpec::BeEq::MSG = T.let(T.unsafe(nil), String) +RuboCop::Cop::RSpec::BeEq::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + class RuboCop::Cop::RSpec::BeEql < ::RuboCop::Cop::RSpec::Base extend ::RuboCop::Cop::AutoCorrector @@ -122,6 +132,16 @@ end RuboCop::Cop::RSpec::BeEql::MSG = T.let(T.unsafe(nil), String) RuboCop::Cop::RSpec::BeEql::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) +class RuboCop::Cop::RSpec::BeNil < ::RuboCop::Cop::RSpec::Base + extend ::RuboCop::Cop::AutoCorrector + + def nil_value_expectation?(param0 = T.unsafe(nil)); end + def on_send(node); end +end + +RuboCop::Cop::RSpec::BeNil::MSG = T.let(T.unsafe(nil), String) +RuboCop::Cop::RSpec::BeNil::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + class RuboCop::Cop::RSpec::BeforeAfterAll < ::RuboCop::Cop::RSpec::Base def before_or_after_all(param0 = T.unsafe(nil)); end def on_send(node); end
false
Other
Homebrew
brew
dd898e58b836c0d39b705a5043dd90294d7543c1.json
test/keg_relocate/grep_spec.rb: add new unit tests
Library/Homebrew/test/keg_relocate/grep_spec.rb
@@ -0,0 +1,58 @@ +# typed: false +# frozen_string_literal: true + +require "keg_relocate" + +describe Keg do + subject(:keg) { described_class.new(HOMEBREW_CELLAR/"foo/1.0.0") } + + let(:dir) { HOMEBREW_CELLAR/"foo/1.0.0" } + let(:text_file) { dir/"file.txt" } + let(:binary_file) { dir/"file.bin" } + + before do + dir.mkpath + end + + def setup_text_file + text_file.atomic_write <<~EOS + #{dir}/file.txt + /foo#{dir}/file.txt + foo/bar:#{dir}/file.txt + foo/bar:/foo#{dir}/file.txt + #{dir}/bar.txt:#{dir}/baz.txt + EOS + end + + def setup_binary_file + binary_file.atomic_write <<~EOS + \x00 + EOS + end + + describe "#each_unique_file_matching" do + specify "find string matches to path" do + setup_text_file + + string_matches = Set.new + keg.each_unique_file_matching(dir) do |file| + string_matches << file + end + + expect(string_matches.size).to eq 1 + end + end + + describe "#each_unique_binary_file" do + specify "find null bytes in binaries" do + setup_binary_file + + binary_matches = Set.new + keg.each_unique_binary_file do |file| + binary_matches << file + end + + expect(binary_matches.size).to eq 1 + end + end +end
false
Other
Homebrew
brew
16bdd423089f5fa307b4b87a8868bd4598237fdf.json
cask/dsl/version_spec: remove deprecated specs. No idea why these didn't fail before now?
Library/Homebrew/test/cask/dsl/version_spec.rb
@@ -170,22 +170,6 @@ "1.2.3,abc" => "abc" end - describe "#before_colon" do - include_examples "version expectations hash", :before_colon, - "1.2.3" => "1.2.3", - "1.2.3:" => "1.2.3", - ":abc" => "", - "1.2.3:abc" => "1.2.3" - end - - describe "#after_colon" do - include_examples "version expectations hash", :after_colon, - "1.2.3" => "", - "1.2.3:" => "", - ":abc" => "abc", - "1.2.3:abc" => "abc" - end - describe "#dots_to_hyphens" do include_examples "version expectations hash", :dots_to_hyphens, "1.2.3_4-5" => "1-2-3_4-5"
false
Other
Homebrew
brew
20f2b14c38dcfb1962d6cb41f4beabd7396e4eea.json
formula: remove OnOS deprecation comment. We can't actually remove this as we still need it indefinitely in e.g. `def caveats`.
Library/Homebrew/formula.rb
@@ -64,7 +64,7 @@ class Formula include Utils::Shebang include Utils::Shell include Context - include OnOS # TODO: 3.4.0: odeprecate OnOS usage in instance methods. + include OnOS extend Forwardable extend Cachable extend Predicable
false
Other
Homebrew
brew
e49661532f999464d018833af5257c4243f8a913.json
Update RBI files for json_schemer.
Library/Homebrew/sorbet/rbi/gems/json_schemer@0.2.19.rbi
@@ -1,9 +1,9 @@ +# typed: true + # DO NOT EDIT MANUALLY # This is an autogenerated file for types exported from the `json_schemer` gem. # Please instead update this file by running `bin/tapioca gem json_schemer`. -# typed: true - module JSONSchemer class << self def schema(schema, **options); end
false
Other
Homebrew
brew
9ad3a9cefe8e7dd592cd11b743dc2c45cc414363.json
dev-cmd/bump: Tell the user why we didn't bump a package Co-authored-by: Nanda H Krishna <me@nandahkrishna.com>
Library/Homebrew/dev-cmd/bump.rb
@@ -269,6 +269,14 @@ def retrieve_and_display_info_and_open_pr(formula_or_cask, name, repositories, a EOS return unless args.open_pr? + + if repology_latest > current_version && + repology_latest > livecheck_latest && + livecheck_strategy == "GithubLatest" + puts "#{title_name} was not bumped to the Repology version because that " \ + "version is not the latest release on GitHub." + end + return unless new_version return if pull_requests
false
Other
Homebrew
brew
273c4270691915143abfd1da3b25ba66f2f46a58.json
Update RBI files for tapioca.
Library/Homebrew/sorbet/rbi/gems/tapioca@0.6.4.rbi
@@ -1,1240 +0,0 @@ -# typed: true - -# DO NOT EDIT MANUALLY -# This is an autogenerated file for types exported from the `tapioca` gem. -# Please instead update this file by running `bin/tapioca gem tapioca`. - -class ActiveRecordColumnTypeHelper - def initialize(*args, &blk); end - - sig { params(column_name: String).returns([String, String]) } - def type_for(column_name); end - - private - - sig { params(type: String).returns(String) } - def as_nilable_type(type); end - - sig { params(constant: Module).returns(T::Boolean) } - def do_not_generate_strong_types?(constant); end - - sig { params(column_type: Object).returns(String) } - def handle_unknown_type(column_type); end - - def lookup_arg_type_of_method(*args, &blk); end - def lookup_return_type_of_method(*args, &blk); end -end - -class DynamicMixinCompiler - include ::Tapioca::Reflection - - sig { params(constant: Module).void } - def initialize(constant); end - - def class_attribute_predicates; end - - sig { returns(T::Array[Symbol]) } - def class_attribute_readers; end - - def class_attribute_writers; end - - sig { params(tree: RBI::Tree).void } - def compile_class_attributes(tree); end - - sig { params(tree: RBI::Tree).returns([T::Array[Module], T::Array[Module]]) } - def compile_mixes_in_class_methods(tree); end - - sig { returns(T::Array[Module]) } - def dynamic_extends; end - - def dynamic_includes; end - - sig { returns(T::Boolean) } - def empty_attributes?; end - - sig { params(qualified_mixin_name: String).returns(T::Boolean) } - def filtered_mixin?(qualified_mixin_name); end - - def instance_attribute_predicates; end - - sig { returns(T::Array[Symbol]) } - def instance_attribute_readers; end - - def instance_attribute_writers; end - - sig { params(mod: Module, dynamic_extends: T::Array[Module]).returns(T::Boolean) } - def module_included_by_another_dynamic_extend?(mod, dynamic_extends); end -end - -class Module - include ::ActiveSupport::Dependencies::ModuleConstMissing - - def autoload(const_name, path); end -end - -Module::DELEGATION_RESERVED_KEYWORDS = T.let(T.unsafe(nil), Array) -Module::DELEGATION_RESERVED_METHOD_NAMES = T.let(T.unsafe(nil), Set) -Module::RUBY_RESERVED_KEYWORDS = T.let(T.unsafe(nil), Array) -module RBI; end - -class RBI::File - sig { params(strictness: T.nilable(String), comments: T::Array[RBI::Comment], block: T.nilable(T.proc.params(file: RBI::File).void)).void } - def initialize(strictness: T.unsafe(nil), comments: T.unsafe(nil), &block); end - - sig { params(node: RBI::Node).void } - def <<(node); end - - sig { params(v: RBI::Printer).void } - def accept_printer(v); end - - sig { returns(T::Array[RBI::Comment]) } - def comments; end - - def comments=(_arg0); end - - sig { returns(T::Boolean) } - def empty?; end - - sig { params(out: T.any(IO, StringIO), indent: Integer, print_locs: T::Boolean, max_line_length: T.nilable(Integer)).void } - def print(out: T.unsafe(nil), indent: T.unsafe(nil), print_locs: T.unsafe(nil), max_line_length: T.unsafe(nil)); end - - sig { returns(RBI::Tree) } - def root; end - - def root=(_arg0); end - - sig { void } - def set_empty_body_content; end - - sig { params(command: String, reason: T.nilable(String), display_heading: T::Boolean).void } - def set_file_header(command, reason: T.unsafe(nil), display_heading: T.unsafe(nil)); end - - sig { returns(T.nilable(String)) } - def strictness; end - - def strictness=(_arg0); end - - sig { params(indent: Integer, print_locs: T::Boolean, max_line_length: T.nilable(Integer)).returns(String) } - def string(indent: T.unsafe(nil), print_locs: T.unsafe(nil), max_line_length: T.unsafe(nil)); end - - sig { void } - def transform_rbi!; end - - sig { returns(String) } - def transformed_string; end -end - -class RBI::Tree < ::RBI::NodeWithComments - sig { params(loc: T.nilable(RBI::Loc), comments: T::Array[RBI::Comment], block: T.nilable(T.proc.params(node: RBI::Tree).void)).void } - def initialize(loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end - - sig { params(node: RBI::Node).void } - def <<(node); end - - sig { override.params(v: RBI::Printer).void } - def accept_printer(v); end - - sig { params(with_todo_comment: T::Boolean).void } - def add_sig_templates!(with_todo_comment: T.unsafe(nil)); end - - sig { params(annotation: String, annotate_scopes: T::Boolean, annotate_properties: T::Boolean).void } - def annotate!(annotation, annotate_scopes: T.unsafe(nil), annotate_properties: T.unsafe(nil)); end - - sig { params(name: String, superclass_name: T.nilable(String), block: T.nilable(T.proc.params(scope: RBI::Scope).void)).returns(RBI::Scope) } - def create_class(name, superclass_name: T.unsafe(nil), &block); end - - sig { params(name: String, value: String).void } - def create_constant(name, value:); end - - sig { params(name: String).void } - def create_extend(name); end - - sig { params(name: String).void } - def create_include(name); end - - sig { params(name: String, parameters: T::Array[RBI::TypedParam], return_type: String, class_method: T::Boolean, visibility: RBI::Visibility).void } - def create_method(name, parameters: T.unsafe(nil), return_type: T.unsafe(nil), class_method: T.unsafe(nil), visibility: T.unsafe(nil)); end - - sig { params(name: String).void } - def create_mixes_in_class_methods(name); end - - sig { params(name: String, block: T.nilable(T.proc.params(scope: RBI::Scope).void)).returns(RBI::Scope) } - def create_module(name, &block); end - - sig { params(constant: Module, block: T.nilable(T.proc.params(scope: RBI::Scope).void)).void } - def create_path(constant, &block); end - - sig { params(name: String, value: String).void } - def create_type_member(name, value: T.unsafe(nil)); end - - sig { params(annotation: String).void } - def deannotate!(annotation); end - - sig { returns(T::Boolean) } - def empty?; end - - sig { void } - def group_nodes!; end - - sig { returns(RBI::Index) } - def index; end - - sig { params(other: RBI::Tree, left_name: String, right_name: String, keep: RBI::Rewriters::Merge::Keep).returns(RBI::MergeTree) } - def merge(other, left_name: T.unsafe(nil), right_name: T.unsafe(nil), keep: T.unsafe(nil)); end - - sig { void } - def nest_non_public_methods!; end - - sig { void } - def nest_singleton_methods!; end - - sig { returns(T::Array[RBI::Node]) } - def nodes; end - - sig { override.returns(T::Boolean) } - def oneline?; end - - sig { void } - def sort_nodes!; end - - private - - sig { params(node: RBI::Node).returns(RBI::Node) } - def create_node(node); end - - sig { returns(T::Hash[String, RBI::Node]) } - def nodes_cache; end - - sig { params(name: String).returns(T::Boolean) } - def valid_method_name?(name); end -end - -RBI::Tree::SPECIAL_METHOD_NAMES = T.let(T.unsafe(nil), Array) - -class RBI::TypedParam < ::T::Struct - const :param, RBI::Param - const :type, String - - class << self - def inherited(s); end - end -end - -RBI::VERSION = T.let(T.unsafe(nil), String) - -module T::Generic::TypeStoragePatch - def [](*types); end - def type_member(variance = T.unsafe(nil), fixed: T.unsafe(nil), lower: T.unsafe(nil), upper: T.unsafe(nil)); end - def type_template(variance = T.unsafe(nil), fixed: T.unsafe(nil), lower: T.unsafe(nil), upper: T.unsafe(nil)); end -end - -module T::Types::Simple::GenericPatch - def name; end - def valid?(obj); end -end - -module T::Types::Simple::NamePatch - def name; end -end - -module Tapioca - class << self - sig { type_parameters(:Result).params(blk: T.proc.returns(T.type_parameter(:Result))).returns(T.type_parameter(:Result)) } - def silence_warnings(&blk); end - end -end - -class Tapioca::Cli < ::Thor - include ::Tapioca::CliHelper - include ::Tapioca::ConfigHelper - - def __print_version; end - def clean_shims(*files_to_clean); end - def dsl(*constants); end - def gem(*gems); end - def init; end - def require; end - def todo; end - - class << self - def exit_on_failure?; end - end -end - -Tapioca::Cli::FILE_HEADER_OPTION_DESC = T.let(T.unsafe(nil), String) - -module Tapioca::CliHelper - sig { params(message: String, color: T.any(Symbol, T::Array[Symbol])).void } - def say_error(message = T.unsafe(nil), *color); end -end - -module Tapioca::Compilers; end -module Tapioca::Compilers::Dsl; end - -class Tapioca::Compilers::Dsl::Base - include ::Tapioca::Reflection - include ::Tapioca::Compilers::Dsl::ParamHelper - - abstract! - - sig { params(compiler: Tapioca::Compilers::DslCompiler).void } - def initialize(compiler); end - - sig { params(error: String).void } - def add_error(error); end - - sig { abstract.type_parameters(:T).params(tree: RBI::Tree, constant: T.type_parameter(:T)).void } - def decorate(tree, constant); end - - sig { returns(T::Array[String]) } - def errors; end - - sig { abstract.returns(T::Enumerable[Module]) } - def gather_constants; end - - sig { params(generator_name: String).returns(T::Boolean) } - def generator_enabled?(generator_name); end - - sig { params(constant: Module).returns(T::Boolean) } - def handles?(constant); end - - sig { returns(T::Set[Module]) } - def processable_constants; end - - private - - sig { returns(T::Enumerable[Class]) } - def all_classes; end - - sig { returns(T::Enumerable[Module]) } - def all_modules; end - - sig { params(type: String).returns(String) } - def as_nilable_type(type); end - - sig { params(method_def: T.any(Method, UnboundMethod)).returns(T::Array[RBI::TypedParam]) } - def compile_method_parameters_to_rbi(method_def); end - - sig { params(method_def: T.any(Method, UnboundMethod)).returns(String) } - def compile_method_return_type_to_rbi(method_def); end - - sig { params(scope: RBI::Scope, method_def: T.any(Method, UnboundMethod), class_method: T::Boolean).void } - def create_method_from_def(scope, method_def, class_method: T.unsafe(nil)); end - - sig { params(method_def: T.any(Method, UnboundMethod), signature: T.untyped).returns(T::Array[String]) } - def parameters_types_from_signature(method_def, signature); end - - sig { params(name: String).returns(T::Boolean) } - def valid_parameter_name?(name); end - - class << self - sig { params(name: String).returns(T.nilable(T.class_of(Tapioca::Compilers::Dsl::Base))) } - def resolve(name); end - end -end - -Tapioca::Compilers::Dsl::DSL_COMPILERS_DIR = T.let(T.unsafe(nil), String) - -module Tapioca::Compilers::Dsl::ParamHelper - sig { params(name: String, type: String).returns(RBI::TypedParam) } - def create_block_param(name, type:); end - - sig { params(name: String, type: String, default: String).returns(RBI::TypedParam) } - def create_kw_opt_param(name, type:, default:); end - - sig { params(name: String, type: String).returns(RBI::TypedParam) } - def create_kw_param(name, type:); end - - sig { params(name: String, type: String).returns(RBI::TypedParam) } - def create_kw_rest_param(name, type:); end - - sig { params(name: String, type: String, default: String).returns(RBI::TypedParam) } - def create_opt_param(name, type:, default:); end - - sig { params(name: String, type: String).returns(RBI::TypedParam) } - def create_param(name, type:); end - - sig { params(name: String, type: String).returns(RBI::TypedParam) } - def create_rest_param(name, type:); end - - sig { params(param: RBI::Param, type: String).returns(RBI::TypedParam) } - def create_typed_param(param, type); end -end - -class Tapioca::Compilers::DslCompiler - sig { params(requested_constants: T::Array[Module], requested_generators: T::Array[T.class_of(Tapioca::Compilers::Dsl::Base)], excluded_generators: T::Array[T.class_of(Tapioca::Compilers::Dsl::Base)], error_handler: T.proc.params(error: String).void, number_of_workers: T.nilable(Integer)).void } - def initialize(requested_constants:, requested_generators: T.unsafe(nil), excluded_generators: T.unsafe(nil), error_handler: T.unsafe(nil), number_of_workers: T.unsafe(nil)); end - - sig { returns(T.proc.params(error: String).void) } - def error_handler; end - - sig { params(generator_name: String).returns(T::Boolean) } - def generator_enabled?(generator_name); end - - sig { returns(T::Enumerable[Tapioca::Compilers::Dsl::Base]) } - def generators; end - - sig { returns(T::Array[Module]) } - def requested_constants; end - - sig { type_parameters(:T).params(blk: T.proc.params(constant: Module, rbi: RBI::File).returns(T.type_parameter(:T))).returns(T::Array[T.type_parameter(:T)]) } - def run(&blk); end - - private - - sig { params(requested_constants: T::Array[Module]).returns(T::Set[Module]) } - def gather_constants(requested_constants); end - - sig { params(requested_generators: T::Array[T.class_of(Tapioca::Compilers::Dsl::Base)], excluded_generators: T::Array[T.class_of(Tapioca::Compilers::Dsl::Base)]).returns(T::Enumerable[Tapioca::Compilers::Dsl::Base]) } - def gather_generators(requested_generators, excluded_generators); end - - sig { params(constant: Module).returns(T.nilable(RBI::File)) } - def rbi_for_constant(constant); end - - sig { params(error: String).returns(T.noreturn) } - def report_error(error); end -end - -class Tapioca::Compilers::RequiresCompiler - sig { params(sorbet_path: String).void } - def initialize(sorbet_path); end - - sig { returns(String) } - def compile; end - - private - - sig { params(config: Spoom::Sorbet::Config).returns(T::Array[String]) } - def collect_files(config); end - - sig { params(file_path: String).returns(T::Enumerable[String]) } - def collect_requires(file_path); end - - sig { params(config: Spoom::Sorbet::Config, file_path: Pathname).returns(T::Boolean) } - def file_ignored_by_sorbet?(config, file_path); end - - sig { params(path: Pathname).returns(T::Array[String]) } - def path_parts(path); end -end - -module Tapioca::Compilers::Sorbet - class << self - sig { params(args: String).returns(String) } - def run(*args); end - - sig { returns(String) } - def sorbet_path; end - - sig { params(feature: Symbol, version: T.nilable(Gem::Version)).returns(T::Boolean) } - def supports?(feature, version: T.unsafe(nil)); end - end -end - -Tapioca::Compilers::Sorbet::EXE_PATH_ENV_VAR = T.let(T.unsafe(nil), String) -Tapioca::Compilers::Sorbet::FEATURE_REQUIREMENTS = T.let(T.unsafe(nil), Hash) -Tapioca::Compilers::Sorbet::SORBET = T.let(T.unsafe(nil), Pathname) -Tapioca::Compilers::Sorbet::SORBET_GEM_SPEC = T.let(T.unsafe(nil), Gem::Specification) -module Tapioca::Compilers::SymbolTable; end - -class Tapioca::Compilers::SymbolTable::SymbolGenerator - include ::Tapioca::Reflection - - sig { params(gem: Tapioca::Gemfile::GemSpec, indent: Integer, include_doc: T::Boolean).void } - def initialize(gem, indent = T.unsafe(nil), include_doc = T.unsafe(nil)); end - - sig { returns(Tapioca::Gemfile::GemSpec) } - def gem; end - - sig { params(rbi: RBI::File).void } - def generate(rbi); end - - sig { returns(Integer) } - def indent; end - - private - - sig { params(tree: RBI::Tree, mods: T::Array[Module], mixin_type: Tapioca::Trackers::Mixin::Type).void } - def add_mixins(tree, mods, mixin_type); end - - sig { params(name: String).void } - def add_to_alias_namespace(name); end - - sig { params(name: T.nilable(String)).void } - def add_to_symbol_queue(name); end - - sig { params(name: String).returns(T::Boolean) } - def alias_namespaced?(name); end - - sig { params(tree: RBI::Tree, name: T.nilable(String), constant: BasicObject).void } - def compile(tree, name, constant); end - - sig { params(tree: RBI::Tree, name: String, constant: Module).void } - def compile_alias(tree, name, constant); end - - sig { params(tree: RBI::Tree, name: String, constant: Module).void } - def compile_body(tree, name, constant); end - - sig { params(tree: RBI::Tree, name: String, constant: BasicObject).void } - def compile_constant(tree, name, constant); end - - sig { params(tree: RBI::Tree, module_name: String, mod: Module, for_visibility: T::Array[Symbol]).void } - def compile_directly_owned_methods(tree, module_name, mod, for_visibility = T.unsafe(nil)); end - - sig { params(tree: RBI::Tree, constant: Module).void } - def compile_dynamic_mixins(tree, constant); end - - sig { params(tree: RBI::Tree, constant: Module).void } - def compile_enums(tree, constant); end - - sig { params(tree: RBI::Tree, symbol_name: String, constant: Module, method: T.nilable(UnboundMethod), visibility: RBI::Visibility).void } - def compile_method(tree, symbol_name, constant, method, visibility = T.unsafe(nil)); end - - sig { params(tree: RBI::Tree, name: String, constant: Module).void } - def compile_methods(tree, name, constant); end - - sig { params(tree: RBI::Tree, constant: Module).void } - def compile_mixins(tree, constant); end - - sig { params(tree: RBI::Tree, name: String, constant: Module).void } - def compile_module(tree, name, constant); end - - sig { params(tree: RBI::Tree, constant: Module).void } - def compile_module_helpers(tree, constant); end - - sig { params(tree: RBI::Tree, name: String, value: BasicObject).void } - def compile_object(tree, name, value); end - - sig { params(tree: RBI::Tree, constant: Module).void } - def compile_props(tree, constant); end - - sig { params(signature: T.untyped, parameters: T::Array[[Symbol, String]]).returns(RBI::Sig) } - def compile_signature(signature, parameters); end - - sig { params(tree: RBI::Tree, name: String, constant: Module).void } - def compile_subconstants(tree, name, constant); end - - sig { params(constant: Class).returns(T.nilable(String)) } - def compile_superclass(constant); end - - sig { params(tree: RBI::Tree, constant: Module).void } - def compile_type_variable_declarations(tree, constant); end - - sig { params(tree: RBI::Tree, constant: Module).void } - def compile_type_variables(tree, constant); end - - sig { params(constant: Module, strict: T::Boolean).returns(T::Boolean) } - def defined_in_gem?(constant, strict: T.unsafe(nil)); end - - sig { params(name: String).returns(T::Array[RBI::Comment]) } - def documentation_comments(name); end - - sig { params(symbols: T::Set[String]).returns(T::Set[String]) } - def engine_symbols(symbols); end - - sig { params(mixin_name: String).returns(T::Boolean) } - def filtered_mixin?(mixin_name); end - - sig { params(tree: RBI::Tree, symbol: String).void } - def generate_from_symbol(tree, symbol); end - - sig { params(constant: T.all(Module, T::Generic)).returns(String) } - def generic_name_of(constant); end - - sig { params(constant: Module).returns(T::Array[String]) } - def get_file_candidates(constant); end - - sig { params(constant: Module).returns(T.nilable(UnboundMethod)) } - def initialize_method_for(constant); end - - sig { params(constant: Module).returns(T::Array[Module]) } - def interesting_ancestors_of(constant); end - - sig { params(name: String).void } - def mark_seen(name); end - - sig { params(method: UnboundMethod).returns(T::Boolean) } - def method_in_gem?(method); end - - sig { params(mod: Module).returns(T::Hash[Symbol, T::Array[Symbol]]) } - def method_names_by_visibility(mod); end - - sig { params(mod: Module, mixin_type: Tapioca::Trackers::Mixin::Type, mixin_locations: T::Hash[Tapioca::Trackers::Mixin::Type, T::Hash[Module, T::Array[String]]]).returns(T::Boolean) } - def mixed_in_by_gem?(mod, mixin_type, mixin_locations); end - - sig { params(constant: Module).returns(T.nilable(String)) } - def name_of(constant); end - - sig { params(constant: Module, class_name: T.nilable(String)).returns(T.nilable(String)) } - def name_of_proxy_target(constant, class_name); end - - sig { params(sig_string: String).returns(String) } - def sanitize_signature_types(sig_string); end - - sig { params(name: String).returns(T::Boolean) } - def seen?(name); end - - sig { params(constant: Module, method_name: String).returns(T::Boolean) } - def struct_method?(constant, method_name); end - - sig { params(symbol_name: String).returns(T::Boolean) } - def symbol_ignored?(symbol_name); end - - sig { returns(T::Set[String]) } - def symbols; end - - sig { params(name: String).returns(T::Boolean) } - def valid_method_name?(name); end - - sig { params(name: String).returns(T::Boolean) } - def valid_parameter_name?(name); end -end - -Tapioca::Compilers::SymbolTable::SymbolGenerator::IGNORED_COMMENTS = T.let(T.unsafe(nil), Array) -Tapioca::Compilers::SymbolTable::SymbolGenerator::IGNORED_SYMBOLS = T.let(T.unsafe(nil), Array) -Tapioca::Compilers::SymbolTable::SymbolGenerator::SPECIAL_METHOD_NAMES = T.let(T.unsafe(nil), Array) -Tapioca::Compilers::SymbolTable::SymbolGenerator::TYPE_PARAMETER_MATCHER = T.let(T.unsafe(nil), Regexp) - -module Tapioca::Compilers::SymbolTable::SymbolLoader - class << self - def ignore_symbol?(symbol); end - - sig { params(paths: T::Array[Pathname]).returns(T::Set[String]) } - def list_from_paths(paths); end - - private - - def ignored_symbols; end - - sig { params(paths: T::Array[String]).returns(T::Set[String]) } - def load_symbols(paths); end - - def symbol_table_json_from(input, table_type: T.unsafe(nil)); end - end -end - -class Tapioca::Compilers::SymbolTable::SymbolLoader::SymbolTableParser - class << self - def parse(object, parents = T.unsafe(nil)); end - end -end - -class Tapioca::Compilers::SymbolTableCompiler - sig { params(gem: Tapioca::Gemfile::GemSpec, rbi: RBI::File, indent: Integer, include_docs: T::Boolean).void } - def compile(gem, rbi, indent = T.unsafe(nil), include_docs = T.unsafe(nil)); end -end - -class Tapioca::Compilers::TodosCompiler - sig { returns(String) } - def compile; end - - private - - sig { returns(String) } - def list_todos; end -end - -module Tapioca::ConfigHelper - sig { params(args: T.untyped, local_options: T.untyped, config: T.untyped).void } - def initialize(args = T.unsafe(nil), local_options = T.unsafe(nil), config = T.unsafe(nil)); end - - sig { returns(String) } - def command_name; end - - sig { returns(Thor::CoreExt::HashWithIndifferentAccess) } - def defaults; end - - sig { returns(Thor::CoreExt::HashWithIndifferentAccess) } - def options; end - - private - - sig { params(msg: String).returns(Tapioca::ConfigHelper::ConfigError) } - def build_error(msg); end - - sig { params(options: Thor::CoreExt::HashWithIndifferentAccess).returns(Thor::CoreExt::HashWithIndifferentAccess) } - def config_options(options); end - - sig { params(options: T::Hash[Symbol, Thor::Option]).void } - def filter_defaults(options); end - - sig { params(options: T.nilable(Thor::CoreExt::HashWithIndifferentAccess)).returns(Thor::CoreExt::HashWithIndifferentAccess) } - def merge_options(*options); end - - sig { params(config_file: String, errors: T::Array[Tapioca::ConfigHelper::ConfigError]).void } - def print_errors(config_file, errors); end - - sig { params(config_file: String, config: T::Hash[T.untyped, T.untyped]).void } - def validate_config!(config_file, config); end - - sig { params(command_options: T::Hash[Symbol, Thor::Option], config_key: String, config_options: T::Hash[T.untyped, T.untyped]).returns(T::Array[Tapioca::ConfigHelper::ConfigError]) } - def validate_config_options(command_options, config_key, config_options); end -end - -class Tapioca::ConfigHelper::ConfigError < ::T::Struct - const :message_parts, T::Array[Tapioca::ConfigHelper::ConfigErrorMessagePart] - - class << self - def inherited(s); end - end -end - -class Tapioca::ConfigHelper::ConfigErrorMessagePart < ::T::Struct - const :colors, T::Array[Symbol] - const :message, String - - class << self - def inherited(s); end - end -end - -Tapioca::DEFAULT_COMMAND = T.let(T.unsafe(nil), String) -Tapioca::DEFAULT_DSL_DIR = T.let(T.unsafe(nil), String) -Tapioca::DEFAULT_GEM_DIR = T.let(T.unsafe(nil), String) -Tapioca::DEFAULT_OVERRIDES = T.let(T.unsafe(nil), Hash) -Tapioca::DEFAULT_POSTREQUIRE_FILE = T.let(T.unsafe(nil), String) -Tapioca::DEFAULT_RBI_DIR = T.let(T.unsafe(nil), String) -Tapioca::DEFAULT_SHIM_DIR = T.let(T.unsafe(nil), String) -Tapioca::DEFAULT_TODO_FILE = T.let(T.unsafe(nil), String) -class Tapioca::Error < ::StandardError; end - -class Tapioca::Executor - sig { params(queue: T::Array[T.untyped], number_of_workers: T.nilable(Integer)).void } - def initialize(queue, number_of_workers: T.unsafe(nil)); end - - sig { type_parameters(:T).params(block: T.proc.params(item: T.untyped).returns(T.type_parameter(:T))).returns(T::Array[T.type_parameter(:T)]) } - def run_in_parallel(&block); end -end - -Tapioca::Executor::MINIMUM_ITEMS_PER_WORKER = T.let(T.unsafe(nil), Integer) - -class Tapioca::Gemfile - sig { void } - def initialize; end - - sig { returns(Bundler::Definition) } - def definition; end - - sig { returns(T::Array[Tapioca::Gemfile::GemSpec]) } - def dependencies; end - - sig { params(gem_name: String).returns(T.nilable(Tapioca::Gemfile::GemSpec)) } - def gem(gem_name); end - - sig { returns(T::Array[String]) } - def missing_specs; end - - sig { void } - def require_bundle; end - - private - - sig { returns(String) } - def dir; end - - sig { returns(File) } - def gemfile; end - - sig { returns(T::Array[Symbol]) } - def groups; end - - sig { returns([T::Array[Tapioca::Gemfile::GemSpec], T::Array[String]]) } - def load_dependencies; end - - def lockfile; end - - sig { returns([T::Enumerable[T.any(Bundler::StubSpecification, Gem::Specification)], T::Array[String]]) } - def materialize_deps; end - - sig { returns(Bundler::Runtime) } - def runtime; end -end - -class Tapioca::Gemfile::GemSpec - sig { params(spec: T.any(Bundler::StubSpecification, Gem::Specification)).void } - def initialize(spec); end - - sig { params(path: String).returns(T::Boolean) } - def contains_path?(path); end - - sig { returns(T::Boolean) } - def export_rbi_files?; end - - sig { returns(T::Array[String]) } - def exported_rbi_files; end - - sig { returns(RBI::MergeTree) } - def exported_rbi_tree; end - - sig { returns(T::Array[Pathname]) } - def files; end - - sig { returns(String) } - def full_gem_path; end - - sig { params(gemfile_dir: String).returns(T::Boolean) } - def ignore?(gemfile_dir); end - - sig { returns(String) } - def name; end - - sig { void } - def parse_yard_docs; end - - sig { returns(String) } - def rbi_file_name; end - - def version; end - - private - - sig { returns(T::Array[Pathname]) } - def collect_files; end - - sig { returns(T.nilable(T::Boolean)) } - def default_gem?; end - - sig { returns(T::Boolean) } - def gem_ignored?; end - - sig { params(gemfile_dir: String).returns(T::Boolean) } - def gem_in_app_dir?(gemfile_dir); end - - sig { returns(T::Boolean) } - def gem_in_bundle_path?; end - - sig { params(path: String).returns(T::Boolean) } - def has_parent_gemspec?(path); end - - sig { returns(Regexp) } - def require_paths_prefix_matcher; end - - sig { params(file: String).returns(Pathname) } - def resolve_to_ruby_lib_dir(file); end - - sig { params(path: T.any(Pathname, String)).returns(String) } - def to_realpath(path); end - - sig { returns(String) } - def version_string; end -end - -Tapioca::Gemfile::GemSpec::IGNORED_GEMS = T.let(T.unsafe(nil), Array) -Tapioca::Gemfile::Spec = T.type_alias { T.any(Bundler::StubSpecification, Gem::Specification) } -module Tapioca::Generators; end - -class Tapioca::Generators::Base - include ::Thor::Base - include ::Thor::Invocation - include ::Thor::Shell - include ::Tapioca::CliHelper - extend ::Thor::Base::ClassMethods - extend ::Thor::Invocation::ClassMethods - - abstract! - - sig { params(default_command: String, file_writer: Thor::Actions).void } - def initialize(default_command:, file_writer: T.unsafe(nil)); end - - sig { abstract.void } - def generate; end - - private - - sig { params(path: T.any(Pathname, String), content: String, force: T::Boolean, skip: T::Boolean, verbose: T::Boolean).void } - def create_file(path, content, force: T.unsafe(nil), skip: T.unsafe(nil), verbose: T.unsafe(nil)); end - - sig { params(path: T.any(Pathname, String), verbose: T::Boolean).void } - def remove_file(path, verbose: T.unsafe(nil)); end -end - -class Tapioca::Generators::Base::FileWriter < ::Thor - include ::Thor::Actions - extend ::Thor::Actions::ClassMethods -end - -class Tapioca::Generators::Dsl < ::Tapioca::Generators::Base - sig { params(requested_constants: T::Array[String], outpath: Pathname, only: T::Array[String], exclude: T::Array[String], file_header: T::Boolean, compiler_path: String, tapioca_path: String, default_command: String, file_writer: Thor::Actions, should_verify: T::Boolean, quiet: T::Boolean, verbose: T::Boolean, number_of_workers: T.nilable(Integer)).void } - def initialize(requested_constants:, outpath:, only:, exclude:, file_header:, compiler_path:, tapioca_path:, default_command:, file_writer: T.unsafe(nil), should_verify: T.unsafe(nil), quiet: T.unsafe(nil), verbose: T.unsafe(nil), number_of_workers: T.unsafe(nil)); end - - sig { override.void } - def generate; end - - private - - sig { void } - def abort_if_pending_migrations!; end - - sig { params(cause: Symbol, files: T::Array[String]).returns(String) } - def build_error_for_files(cause, files); end - - sig { params(constant_name: String, rbi: RBI::File, outpath: Pathname, quiet: T::Boolean).returns(T.nilable(Pathname)) } - def compile_dsl_rbi(constant_name, rbi, outpath: T.unsafe(nil), quiet: T.unsafe(nil)); end - - sig { params(constant_names: T::Array[String]).returns(T::Array[Module]) } - def constantize(constant_names); end - - sig { params(generator_names: T::Array[String]).returns(T::Array[T.class_of(Tapioca::Compilers::Dsl::Base)]) } - def constantize_generators(generator_names); end - - sig { params(constant_name: String).returns(Pathname) } - def dsl_rbi_filename(constant_name); end - - sig { params(requested_constants: T::Array[String], path: Pathname).returns(T::Set[Pathname]) } - def existing_rbi_filenames(requested_constants, path: T.unsafe(nil)); end - - sig { params(constant: String).returns(String) } - def generate_command_for(constant); end - - sig { params(eager_load: T::Boolean).void } - def load_application(eager_load:); end - - sig { void } - def load_dsl_extensions; end - - sig { void } - def load_dsl_generators; end - - sig { returns(Tapioca::Loader) } - def loader; end - - sig { params(dir: Pathname).void } - def perform_dsl_verification(dir); end - - sig { params(files: T::Set[Pathname]).void } - def purge_stale_dsl_rbi_files(files); end - - sig { params(constant: String).returns(String) } - def rbi_filename_for(constant); end - - sig { params(path: Pathname).returns(T::Array[Pathname]) } - def rbi_files_in(path); end - - sig { params(diff: T::Hash[String, Symbol], command: String).void } - def report_diff_and_exit_if_out_of_date(diff, command); end - - sig { params(class_name: String).returns(String) } - def underscore(class_name); end - - sig { params(tmp_dir: Pathname).returns(T::Hash[String, Symbol]) } - def verify_dsl_rbi(tmp_dir:); end -end - -class Tapioca::Generators::Gem < ::Tapioca::Generators::Base - sig { params(gem_names: T::Array[String], exclude: T::Array[String], prerequire: T.nilable(String), postrequire: String, typed_overrides: T::Hash[String, String], default_command: String, outpath: Pathname, file_header: T::Boolean, doc: T::Boolean, include_exported_rbis: T::Boolean, file_writer: Thor::Actions, number_of_workers: T.nilable(Integer)).void } - def initialize(gem_names:, exclude:, prerequire:, postrequire:, typed_overrides:, default_command:, outpath:, file_header:, doc:, include_exported_rbis:, file_writer: T.unsafe(nil), number_of_workers: T.unsafe(nil)); end - - sig { override.void } - def generate; end - - sig { params(should_verify: T::Boolean).void } - def sync(should_verify: T.unsafe(nil)); end - - private - - sig { returns(T::Array[String]) } - def added_rbis; end - - sig { params(cause: Symbol, files: T::Array[String]).returns(String) } - def build_error_for_files(cause, files); end - - sig { returns(Tapioca::Gemfile) } - def bundle; end - - sig { params(gem: Tapioca::Gemfile::GemSpec).void } - def compile_gem_rbi(gem); end - - sig { params(gem_name: String).returns(Pathname) } - def existing_rbi(gem_name); end - - sig { returns(T::Hash[String, String]) } - def existing_rbis; end - - sig { params(gem_name: String).returns(Pathname) } - def expected_rbi(gem_name); end - - sig { returns(T::Hash[String, String]) } - def expected_rbis; end - - sig { params(file: String, error: LoadError).void } - def explain_failed_require(file, error); end - - sig { params(gem_name: String).returns(T::Boolean) } - def gem_rbi_exists?(gem_name); end - - sig { params(gem_name: String, version: String).returns(Pathname) } - def gem_rbi_filename(gem_name, version); end - - sig { params(gem_names: T::Array[String]).returns(T::Array[Tapioca::Gemfile::GemSpec]) } - def gems_to_generate(gem_names); end - - sig { returns(Tapioca::Loader) } - def loader; end - - sig { params(gem: Tapioca::Gemfile::GemSpec, file: RBI::File).void } - def merge_with_exported_rbi(gem, file); end - - sig { params(old_filename: Pathname, new_filename: Pathname).void } - def move(old_filename, new_filename); end - - sig { void } - def perform_additions; end - - sig { void } - def perform_removals; end - - sig { void } - def perform_sync_verification; end - - sig { returns(T::Array[String]) } - def removed_rbis; end - - sig { params(diff: T::Hash[String, Symbol], command: String).void } - def report_diff_and_exit_if_out_of_date(diff, command); end - - sig { void } - def require_gem_file; end -end - -class Tapioca::Generators::Init < ::Tapioca::Generators::Base - sig { params(sorbet_config: String, tapioca_config: String, default_postrequire: String, default_command: String, file_writer: Thor::Actions).void } - def initialize(sorbet_config:, tapioca_config:, default_postrequire:, default_command:, file_writer: T.unsafe(nil)); end - - sig { override.void } - def generate; end - - private - - sig { void } - def create_binstub; end - - sig { void } - def create_post_require; end - - sig { void } - def create_sorbet_config; end - - sig { void } - def create_tapioca_config; end - - sig { returns(Bundler::Installer) } - def installer; end - - sig { returns(Bundler::StubSpecification) } - def spec; end -end - -class Tapioca::Generators::Require < ::Tapioca::Generators::Base - sig { params(requires_path: String, sorbet_config_path: String, default_command: String, file_writer: Thor::Actions).void } - def initialize(requires_path:, sorbet_config_path:, default_command:, file_writer: T.unsafe(nil)); end - - sig { override.void } - def generate; end -end - -class Tapioca::Generators::Todo < ::Tapioca::Generators::Base - sig { params(todo_file: String, file_header: T::Boolean, default_command: String, file_writer: Thor::Actions).void } - def initialize(todo_file:, file_header:, default_command:, file_writer: T.unsafe(nil)); end - - sig { override.void } - def generate; end - - sig { params(command: String, reason: T.nilable(String), strictness: T.nilable(String)).returns(String) } - def rbi_header(command, reason: T.unsafe(nil), strictness: T.unsafe(nil)); end -end - -module Tapioca::GenericTypeRegistry - class << self - sig { params(instance: Object).returns(T::Boolean) } - def generic_type_instance?(instance); end - - sig { params(constant: Module).returns(T.nilable(T::Array[Tapioca::TypeVariableModule])) } - def lookup_type_variables(constant); end - - sig { params(constant: T.untyped, types: T.untyped).returns(Module) } - def register_type(constant, types); end - - sig { params(constant: T.untyped, type_variable: Tapioca::TypeVariableModule).void } - def register_type_variable(constant, type_variable); end - - private - - sig { params(constant: Module, name: String).returns(Module) } - def create_generic_type(constant, name); end - - sig { params(constant: Class).returns(Class) } - def create_safe_subclass(constant); end - - sig { params(constant: Module).returns(T::Array[Tapioca::TypeVariableModule]) } - def lookup_or_initialize_type_variables(constant); end - end -end - -class Tapioca::Loader - sig { params(gemfile: Tapioca::Gemfile, initialize_file: T.nilable(String), require_file: T.nilable(String)).void } - def load_bundle(gemfile, initialize_file, require_file); end - - sig { params(environment_load: T::Boolean, eager_load: T::Boolean).void } - def load_rails_application(environment_load: T.unsafe(nil), eager_load: T.unsafe(nil)); end - - private - - sig { void } - def eager_load_rails_app; end - - sig { void } - def load_rails_engines; end - - sig { returns(T::Array[T.untyped]) } - def rails_engines; end - - sig { params(file: T.nilable(String)).void } - def require_helper(file); end - - sig { params(path: String).void } - def safe_require(path); end - - sig { void } - def silence_deprecations; end -end - -module Tapioca::Reflection - extend ::Tapioca::Reflection - - sig { params(constant: Module).returns(T::Array[Module]) } - def ancestors_of(constant); end - - sig { params(object: BasicObject, other: BasicObject).returns(T::Boolean) } - def are_equal?(object, other); end - - sig { params(object: BasicObject).returns(Class) } - def class_of(object); end - - sig { params(symbol: String, inherit: T::Boolean, namespace: Module).returns(BasicObject) } - def constantize(symbol, inherit: T.unsafe(nil), namespace: T.unsafe(nil)); end - - sig { params(constant: Module).returns(T::Array[Symbol]) } - def constants_of(constant); end - - sig { type_parameters(:U).params(klass: T.type_parameter(:U)).returns(T::Array[T.type_parameter(:U)]) } - def descendants_of(klass); end - - sig { params(constant: Module).returns(T::Array[Module]) } - def inherited_ancestors_of(constant); end - - sig { params(constant: Module, method: Symbol).returns(Method) } - def method_of(constant, method); end - - sig { params(constant: Module).returns(T.nilable(String)) } - def name_of(constant); end - - sig { params(type: T::Types::Base).returns(String) } - def name_of_type(type); end - - sig { params(object: BasicObject).returns(Integer) } - def object_id_of(object); end - - sig { params(constant: Module).returns(T::Array[Symbol]) } - def private_instance_methods_of(constant); end - - sig { params(constant: Module).returns(T::Array[Symbol]) } - def protected_instance_methods_of(constant); end - - sig { params(constant: Module).returns(T::Array[Symbol]) } - def public_instance_methods_of(constant); end - - sig { params(constant: Module).returns(T.nilable(String)) } - def qualified_name_of(constant); end - - sig { params(method: T.any(Method, UnboundMethod)).returns(T.untyped) } - def signature_of(method); end - - sig { params(constant: Module).returns(Class) } - def singleton_class_of(constant); end - - sig { params(constant: Class).returns(T.nilable(Class)) } - def superclass_of(constant); end -end - -Tapioca::Reflection::ANCESTORS_METHOD = T.let(T.unsafe(nil), UnboundMethod) -Tapioca::Reflection::CLASS_METHOD = T.let(T.unsafe(nil), UnboundMethod) -Tapioca::Reflection::CONSTANTS_METHOD = T.let(T.unsafe(nil), UnboundMethod) -Tapioca::Reflection::EQUAL_METHOD = T.let(T.unsafe(nil), UnboundMethod) -Tapioca::Reflection::METHOD_METHOD = T.let(T.unsafe(nil), UnboundMethod) -Tapioca::Reflection::NAME_METHOD = T.let(T.unsafe(nil), UnboundMethod) -Tapioca::Reflection::OBJECT_ID_METHOD = T.let(T.unsafe(nil), UnboundMethod) -Tapioca::Reflection::PRIVATE_INSTANCE_METHODS_METHOD = T.let(T.unsafe(nil), UnboundMethod) -Tapioca::Reflection::PROTECTED_INSTANCE_METHODS_METHOD = T.let(T.unsafe(nil), UnboundMethod) -Tapioca::Reflection::PUBLIC_INSTANCE_METHODS_METHOD = T.let(T.unsafe(nil), UnboundMethod) -Tapioca::Reflection::SINGLETON_CLASS_METHOD = T.let(T.unsafe(nil), UnboundMethod) -Tapioca::Reflection::SUPERCLASS_METHOD = T.let(T.unsafe(nil), UnboundMethod) -Tapioca::SORBET_CONFIG_FILE = T.let(T.unsafe(nil), String) -Tapioca::SORBET_DIR = T.let(T.unsafe(nil), String) -Tapioca::TAPIOCA_CONFIG_FILE = T.let(T.unsafe(nil), String) -Tapioca::TAPIOCA_DIR = T.let(T.unsafe(nil), String) -module Tapioca::Trackers; end - -module Tapioca::Trackers::Autoload - class << self - sig { void } - def eager_load_all!; end - - sig { params(constant_name: String).void } - def register(constant_name); end - - sig { type_parameters(:Result).params(block: T.proc.returns(T.type_parameter(:Result))).returns(T.type_parameter(:Result)) } - def with_disabled_exits(&block); end - end -end - -Tapioca::Trackers::Autoload::NOOP_METHOD = T.let(T.unsafe(nil), Proc) - -module Tapioca::Trackers::ConstantDefinition - extend ::Tapioca::Reflection - - class << self - def files_for(klass); end - end -end - -module Tapioca::Trackers::Mixin - class << self - sig { params(constant: Module).returns(T::Hash[Tapioca::Trackers::Mixin::Type, T::Hash[Module, T::Array[String]]]) } - def mixin_locations_for(constant); end - - sig { params(constant: Module, mod: Module, mixin_type: Tapioca::Trackers::Mixin::Type, locations: T.nilable(T::Array[Thread::Backtrace::Location])).void } - def register(constant, mod, mixin_type, locations); end - end -end - -class Tapioca::Trackers::Mixin::Type < ::T::Enum - enums do - Prepend = new - Include = new - Extend = new - end -end - -class Tapioca::TypeVariableModule < ::Module - sig { params(context: Module, type: Tapioca::TypeVariableModule::Type, variance: Symbol, fixed: T.untyped, lower: T.untyped, upper: T.untyped).void } - def initialize(context, type, variance, fixed, lower, upper); end - - sig { returns(T.nilable(String)) } - def name; end - - sig { returns(String) } - def serialize; end - - private - - sig { type_parameters(:Result).params(block: T.proc.returns(T.type_parameter(:Result))).returns(T.type_parameter(:Result)) } - def with_bound_name_pre_3_0(&block); end -end - -class Tapioca::TypeVariableModule::Type < ::T::Enum - enums do - Member = new - Template = new - end -end - -Tapioca::VERSION = T.let(T.unsafe(nil), String)
true
Other
Homebrew
brew
273c4270691915143abfd1da3b25ba66f2f46a58.json
Update RBI files for tapioca.
Library/Homebrew/sorbet/rbi/gems/tapioca@0.7.0.rbi
@@ -0,0 +1,1676 @@ +# typed: true + +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `tapioca` gem. +# Please instead update this file by running `bin/tapioca gem tapioca`. + +class Module + include ::ActiveSupport::Dependencies::ModuleConstMissing + + def autoload(const_name, path); end +end + +Module::DELEGATION_RESERVED_KEYWORDS = T.let(T.unsafe(nil), Array) +Module::DELEGATION_RESERVED_METHOD_NAMES = T.let(T.unsafe(nil), Set) +Module::RUBY_RESERVED_KEYWORDS = T.let(T.unsafe(nil), Array) +module RBI; end + +class RBI::Tree < ::RBI::NodeWithComments + sig do + params( + loc: T.nilable(::RBI::Loc), + comments: T::Array[::RBI::Comment], + block: T.nilable(T.proc.params(node: ::RBI::Tree).void) + ).void + end + def initialize(loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end + + sig { params(node: ::RBI::Node).void } + def <<(node); end + + sig { override.params(v: ::RBI::Printer).void } + def accept_printer(v); end + + sig { params(with_todo_comment: T::Boolean).void } + def add_sig_templates!(with_todo_comment: T.unsafe(nil)); end + + sig { params(annotation: ::String, annotate_scopes: T::Boolean, annotate_properties: T::Boolean).void } + def annotate!(annotation, annotate_scopes: T.unsafe(nil), annotate_properties: T.unsafe(nil)); end + + sig do + params( + name: ::String, + superclass_name: T.nilable(::String), + block: T.nilable(T.proc.params(scope: ::RBI::Scope).void) + ).returns(::RBI::Scope) + end + def create_class(name, superclass_name: T.unsafe(nil), &block); end + + sig { params(name: ::String, value: ::String).void } + def create_constant(name, value:); end + + sig { params(name: ::String).void } + def create_extend(name); end + + sig { params(name: ::String).void } + def create_include(name); end + + sig do + params( + name: ::String, + parameters: T::Array[::RBI::TypedParam], + return_type: ::String, + class_method: T::Boolean, + visibility: ::RBI::Visibility + ).void + end + def create_method(name, parameters: T.unsafe(nil), return_type: T.unsafe(nil), class_method: T.unsafe(nil), visibility: T.unsafe(nil)); end + + sig { params(name: ::String).void } + def create_mixes_in_class_methods(name); end + + sig { params(name: ::String, block: T.nilable(T.proc.params(scope: ::RBI::Scope).void)).returns(::RBI::Scope) } + def create_module(name, &block); end + + sig { params(constant: ::Module, block: T.nilable(T.proc.params(scope: ::RBI::Scope).void)).void } + def create_path(constant, &block); end + + sig { params(name: ::String, value: ::String).void } + def create_type_member(name, value: T.unsafe(nil)); end + + sig { params(annotation: ::String).void } + def deannotate!(annotation); end + + sig { returns(T::Boolean) } + def empty?; end + + sig { void } + def group_nodes!; end + + sig { returns(::RBI::Index) } + def index; end + + sig do + params( + other: ::RBI::Tree, + left_name: ::String, + right_name: ::String, + keep: ::RBI::Rewriters::Merge::Keep + ).returns(::RBI::MergeTree) + end + def merge(other, left_name: T.unsafe(nil), right_name: T.unsafe(nil), keep: T.unsafe(nil)); end + + sig { void } + def nest_non_public_methods!; end + + sig { void } + def nest_singleton_methods!; end + + sig { returns(T::Array[::RBI::Node]) } + def nodes; end + + sig { override.returns(T::Boolean) } + def oneline?; end + + sig { void } + def sort_nodes!; end + + private + + sig { params(node: ::RBI::Node).returns(::RBI::Node) } + def create_node(node); end + + sig { returns(T::Hash[::String, ::RBI::Node]) } + def nodes_cache; end + + sig { params(name: ::String).returns(T::Boolean) } + def valid_method_name?(name); end +end + +RBI::Tree::SPECIAL_METHOD_NAMES = T.let(T.unsafe(nil), Array) + +class RBI::TypedParam < ::T::Struct + const :param, ::RBI::Param + const :type, ::String + + class << self + def inherited(s); end + end +end + +RBI::VERSION = T.let(T.unsafe(nil), String) + +module T::Generic::TypeStoragePatch + def [](*types); end + def type_member(variance = T.unsafe(nil), fixed: T.unsafe(nil), lower: T.unsafe(nil), upper: T.unsafe(nil)); end + def type_template(variance = T.unsafe(nil), fixed: T.unsafe(nil), lower: T.unsafe(nil), upper: T.unsafe(nil)); end +end + +module T::Types::Simple::GenericPatch + def name; end +end + +module T::Types::Simple::NamePatch + def name; end +end + +module T::Utils::CoercePatch + def coerce(val); end +end + +module Tapioca + class << self + sig do + type_parameters(:Result) + .params( + blk: T.proc.returns(T.type_parameter(:Result)) + ).returns(T.type_parameter(:Result)) + end + def silence_warnings(&blk); end + end +end + +Tapioca::BINARY_FILE = T.let(T.unsafe(nil), String) + +class Tapioca::Cli < ::Thor + include ::Tapioca::CliHelper + include ::Tapioca::ConfigHelper + include ::Tapioca::ShimsHelper + + def __print_version; end + def check_shims; end + def dsl(*constants); end + def gem(*gems); end + def init; end + def require; end + def todo; end + + class << self + def exit_on_failure?; end + end +end + +Tapioca::Cli::FILE_HEADER_OPTION_DESC = T.let(T.unsafe(nil), String) + +module Tapioca::CliHelper + requires_ancestor { Thor::Shell } + + sig { params(options: T::Hash[::Symbol, T.untyped]).returns(::Tapioca::RBIFormatter) } + def rbi_formatter(options); end + + sig { params(message: ::String, color: T.any(::Symbol, T::Array[::Symbol])).void } + def say_error(message = T.unsafe(nil), *color); end +end + +module Tapioca::Commands; end + +class Tapioca::Commands::Command + include ::Thor::Base + include ::Thor::Invocation + include ::Thor::Shell + include ::Tapioca::CliHelper + extend ::Thor::Base::ClassMethods + extend ::Thor::Invocation::ClassMethods + + abstract! + + sig { void } + def initialize; end + + sig { abstract.void } + def execute; end + + sig { returns(::Thor::Actions) } + def file_writer; end + + private + + sig do + params( + path: T.any(::Pathname, ::String), + content: ::String, + force: T::Boolean, + skip: T::Boolean, + verbose: T::Boolean + ).void + end + def create_file(path, content, force: T.unsafe(nil), skip: T.unsafe(nil), verbose: T.unsafe(nil)); end + + sig { params(command: ::Symbol, args: ::String).returns(::String) } + def default_command(command, *args); end + + sig { params(path: T.any(::Pathname, ::String), verbose: T::Boolean).void } + def remove_file(path, verbose: T.unsafe(nil)); end +end + +class Tapioca::Commands::Command::FileWriter < ::Thor + include ::Thor::Actions + extend ::Thor::Actions::ClassMethods +end + +class Tapioca::Commands::Dsl < ::Tapioca::Commands::Command + sig do + params( + requested_constants: T::Array[::String], + outpath: ::Pathname, + only: T::Array[::String], + exclude: T::Array[::String], + file_header: T::Boolean, + compiler_path: ::String, + tapioca_path: ::String, + should_verify: T::Boolean, + quiet: T::Boolean, + verbose: T::Boolean, + number_of_workers: T.nilable(::Integer), + rbi_formatter: ::Tapioca::RBIFormatter + ).void + end + def initialize(requested_constants:, outpath:, only:, exclude:, file_header:, compiler_path:, tapioca_path:, should_verify: T.unsafe(nil), quiet: T.unsafe(nil), verbose: T.unsafe(nil), number_of_workers: T.unsafe(nil), rbi_formatter: T.unsafe(nil)); end + + sig { override.void } + def execute; end + + private + + sig { void } + def abort_if_pending_migrations!; end + + sig { params(cause: ::Symbol, files: T::Array[::String]).returns(::String) } + def build_error_for_files(cause, files); end + + sig do + params( + constant_name: ::String, + rbi: ::RBI::File, + outpath: ::Pathname, + quiet: T::Boolean + ).returns(T.nilable(::Pathname)) + end + def compile_dsl_rbi(constant_name, rbi, outpath: T.unsafe(nil), quiet: T.unsafe(nil)); end + + sig { params(constant_names: T::Array[::String]).returns(T::Array[::Module]) } + def constantize(constant_names); end + + sig { params(compiler_names: T::Array[::String]).returns(T::Array[T.class_of(Tapioca::Dsl::Compiler)]) } + def constantize_compilers(compiler_names); end + + sig { params(constant_name: ::String).returns(::Pathname) } + def dsl_rbi_filename(constant_name); end + + sig { params(requested_constants: T::Array[::String], path: ::Pathname).returns(T::Set[::Pathname]) } + def existing_rbi_filenames(requested_constants, path: T.unsafe(nil)); end + + sig { params(constant: ::String).returns(::String) } + def generate_command_for(constant); end + + sig { params(eager_load: T::Boolean).void } + def load_application(eager_load:); end + + sig { void } + def load_dsl_compilers; end + + sig { void } + def load_dsl_extensions; end + + sig { returns(::Tapioca::Runtime::Loader) } + def loader; end + + sig { params(dir: ::Pathname).void } + def perform_dsl_verification(dir); end + + sig { params(files: T::Set[::Pathname]).void } + def purge_stale_dsl_rbi_files(files); end + + sig { params(constant: ::String).returns(::String) } + def rbi_filename_for(constant); end + + sig { params(path: ::Pathname).returns(T::Array[::Pathname]) } + def rbi_files_in(path); end + + sig { params(diff: T::Hash[::String, ::Symbol], command: ::Symbol).void } + def report_diff_and_exit_if_out_of_date(diff, command); end + + sig { params(name: ::String).returns(T.nilable(T.class_of(Tapioca::Dsl::Compiler))) } + def resolve(name); end + + sig { params(class_name: ::String).returns(::String) } + def underscore(class_name); end + + sig { params(tmp_dir: ::Pathname).returns(T::Hash[::String, ::Symbol]) } + def verify_dsl_rbi(tmp_dir:); end +end + +class Tapioca::Commands::Gem < ::Tapioca::Commands::Command + include ::Tapioca::SorbetHelper + + sig do + params( + gem_names: T::Array[::String], + exclude: T::Array[::String], + prerequire: T.nilable(::String), + postrequire: ::String, + typed_overrides: T::Hash[::String, ::String], + outpath: ::Pathname, + file_header: T::Boolean, + doc: T::Boolean, + include_exported_rbis: T::Boolean, + number_of_workers: T.nilable(::Integer), + auto_strictness: T::Boolean, + dsl_dir: ::String, + rbi_formatter: ::Tapioca::RBIFormatter + ).void + end + def initialize(gem_names:, exclude:, prerequire:, postrequire:, typed_overrides:, outpath:, file_header:, doc:, include_exported_rbis:, number_of_workers: T.unsafe(nil), auto_strictness: T.unsafe(nil), dsl_dir: T.unsafe(nil), rbi_formatter: T.unsafe(nil)); end + + sig { override.void } + def execute; end + + sig { params(should_verify: T::Boolean).void } + def sync(should_verify: T.unsafe(nil)); end + + private + + sig { returns(T::Array[::String]) } + def added_rbis; end + + sig { params(cause: ::Symbol, files: T::Array[::String]).returns(::String) } + def build_error_for_files(cause, files); end + + sig { returns(::Tapioca::Gemfile) } + def bundle; end + + sig { params(gem: ::Tapioca::Gemfile::GemSpec).void } + def compile_gem_rbi(gem); end + + sig { params(gem_name: ::String).returns(::Pathname) } + def existing_rbi(gem_name); end + + sig { returns(T::Hash[::String, ::String]) } + def existing_rbis; end + + sig { params(gem_name: ::String).returns(::Pathname) } + def expected_rbi(gem_name); end + + sig { returns(T::Hash[::String, ::String]) } + def expected_rbis; end + + sig { params(file: ::String, error: ::LoadError).void } + def explain_failed_require(file, error); end + + sig { params(path: ::String).returns(::String) } + def gem_name_from_rbi_path(path); end + + sig { params(gem_name: ::String).returns(T::Boolean) } + def gem_rbi_exists?(gem_name); end + + sig { params(gem_name: ::String, version: ::String).returns(::Pathname) } + def gem_rbi_filename(gem_name, version); end + + sig { params(gem_names: T::Array[::String]).returns(T::Array[::Tapioca::Gemfile::GemSpec]) } + def gems_to_generate(gem_names); end + + sig { returns(::Tapioca::Runtime::Loader) } + def loader; end + + sig { params(gem: ::Tapioca::Gemfile::GemSpec, file: ::RBI::File).void } + def merge_with_exported_rbi(gem, file); end + + sig { params(old_filename: ::Pathname, new_filename: ::Pathname).void } + def move(old_filename, new_filename); end + + sig { void } + def perform_additions; end + + sig { void } + def perform_removals; end + + sig { void } + def perform_sync_verification; end + + sig { returns(T::Array[::String]) } + def removed_rbis; end + + sig { params(diff: T::Hash[::String, ::Symbol], command: ::Symbol).void } + def report_diff_and_exit_if_out_of_date(diff, command); end + + sig { void } + def require_gem_file; end + + sig { params(gem_names: T::Array[::String], gem_dir: ::String, dsl_dir: ::String).void } + def update_strictnesses(gem_names, gem_dir: T.unsafe(nil), dsl_dir: T.unsafe(nil)); end +end + +class Tapioca::Commands::Init < ::Tapioca::Commands::Command + sig { params(sorbet_config: ::String, tapioca_config: ::String, default_postrequire: ::String).void } + def initialize(sorbet_config:, tapioca_config:, default_postrequire:); end + + sig { override.void } + def execute; end + + private + + sig { void } + def create_binstub; end + + sig { void } + def create_post_require; end + + sig { void } + def create_sorbet_config; end + + sig { void } + def create_tapioca_config; end + + sig { returns(::Bundler::Installer) } + def installer; end + + sig { returns(::Bundler::StubSpecification) } + def spec; end +end + +class Tapioca::Commands::Require < ::Tapioca::Commands::Command + sig { params(requires_path: ::String, sorbet_config_path: ::String).void } + def initialize(requires_path:, sorbet_config_path:); end + + sig { override.void } + def execute; end +end + +class Tapioca::Commands::Todo < ::Tapioca::Commands::Command + include ::Tapioca::SorbetHelper + + sig { params(todo_file: ::String, file_header: T::Boolean).void } + def initialize(todo_file:, file_header:); end + + sig { override.void } + def execute; end + + private + + sig { params(constants: T::Array[::String], command: ::String).returns(::RBI::File) } + def rbi(constants, command:); end + + sig { returns(T::Array[::String]) } + def unresolved_constants; end +end + +module Tapioca::ConfigHelper + requires_ancestor { Thor } + + sig { params(args: T.untyped, local_options: T.untyped, config: T.untyped).void } + def initialize(args = T.unsafe(nil), local_options = T.unsafe(nil), config = T.unsafe(nil)); end + + sig { returns(::String) } + def command_name; end + + sig { returns(::Thor::CoreExt::HashWithIndifferentAccess) } + def defaults; end + + sig { returns(::Thor::CoreExt::HashWithIndifferentAccess) } + def options; end + + private + + sig { params(msg: ::String).returns(::Tapioca::ConfigHelper::ConfigError) } + def build_error(msg); end + + sig do + params( + options: ::Thor::CoreExt::HashWithIndifferentAccess + ).returns(::Thor::CoreExt::HashWithIndifferentAccess) + end + def config_options(options); end + + sig { params(options: T::Hash[::Symbol, ::Thor::Option]).void } + def filter_defaults(options); end + + sig do + params( + options: T.nilable(::Thor::CoreExt::HashWithIndifferentAccess) + ).returns(::Thor::CoreExt::HashWithIndifferentAccess) + end + def merge_options(*options); end + + sig { params(config_file: ::String, errors: T::Array[::Tapioca::ConfigHelper::ConfigError]).void } + def print_errors(config_file, errors); end + + sig { params(config_file: ::String, config: T::Hash[T.untyped, T.untyped]).void } + def validate_config!(config_file, config); end + + sig do + params( + command_options: T::Hash[::Symbol, ::Thor::Option], + config_key: ::String, + config_options: T::Hash[T.untyped, T.untyped] + ).returns(T::Array[::Tapioca::ConfigHelper::ConfigError]) + end + def validate_config_options(command_options, config_key, config_options); end +end + +class Tapioca::ConfigHelper::ConfigError < ::T::Struct + const :message_parts, T::Array[::Tapioca::ConfigHelper::ConfigErrorMessagePart] + + class << self + def inherited(s); end + end +end + +class Tapioca::ConfigHelper::ConfigErrorMessagePart < ::T::Struct + const :colors, T::Array[::Symbol] + const :message, ::String + + class << self + def inherited(s); end + end +end + +Tapioca::DEFAULT_DSL_DIR = T.let(T.unsafe(nil), String) +Tapioca::DEFAULT_GEM_DIR = T.let(T.unsafe(nil), String) +Tapioca::DEFAULT_OVERRIDES = T.let(T.unsafe(nil), Hash) +Tapioca::DEFAULT_POSTREQUIRE_FILE = T.let(T.unsafe(nil), String) +Tapioca::DEFAULT_RBI_DIR = T.let(T.unsafe(nil), String) +Tapioca::DEFAULT_RBI_FORMATTER = T.let(T.unsafe(nil), Tapioca::RBIFormatter) +Tapioca::DEFAULT_SHIM_DIR = T.let(T.unsafe(nil), String) +Tapioca::DEFAULT_TODO_FILE = T.let(T.unsafe(nil), String) +module Tapioca::Dsl; end + +class Tapioca::Dsl::Compiler + extend T::Generic + include ::Tapioca::Runtime::Reflection + include ::Tapioca::Dsl::Helpers::ParamHelper + extend ::Tapioca::Runtime::Reflection + + abstract! + + ConstantType = type_member(upper: Module) + + sig { params(pipeline: ::Tapioca::Dsl::Pipeline, root: ::RBI::Tree, constant: ConstantType).void } + def initialize(pipeline, root, constant); end + + sig { params(error: ::String).void } + def add_error(error); end + + sig { params(compiler_name: ::String).returns(T::Boolean) } + def compiler_enabled?(compiler_name); end + + sig { returns(ConstantType) } + def constant; end + + sig { abstract.void } + def decorate; end + + sig { returns(::RBI::Tree) } + def root; end + + private + + sig { params(type: ::String).returns(::String) } + def as_nilable_type(type); end + + sig { params(method_def: T.any(::Method, ::UnboundMethod)).returns(T::Array[::RBI::TypedParam]) } + def compile_method_parameters_to_rbi(method_def); end + + sig { params(method_def: T.any(::Method, ::UnboundMethod)).returns(::String) } + def compile_method_return_type_to_rbi(method_def); end + + sig { params(scope: ::RBI::Scope, method_def: T.any(::Method, ::UnboundMethod), class_method: T::Boolean).void } + def create_method_from_def(scope, method_def, class_method: T.unsafe(nil)); end + + sig { params(method_def: T.any(::Method, ::UnboundMethod), signature: T.untyped).returns(T::Array[::String]) } + def parameters_types_from_signature(method_def, signature); end + + sig { params(name: ::String).returns(T::Boolean) } + def valid_parameter_name?(name); end + + class << self + sig { abstract.returns(T::Enumerable[::Module]) } + def gather_constants; end + + sig { params(constant: ::Module).returns(T::Boolean) } + def handles?(constant); end + + sig { returns(T::Set[::Module]) } + def processable_constants; end + + private + + sig { returns(T::Enumerable[::Class]) } + def all_classes; end + + sig { returns(T::Enumerable[::Module]) } + def all_modules; end + end +end + +module Tapioca::Dsl::Compilers; end +Tapioca::Dsl::Compilers::DIRECTORY = T.let(T.unsafe(nil), String) +Tapioca::Dsl::Compilers::NAMESPACES = T.let(T.unsafe(nil), Array) +module Tapioca::Dsl::Helpers; end + +module Tapioca::Dsl::Helpers::ParamHelper + sig { params(name: ::String, type: ::String).returns(::RBI::TypedParam) } + def create_block_param(name, type:); end + + sig { params(name: ::String, type: ::String, default: ::String).returns(::RBI::TypedParam) } + def create_kw_opt_param(name, type:, default:); end + + sig { params(name: ::String, type: ::String).returns(::RBI::TypedParam) } + def create_kw_param(name, type:); end + + sig { params(name: ::String, type: ::String).returns(::RBI::TypedParam) } + def create_kw_rest_param(name, type:); end + + sig { params(name: ::String, type: ::String, default: ::String).returns(::RBI::TypedParam) } + def create_opt_param(name, type:, default:); end + + sig { params(name: ::String, type: ::String).returns(::RBI::TypedParam) } + def create_param(name, type:); end + + sig { params(name: ::String, type: ::String).returns(::RBI::TypedParam) } + def create_rest_param(name, type:); end + + sig { params(param: ::RBI::Param, type: ::String).returns(::RBI::TypedParam) } + def create_typed_param(param, type); end +end + +class Tapioca::Dsl::Pipeline + sig do + params( + requested_constants: T::Array[::Module], + requested_compilers: T::Array[T.class_of(Tapioca::Dsl::Compiler)], + excluded_compilers: T::Array[T.class_of(Tapioca::Dsl::Compiler)], + error_handler: T.proc.params(error: ::String).void, + number_of_workers: T.nilable(::Integer) + ).void + end + def initialize(requested_constants:, requested_compilers: T.unsafe(nil), excluded_compilers: T.unsafe(nil), error_handler: T.unsafe(nil), number_of_workers: T.unsafe(nil)); end + + sig { params(error: ::String).void } + def add_error(error); end + + sig { params(compiler_name: ::String).returns(T::Boolean) } + def compiler_enabled?(compiler_name); end + + sig { returns(T::Enumerable[T.class_of(Tapioca::Dsl::Compiler)]) } + def compilers; end + + sig { returns(T.proc.params(error: ::String).void) } + def error_handler; end + + sig { returns(T::Array[::String]) } + def errors; end + + sig { returns(T::Array[::Module]) } + def requested_constants; end + + sig do + type_parameters(:T) + .params( + blk: T.proc.params(constant: ::Module, rbi: ::RBI::File).returns(T.type_parameter(:T)) + ).returns(T::Array[T.type_parameter(:T)]) + end + def run(&blk); end + + private + + sig do + params( + requested_compilers: T::Array[T.class_of(Tapioca::Dsl::Compiler)], + excluded_compilers: T::Array[T.class_of(Tapioca::Dsl::Compiler)] + ).returns(T::Enumerable[T.class_of(Tapioca::Dsl::Compiler)]) + end + def gather_compilers(requested_compilers, excluded_compilers); end + + sig { params(requested_constants: T::Array[::Module]).returns(T::Set[::Module]) } + def gather_constants(requested_constants); end + + sig { params(constant: ::Module).returns(T.nilable(::RBI::File)) } + def rbi_for_constant(constant); end + + sig { params(error: ::String).returns(T.noreturn) } + def report_error(error); end +end + +class Tapioca::Error < ::StandardError; end + +class Tapioca::Executor + sig { params(queue: T::Array[T.untyped], number_of_workers: T.nilable(::Integer)).void } + def initialize(queue, number_of_workers: T.unsafe(nil)); end + + sig do + type_parameters(:T) + .params( + block: T.proc.params(item: T.untyped).returns(T.type_parameter(:T)) + ).returns(T::Array[T.type_parameter(:T)]) + end + def run_in_parallel(&block); end +end + +Tapioca::Executor::MINIMUM_ITEMS_PER_WORKER = T.let(T.unsafe(nil), Integer) +module Tapioca::Gem; end + +class Tapioca::Gem::ConstNodeAdded < ::Tapioca::Gem::NodeAdded + sig { params(symbol: ::String, constant: ::Module, node: ::RBI::Const).void } + def initialize(symbol, constant, node); end + + sig { returns(::RBI::Const) } + def node; end +end + +class Tapioca::Gem::ConstantFound < ::Tapioca::Gem::Event + sig { params(symbol: ::String, constant: ::BasicObject).void } + def initialize(symbol, constant); end + + sig { returns(::BasicObject) } + def constant; end + + sig { returns(::String) } + def symbol; end +end + +class Tapioca::Gem::Event + abstract! + + def initialize(*args, &blk); end +end + +module Tapioca::Gem::Listeners; end + +class Tapioca::Gem::Listeners::Base + abstract! + + sig { params(pipeline: ::Tapioca::Gem::Pipeline).void } + def initialize(pipeline); end + + sig { params(event: ::Tapioca::Gem::NodeAdded).void } + def dispatch(event); end + + private + + sig { params(event: ::Tapioca::Gem::ConstNodeAdded).void } + def on_const(event); end + + sig { params(event: ::Tapioca::Gem::MethodNodeAdded).void } + def on_method(event); end + + sig { params(event: ::Tapioca::Gem::ScopeNodeAdded).void } + def on_scope(event); end +end + +class Tapioca::Gem::Listeners::DynamicMixins < ::Tapioca::Gem::Listeners::Base + include ::Tapioca::Runtime::Reflection + + private + + sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void } + def on_scope(event); end +end + +class Tapioca::Gem::Listeners::Methods < ::Tapioca::Gem::Listeners::Base + include ::Tapioca::Runtime::Reflection + + private + + sig { params(tree: ::RBI::Tree, module_name: ::String, mod: ::Module, for_visibility: T::Array[::Symbol]).void } + def compile_directly_owned_methods(tree, module_name, mod, for_visibility = T.unsafe(nil)); end + + sig do + params( + tree: ::RBI::Tree, + symbol_name: ::String, + constant: ::Module, + method: T.nilable(::UnboundMethod), + visibility: ::RBI::Visibility + ).void + end + def compile_method(tree, symbol_name, constant, method, visibility = T.unsafe(nil)); end + + sig { params(constant: ::Module).returns(T.nilable(::UnboundMethod)) } + def initialize_method_for(constant); end + + sig { params(mod: ::Module).returns(T::Hash[::Symbol, T::Array[::Symbol]]) } + def method_names_by_visibility(mod); end + + sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void } + def on_scope(event); end + + sig { params(constant: ::Module, method_name: ::String).returns(T::Boolean) } + def struct_method?(constant, method_name); end + + sig { params(name: ::String).returns(T::Boolean) } + def valid_method_name?(name); end + + sig { params(name: ::String).returns(T::Boolean) } + def valid_parameter_name?(name); end +end + +Tapioca::Gem::Listeners::Methods::SPECIAL_METHOD_NAMES = T.let(T.unsafe(nil), Array) + +class Tapioca::Gem::Listeners::Mixins < ::Tapioca::Gem::Listeners::Base + include ::Tapioca::Runtime::Reflection + + private + + sig do + params( + tree: ::RBI::Tree, + mods: T::Array[::Module], + mixin_type: ::Tapioca::Runtime::Trackers::Mixin::Type + ).void + end + def add_mixins(tree, mods, mixin_type); end + + sig { params(mixin_name: ::String).returns(T::Boolean) } + def filtered_mixin?(mixin_name); end + + sig { params(constant: ::Module).returns(T::Array[::Module]) } + def interesting_ancestors_of(constant); end + + sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void } + def on_scope(event); end +end + +class Tapioca::Gem::Listeners::RemoveEmptyPayloadScopes < ::Tapioca::Gem::Listeners::Base + include ::Tapioca::Runtime::Reflection + + private + + sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void } + def on_scope(event); end +end + +class Tapioca::Gem::Listeners::SorbetEnums < ::Tapioca::Gem::Listeners::Base + private + + sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void } + def on_scope(event); end +end + +class Tapioca::Gem::Listeners::SorbetHelpers < ::Tapioca::Gem::Listeners::Base + include ::Tapioca::Runtime::Reflection + + private + + sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void } + def on_scope(event); end +end + +class Tapioca::Gem::Listeners::SorbetProps < ::Tapioca::Gem::Listeners::Base + private + + sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void } + def on_scope(event); end +end + +class Tapioca::Gem::Listeners::SorbetRequiredAncestors < ::Tapioca::Gem::Listeners::Base + private + + sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void } + def on_scope(event); end +end + +class Tapioca::Gem::Listeners::SorbetSignatures < ::Tapioca::Gem::Listeners::Base + include ::Tapioca::Runtime::Reflection + include ::Tapioca::RBIHelper + + private + + sig { params(signature: T.untyped, parameters: T::Array[[::Symbol, ::String]]).returns(::RBI::Sig) } + def compile_signature(signature, parameters); end + + sig { override.params(event: ::Tapioca::Gem::MethodNodeAdded).void } + def on_method(event); end + + sig { params(signature: T.untyped).returns(T::Boolean) } + def signature_final?(signature); end +end + +Tapioca::Gem::Listeners::SorbetSignatures::TYPE_PARAMETER_MATCHER = T.let(T.unsafe(nil), Regexp) + +class Tapioca::Gem::Listeners::SorbetTypeVariables < ::Tapioca::Gem::Listeners::Base + include ::Tapioca::Runtime::Reflection + + private + + sig { params(tree: ::RBI::Tree, constant: ::Module).void } + def compile_type_variable_declarations(tree, constant); end + + sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void } + def on_scope(event); end +end + +class Tapioca::Gem::Listeners::Subconstants < ::Tapioca::Gem::Listeners::Base + include ::Tapioca::Runtime::Reflection + + private + + sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void } + def on_scope(event); end +end + +class Tapioca::Gem::Listeners::YardDoc < ::Tapioca::Gem::Listeners::Base + sig { params(pipeline: ::Tapioca::Gem::Pipeline).void } + def initialize(pipeline); end + + private + + sig { params(name: ::String, sigs: T::Array[::RBI::Sig]).returns(T::Array[::RBI::Comment]) } + def documentation_comments(name, sigs: T.unsafe(nil)); end + + sig { override.params(event: ::Tapioca::Gem::ConstNodeAdded).void } + def on_const(event); end + + sig { override.params(event: ::Tapioca::Gem::MethodNodeAdded).void } + def on_method(event); end + + sig { override.params(event: ::Tapioca::Gem::ScopeNodeAdded).void } + def on_scope(event); end +end + +Tapioca::Gem::Listeners::YardDoc::IGNORED_COMMENTS = T.let(T.unsafe(nil), Array) +Tapioca::Gem::Listeners::YardDoc::IGNORED_SIG_TAGS = T.let(T.unsafe(nil), Array) + +class Tapioca::Gem::MethodNodeAdded < ::Tapioca::Gem::NodeAdded + sig do + params( + symbol: ::String, + constant: ::Module, + node: ::RBI::Method, + signature: T.untyped, + parameters: T::Array[[::Symbol, ::String]] + ).void + end + def initialize(symbol, constant, node, signature, parameters); end + + sig { returns(::RBI::Method) } + def node; end + + sig { returns(T::Array[[::Symbol, ::String]]) } + def parameters; end + + sig { returns(T.untyped) } + def signature; end +end + +class Tapioca::Gem::NodeAdded < ::Tapioca::Gem::Event + abstract! + + sig { params(symbol: ::String, constant: ::Module).void } + def initialize(symbol, constant); end + + sig { returns(::Module) } + def constant; end + + sig { returns(::String) } + def symbol; end +end + +class Tapioca::Gem::Pipeline + include ::Tapioca::Runtime::Reflection + include ::Tapioca::RBIHelper + + sig { params(gem: ::Tapioca::Gemfile::GemSpec, include_doc: T::Boolean).void } + def initialize(gem, include_doc: T.unsafe(nil)); end + + sig { returns(::RBI::Tree) } + def compile; end + + sig { returns(::Tapioca::Gemfile::GemSpec) } + def gem; end + + sig { params(method: ::UnboundMethod).returns(T::Boolean) } + def method_in_gem?(method); end + + sig { params(constant: ::Module).returns(T.nilable(::String)) } + def name_of(constant); end + + sig { params(symbol: ::String, constant: ::Module, node: ::RBI::Const).void } + def push_const(symbol, constant, node); end + + sig { params(symbol: ::String, constant: ::BasicObject).void } + def push_constant(symbol, constant); end + + sig do + params( + symbol: ::String, + constant: ::Module, + node: ::RBI::Method, + signature: T.untyped, + parameters: T::Array[[::Symbol, ::String]] + ).void + end + def push_method(symbol, constant, node, signature, parameters); end + + sig { params(symbol: ::String, constant: ::Module, node: ::RBI::Scope).void } + def push_scope(symbol, constant, node); end + + sig { params(symbol: ::String).void } + def push_symbol(symbol); end + + sig { params(symbol_name: ::String).returns(T::Boolean) } + def symbol_in_payload?(symbol_name); end + + private + + sig { params(name: ::String).void } + def add_to_alias_namespace(name); end + + sig { params(name: ::String).returns(T::Boolean) } + def alias_namespaced?(name); end + + sig { params(name: ::String, constant: ::Module).void } + def compile_alias(name, constant); end + + sig { params(symbol: ::String, constant: ::BasicObject).void } + def compile_constant(symbol, constant); end + + sig { params(name: ::String, constant: ::Module).void } + def compile_module(name, constant); end + + sig { params(name: ::String, value: ::BasicObject).void } + def compile_object(name, value); end + + sig { params(constant: ::Class).returns(T.nilable(::String)) } + def compile_superclass(constant); end + + sig { params(constant: ::Module, strict: T::Boolean).returns(T::Boolean) } + def defined_in_gem?(constant, strict: T.unsafe(nil)); end + + sig { params(event: ::Tapioca::Gem::Event).void } + def dispatch(event); end + + sig { params(constant: T.all(::Module, ::T::Generic)).returns(::String) } + def generic_name_of(constant); end + + sig { params(constant: ::Module).returns(T::Array[::String]) } + def get_file_candidates(constant); end + + sig { params(name: ::String).void } + def mark_seen(name); end + + sig { params(constant: ::Module, class_name: T.nilable(::String)).returns(T.nilable(::String)) } + def name_of_proxy_target(constant, class_name); end + + sig { returns(::Tapioca::Gem::Event) } + def next_event; end + + sig { params(event: ::Tapioca::Gem::ConstantFound).void } + def on_constant(event); end + + sig { params(event: ::Tapioca::Gem::NodeAdded).void } + def on_node(event); end + + sig { params(event: ::Tapioca::Gem::SymbolFound).void } + def on_symbol(event); end + + sig { params(name: ::String).returns(T::Boolean) } + def seen?(name); end +end + +Tapioca::Gem::Pipeline::IGNORED_SYMBOLS = T.let(T.unsafe(nil), Array) + +class Tapioca::Gem::ScopeNodeAdded < ::Tapioca::Gem::NodeAdded + sig { params(symbol: ::String, constant: ::Module, node: ::RBI::Scope).void } + def initialize(symbol, constant, node); end + + sig { returns(::RBI::Scope) } + def node; end +end + +class Tapioca::Gem::SymbolFound < ::Tapioca::Gem::Event + sig { params(symbol: ::String).void } + def initialize(symbol); end + + sig { returns(::String) } + def symbol; end +end + +class Tapioca::Gemfile + sig { void } + def initialize; end + + sig { returns(::Bundler::Definition) } + def definition; end + + sig { returns(T::Array[::Tapioca::Gemfile::GemSpec]) } + def dependencies; end + + sig { params(gem_name: ::String).returns(T.nilable(::Tapioca::Gemfile::GemSpec)) } + def gem(gem_name); end + + sig { returns(T::Array[::String]) } + def missing_specs; end + + sig { void } + def require_bundle; end + + private + + sig { returns(::String) } + def dir; end + + sig { returns(::File) } + def gemfile; end + + sig { returns(T::Array[::Symbol]) } + def groups; end + + sig { returns([T::Array[::Tapioca::Gemfile::GemSpec], T::Array[::String]]) } + def load_dependencies; end + + def lockfile; end + + sig { returns([T::Enumerable[T.any(::Bundler::StubSpecification, ::Gem::Specification)], T::Array[::String]]) } + def materialize_deps; end + + sig { returns(::Bundler::Runtime) } + def runtime; end +end + +class Tapioca::Gemfile::GemSpec + sig { params(spec: T.any(::Bundler::StubSpecification, ::Gem::Specification)).void } + def initialize(spec); end + + sig { params(path: ::String).returns(T::Boolean) } + def contains_path?(path); end + + sig { returns(T::Boolean) } + def export_rbi_files?; end + + sig { returns(T::Array[::String]) } + def exported_rbi_files; end + + sig { returns(::RBI::MergeTree) } + def exported_rbi_tree; end + + sig { returns(T::Array[::Pathname]) } + def files; end + + sig { returns(::String) } + def full_gem_path; end + + sig { params(gemfile_dir: ::String).returns(T::Boolean) } + def ignore?(gemfile_dir); end + + sig { returns(::String) } + def name; end + + sig { void } + def parse_yard_docs; end + + sig { returns(::String) } + def rbi_file_name; end + + def version; end + + private + + sig { returns(T::Array[::Pathname]) } + def collect_files; end + + sig { returns(T.nilable(T::Boolean)) } + def default_gem?; end + + sig { returns(T::Boolean) } + def gem_ignored?; end + + sig { params(gemfile_dir: ::String).returns(T::Boolean) } + def gem_in_app_dir?(gemfile_dir); end + + sig { returns(T::Boolean) } + def gem_in_bundle_path?; end + + sig { params(path: ::String).returns(T::Boolean) } + def has_parent_gemspec?(path); end + + sig { returns(::Regexp) } + def require_paths_prefix_matcher; end + + sig { params(file: ::String).returns(::Pathname) } + def resolve_to_ruby_lib_dir(file); end + + sig { params(path: T.any(::Pathname, ::String)).returns(::String) } + def to_realpath(path); end + + sig { returns(::String) } + def version_string; end +end + +Tapioca::Gemfile::GemSpec::IGNORED_GEMS = T.let(T.unsafe(nil), Array) +Tapioca::Gemfile::Spec = T.type_alias { T.any(::Bundler::StubSpecification, ::Gem::Specification) } + +class Tapioca::RBIFormatter < ::RBI::Formatter + sig { params(file: ::RBI::File).void } + def write_empty_body_comment!(file); end + + sig { params(file: ::RBI::File, command: ::String, reason: T.nilable(::String)).void } + def write_header!(file, command, reason: T.unsafe(nil)); end +end + +module Tapioca::RBIHelper + sig { params(sig_string: ::String).returns(::String) } + def sanitize_signature_types(sig_string); end +end + +module Tapioca::Runtime; end + +class Tapioca::Runtime::DynamicMixinCompiler + include ::Tapioca::Runtime::Reflection + + sig { params(constant: ::Module).void } + def initialize(constant); end + + def class_attribute_predicates; end + + sig { returns(T::Array[::Symbol]) } + def class_attribute_readers; end + + def class_attribute_writers; end + + sig { params(tree: ::RBI::Tree).void } + def compile_class_attributes(tree); end + + sig { params(tree: ::RBI::Tree).returns([T::Array[::Module], T::Array[::Module]]) } + def compile_mixes_in_class_methods(tree); end + + sig { returns(T::Array[::Module]) } + def dynamic_extends; end + + def dynamic_includes; end + + sig { returns(T::Boolean) } + def empty_attributes?; end + + sig { params(qualified_mixin_name: ::String).returns(T::Boolean) } + def filtered_mixin?(qualified_mixin_name); end + + def instance_attribute_predicates; end + + sig { returns(T::Array[::Symbol]) } + def instance_attribute_readers; end + + def instance_attribute_writers; end + + sig { params(mod: ::Module, dynamic_extends: T::Array[::Module]).returns(T::Boolean) } + def module_included_by_another_dynamic_extend?(mod, dynamic_extends); end +end + +module Tapioca::Runtime::GenericTypeRegistry + class << self + sig { params(instance: ::Object).returns(T::Boolean) } + def generic_type_instance?(instance); end + + sig { params(constant: ::Module).returns(T.nilable(T::Array[::Tapioca::TypeVariableModule])) } + def lookup_type_variables(constant); end + + sig { params(constant: T.untyped, types: T.untyped).returns(::Module) } + def register_type(constant, types); end + + sig { params(constant: T.untyped, type_variable: ::Tapioca::TypeVariableModule).void } + def register_type_variable(constant, type_variable); end + + private + + sig { params(constant: ::Module, name: ::String).returns(::Module) } + def create_generic_type(constant, name); end + + sig { params(constant: ::Class).returns(::Class) } + def create_safe_subclass(constant); end + + sig { params(constant: ::Module).returns(T::Array[::Tapioca::TypeVariableModule]) } + def lookup_or_initialize_type_variables(constant); end + end +end + +class Tapioca::Runtime::Loader + sig do + params( + gemfile: ::Tapioca::Gemfile, + initialize_file: T.nilable(::String), + require_file: T.nilable(::String) + ).void + end + def load_bundle(gemfile, initialize_file, require_file); end + + sig { params(environment_load: T::Boolean, eager_load: T::Boolean).void } + def load_rails_application(environment_load: T.unsafe(nil), eager_load: T.unsafe(nil)); end + + private + + sig { void } + def eager_load_rails_app; end + + sig { void } + def load_rails_engines; end + + sig { returns(T::Array[T.untyped]) } + def rails_engines; end + + sig { params(file: T.nilable(::String)).void } + def require_helper(file); end + + sig { params(path: ::String).void } + def safe_require(path); end + + sig { void } + def silence_deprecations; end +end + +module Tapioca::Runtime::Reflection + extend ::Tapioca::Runtime::Reflection + + sig { params(constant: ::Module).returns(T::Array[::Module]) } + def ancestors_of(constant); end + + sig { params(object: ::BasicObject, other: ::BasicObject).returns(T::Boolean) } + def are_equal?(object, other); end + + sig { params(object: ::BasicObject).returns(::Class) } + def class_of(object); end + + sig { params(symbol: ::String, inherit: T::Boolean, namespace: ::Module).returns(::BasicObject) } + def constantize(symbol, inherit: T.unsafe(nil), namespace: T.unsafe(nil)); end + + sig { params(constant: ::Module).returns(T::Array[::Symbol]) } + def constants_of(constant); end + + sig { type_parameters(:U).params(klass: T.type_parameter(:U)).returns(T::Array[T.type_parameter(:U)]) } + def descendants_of(klass); end + + sig { params(constant: ::Module).returns(T::Array[::Module]) } + def inherited_ancestors_of(constant); end + + sig { params(constant: ::Module, method: ::Symbol).returns(::Method) } + def method_of(constant, method); end + + sig { params(constant: ::Module).returns(T.nilable(::String)) } + def name_of(constant); end + + sig { params(type: ::T::Types::Base).returns(::String) } + def name_of_type(type); end + + sig { params(object: ::BasicObject).returns(::Integer) } + def object_id_of(object); end + + sig { params(constant: ::Module).returns(T::Array[::Symbol]) } + def private_instance_methods_of(constant); end + + sig { params(constant: ::Module).returns(T::Array[::Symbol]) } + def protected_instance_methods_of(constant); end + + sig { params(constant: ::Module).returns(T::Array[::Symbol]) } + def public_instance_methods_of(constant); end + + sig { params(constant: ::Module).returns(T.nilable(::String)) } + def qualified_name_of(constant); end + + sig { params(method: T.any(::Method, ::UnboundMethod)).returns(T.untyped) } + def signature_of(method); end + + sig { params(constant: ::Module).returns(::Class) } + def singleton_class_of(constant); end + + sig { params(constant: ::Class).returns(T.nilable(::Class)) } + def superclass_of(constant); end +end + +Tapioca::Runtime::Reflection::ANCESTORS_METHOD = T.let(T.unsafe(nil), UnboundMethod) +Tapioca::Runtime::Reflection::CLASS_METHOD = T.let(T.unsafe(nil), UnboundMethod) +Tapioca::Runtime::Reflection::CONSTANTS_METHOD = T.let(T.unsafe(nil), UnboundMethod) +Tapioca::Runtime::Reflection::EQUAL_METHOD = T.let(T.unsafe(nil), UnboundMethod) +Tapioca::Runtime::Reflection::METHOD_METHOD = T.let(T.unsafe(nil), UnboundMethod) +Tapioca::Runtime::Reflection::NAME_METHOD = T.let(T.unsafe(nil), UnboundMethod) +Tapioca::Runtime::Reflection::OBJECT_ID_METHOD = T.let(T.unsafe(nil), UnboundMethod) +Tapioca::Runtime::Reflection::PRIVATE_INSTANCE_METHODS_METHOD = T.let(T.unsafe(nil), UnboundMethod) +Tapioca::Runtime::Reflection::PROTECTED_INSTANCE_METHODS_METHOD = T.let(T.unsafe(nil), UnboundMethod) +Tapioca::Runtime::Reflection::PUBLIC_INSTANCE_METHODS_METHOD = T.let(T.unsafe(nil), UnboundMethod) +Tapioca::Runtime::Reflection::SINGLETON_CLASS_METHOD = T.let(T.unsafe(nil), UnboundMethod) +Tapioca::Runtime::Reflection::SUPERCLASS_METHOD = T.let(T.unsafe(nil), UnboundMethod) +module Tapioca::Runtime::Trackers; end + +module Tapioca::Runtime::Trackers::Autoload + class << self + sig { void } + def eager_load_all!; end + + sig { params(constant_name: ::String).void } + def register(constant_name); end + + sig do + type_parameters(:Result) + .params( + block: T.proc.returns(T.type_parameter(:Result)) + ).returns(T.type_parameter(:Result)) + end + def with_disabled_exits(&block); end + end +end + +Tapioca::Runtime::Trackers::Autoload::NOOP_METHOD = T.let(T.unsafe(nil), Proc) + +module Tapioca::Runtime::Trackers::ConstantDefinition + extend ::Tapioca::Runtime::Reflection + + class << self + def files_for(klass); end + end +end + +module Tapioca::Runtime::Trackers::Mixin + class << self + sig do + params( + constant: ::Module + ).returns(T::Hash[::Tapioca::Runtime::Trackers::Mixin::Type, T::Hash[::Module, T::Array[::String]]]) + end + def mixin_locations_for(constant); end + + sig do + params( + constant: ::Module, + mod: ::Module, + mixin_type: ::Tapioca::Runtime::Trackers::Mixin::Type, + locations: T.nilable(T::Array[::Thread::Backtrace::Location]) + ).void + end + def register(constant, mod, mixin_type, locations); end + end +end + +class Tapioca::Runtime::Trackers::Mixin::Type < ::T::Enum + enums do + Prepend = new + Include = new + Extend = new + end +end + +module Tapioca::Runtime::Trackers::RequiredAncestor + class << self + sig { params(requiring: ::T::Helpers, block: T.proc.returns(::Module)).void } + def register(requiring, block); end + + sig { params(mod: ::Module).returns(T::Array[T.proc.returns(::Module)]) } + def required_ancestors_blocks_by(mod); end + + sig { params(mod: ::Module).returns(T::Array[T.nilable(::Module)]) } + def required_ancestors_by(mod); end + end +end + +Tapioca::SORBET_CONFIG_FILE = T.let(T.unsafe(nil), String) +Tapioca::SORBET_DIR = T.let(T.unsafe(nil), String) + +module Tapioca::ShimsHelper + requires_ancestor { Thor::Shell } + + sig { params(index: ::RBI::Index, shim_rbi_dir: ::String).returns(T::Hash[::String, T::Array[::RBI::Node]]) } + def duplicated_nodes_from_index(index, shim_rbi_dir); end + + sig { params(index: ::RBI::Index, kind: ::String, dir: ::String).void } + def index_rbis(index, kind, dir); end + + private + + sig { params(nodes: T::Array[::RBI::Node]).returns(T::Array[T.any(::RBI::Attr, ::RBI::Method)]) } + def extract_methods_and_attrs(nodes); end + + sig do + params( + nodes: T::Array[T.any(::RBI::Attr, ::RBI::Method)] + ).returns(T::Array[T.any(::RBI::Attr, ::RBI::Method)]) + end + def extract_nodes_with_sigs(nodes); end + + sig { params(nodes: T::Array[::RBI::Node], shim_rbi_dir: ::String).returns(T::Array[::RBI::Node]) } + def extract_shims(nodes, shim_rbi_dir); end + + sig { params(nodes: T::Array[::RBI::Node], shim_rbi_dir: ::String).returns(T::Boolean) } + def shims_have_duplicates?(nodes, shim_rbi_dir); end +end + +module Tapioca::SorbetHelper + sig { params(sorbet_args: ::String).returns(::Tapioca::SorbetHelper::CmdResult) } + def sorbet(*sorbet_args); end + + sig { returns(::String) } + def sorbet_path; end + + sig { params(feature: ::Symbol, version: T.nilable(::Gem::Version)).returns(T::Boolean) } + def sorbet_supports?(feature, version: T.unsafe(nil)); end +end + +class Tapioca::SorbetHelper::CmdResult < ::T::Struct + const :err, ::String + const :out, ::String + const :status, T::Boolean + + class << self + def inherited(s); end + end +end + +Tapioca::SorbetHelper::FEATURE_REQUIREMENTS = T.let(T.unsafe(nil), Hash) +Tapioca::SorbetHelper::SORBET_BIN = T.let(T.unsafe(nil), Pathname) +Tapioca::SorbetHelper::SORBET_EXE_PATH_ENV_VAR = T.let(T.unsafe(nil), String) +Tapioca::SorbetHelper::SORBET_GEM_SPEC = T.let(T.unsafe(nil), Gem::Specification) +module Tapioca::Static; end + +class Tapioca::Static::RequiresCompiler + sig { params(sorbet_path: ::String).void } + def initialize(sorbet_path); end + + sig { returns(::String) } + def compile; end + + private + + sig { params(config: ::Spoom::Sorbet::Config).returns(T::Array[::String]) } + def collect_files(config); end + + sig { params(file_path: ::String).returns(T::Enumerable[::String]) } + def collect_requires(file_path); end + + sig { params(config: ::Spoom::Sorbet::Config, file_path: ::Pathname).returns(T::Boolean) } + def file_ignored_by_sorbet?(config, file_path); end + + sig { params(path: ::Pathname).returns(T::Array[::String]) } + def path_parts(path); end +end + +module Tapioca::Static::SymbolLoader + extend ::Tapioca::SorbetHelper + extend ::Tapioca::Runtime::Reflection + + class << self + sig { returns(T::Set[::String]) } + def engine_symbols; end + + sig { params(gem: ::Tapioca::Gemfile::GemSpec).returns(T::Set[::String]) } + def gem_symbols(gem); end + + sig { returns(T::Set[::String]) } + def payload_symbols; end + + private + + sig { returns(T::Set[::String]) } + def load_engine_symbols; end + + sig { params(input: ::String, table_type: ::String).returns(::String) } + def symbol_table_json_from(input, table_type: T.unsafe(nil)); end + + sig { params(paths: T::Array[::Pathname]).returns(T::Set[::String]) } + def symbols_from_paths(paths); end + end +end + +class Tapioca::Static::SymbolTableParser + sig { void } + def initialize; end + + sig { params(name: ::String).returns(::String) } + def fully_qualified_name(name); end + + sig { params(object: T::Hash[::String, T.untyped]).void } + def parse_object(object); end + + sig { returns(T::Set[::String]) } + def symbols; end + + class << self + sig { params(json_string: ::String).returns(T::Set[::String]) } + def parse_json(json_string); end + end +end + +Tapioca::TAPIOCA_CONFIG_FILE = T.let(T.unsafe(nil), String) +Tapioca::TAPIOCA_DIR = T.let(T.unsafe(nil), String) + +class Tapioca::TypeVariable < ::T::Types::TypeVariable + def initialize(name, variance); end + + def name; end +end + +class Tapioca::TypeVariableModule < ::Module + sig do + params( + context: ::Module, + type: ::Tapioca::TypeVariableModule::Type, + variance: ::Symbol, + fixed: T.untyped, + lower: T.untyped, + upper: T.untyped + ).void + end + def initialize(context, type, variance, fixed, lower, upper); end + + sig { returns(::Tapioca::TypeVariable) } + def coerce_to_type_variable; end + + sig { returns(T.nilable(::String)) } + def name; end + + sig { returns(::String) } + def serialize; end + + private + + sig do + type_parameters(:Result) + .params( + block: T.proc.returns(T.type_parameter(:Result)) + ).returns(T.type_parameter(:Result)) + end + def with_bound_name_pre_3_0(&block); end +end + +class Tapioca::TypeVariableModule::Type < ::T::Enum + enums do + Member = new + Template = new + end +end + +Tapioca::VERSION = T.let(T.unsafe(nil), String)
true
Other
Homebrew
brew
273c4270691915143abfd1da3b25ba66f2f46a58.json
Update RBI files for tapioca.
Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi
@@ -12,12 +12,6 @@ class AbstractDownloadStrategy extend ::T::Private::Methods::SingletonMethodHooks end -class ActiveRecordColumnTypeHelper - extend ::T::Sig - extend ::T::Private::Methods::MethodHooks - extend ::T::Private::Methods::SingletonMethodHooks -end - class ActiveSupport::Deprecation def self.deprecation_warning(*args, &block); end @@ -1315,12 +1309,6 @@ module DiskUsageExtension extend ::T::Private::Methods::SingletonMethodHooks end -class DynamicMixinCompiler - extend ::T::Sig - extend ::T::Private::Methods::MethodHooks - extend ::T::Private::Methods::SingletonMethodHooks -end - class ELFTools::Structs::ELF32_PhdrBe end @@ -3118,8 +3106,6 @@ module Kernel extend ::T::Private::Methods::SingletonMethodHooks def self.at_exit(); end - def self.autoload(arg, arg1); end - def self.fork(); end def self.gem(dep, *reqs); end @@ -3401,8 +3387,6 @@ class MockExpectationError end class Module - def autoload_without_tapioca(arg, arg1); end - def context(*a, &b); end def describe(*a, &b); end @@ -6769,44 +6753,6 @@ class Tap extend ::T::Private::Methods::SingletonMethodHooks end -class Tapioca::Compilers::Dsl::Base - extend ::T::Sig - extend ::T::Helpers - extend ::T::Private::Abstract::Hooks - extend ::T::InterfaceWrapper::Helpers - extend ::T::Private::Methods::MethodHooks - extend ::T::Private::Methods::SingletonMethodHooks -end - -module Tapioca::Compilers::Dsl::ParamHelper - extend ::T::Sig - extend ::T::Private::Methods::MethodHooks - extend ::T::Private::Methods::SingletonMethodHooks -end - -class Tapioca::Compilers::DslCompiler - extend ::T::Sig - extend ::T::Private::Methods::MethodHooks - extend ::T::Private::Methods::SingletonMethodHooks -end - -module Tapioca::Reflection - extend ::T::Sig - extend ::T::Private::Methods::MethodHooks - extend ::T::Private::Methods::SingletonMethodHooks -end - -module Tapioca::Trackers::Autoload - extend ::T::Sig - extend ::T::Private::Methods::SingletonMethodHooks -end - -module Tapioca::Trackers::Mixin - extend ::T::Sig - extend ::T::Private::Methods::MethodHooks - extend ::T::Private::Methods::SingletonMethodHooks -end - module Tapioca extend ::T::Sig extend ::T::Private::Methods::MethodHooks
true
Other
Homebrew
brew
cbac7a30637fc35e09dcd4530dfa105c52db0119.json
brew: keep DBus session address in env Otherwise `brew deps --graph` will fail to launch Firefox on Linux. Fixes https://github.com/Homebrew/brew/issues/12881.
Library/Homebrew/utils.rb
@@ -372,7 +372,9 @@ def exec_browser(*args) ENV["DISPLAY"] = Homebrew::EnvConfig.display - safe_system(browser, *args) + with_env(DBUS_SESSION_BUS_ADDRESS: ENV["HOMEBREW_DBUS_SESSION_BUS_ADDRESS"]) do + safe_system(browser, *args) + end end # GZips the given paths, and returns the gzipped paths.
false
Other
Homebrew
brew
481934b4ee8935d9b658f10be7710475eb13826e.json
Update RBI files for simplecov_json_formatter.
Library/Homebrew/sorbet/rbi/gems/simplecov_json_formatter@0.1.4.rbi
@@ -1,9 +1,9 @@ +# typed: true + # DO NOT EDIT MANUALLY # This is an autogenerated file for types exported from the `simplecov_json_formatter` gem. # Please instead update this file by running `bin/tapioca gem simplecov_json_formatter`. -# typed: true - module SimpleCov extend ::SimpleCov::Configuration @@ -93,6 +93,8 @@ class SimpleCovJSONFormatter::ResultHashFormatter private + def format_files; end + def format_groups; end def format_source_file(source_file); end def formatted_result; end end
false
Other
Homebrew
brew
68ab628778fff2f2c37ca69f05e781a15095df41.json
Update RBI files for rubocop-ast.
Library/Homebrew/sorbet/rbi/gems/rubocop-ast@1.15.2.rbi
@@ -1400,6 +1400,7 @@ RuboCop::AST::NodePattern::Sets::SET_BRANCH_REF_TAG = T.let(T.unsafe(nil), Set) RuboCop::AST::NodePattern::Sets::SET_CALLER_CALLER_LOCATIONS = T.let(T.unsafe(nil), Set) RuboCop::AST::NodePattern::Sets::SET_CALL_RUN = T.let(T.unsafe(nil), Set) RuboCop::AST::NodePattern::Sets::SET_CAPTURE2_CAPTURE2E_CAPTURE3_ETC = T.let(T.unsafe(nil), Set) +RuboCop::AST::NodePattern::Sets::SET_CHANGE_COLUMN_EXECUTE = T.let(T.unsafe(nil), Set) RuboCop::AST::NodePattern::Sets::SET_CIPHER_DIGEST = T.let(T.unsafe(nil), Set) RuboCop::AST::NodePattern::Sets::SET_CLASS_EVAL_INSTANCE_EVAL = T.let(T.unsafe(nil), Set) RuboCop::AST::NodePattern::Sets::SET_CLASS_EVAL_MODULE_EVAL = T.let(T.unsafe(nil), Set) @@ -1412,7 +1413,6 @@ RuboCop::AST::NodePattern::Sets::SET_CREATED_AT_UPDATED_AT = T.let(T.unsafe(nil) RuboCop::AST::NodePattern::Sets::SET_CREATED_AT_UPDATED_AT_2 = T.let(T.unsafe(nil), Set) RuboCop::AST::NodePattern::Sets::SET_DEFINE_METHOD = T.let(T.unsafe(nil), Set) RuboCop::AST::NodePattern::Sets::SET_DEFINE_METHOD_DEFINE_SINGLETON_METHOD = T.let(T.unsafe(nil), Set) -RuboCop::AST::NodePattern::Sets::SET_DESCRIBE_FEATURE = T.let(T.unsafe(nil), Set) RuboCop::AST::NodePattern::Sets::SET_DOUBLE_SPY = T.let(T.unsafe(nil), Set) RuboCop::AST::NodePattern::Sets::SET_DOWNCASE_UPCASE = T.let(T.unsafe(nil), Set) RuboCop::AST::NodePattern::Sets::SET_EACH_EXAMPLE = T.let(T.unsafe(nil), Set) @@ -1423,7 +1423,6 @@ RuboCop::AST::NodePattern::Sets::SET_ENUMERATOR_RATIONAL_COMPLEX_THREAD = T.let( RuboCop::AST::NodePattern::Sets::SET_EQL_EQ_BE = T.let(T.unsafe(nil), Set) RuboCop::AST::NodePattern::Sets::SET_ESCAPE_ENCODE_UNESCAPE_DECODE = T.let(T.unsafe(nil), Set) RuboCop::AST::NodePattern::Sets::SET_EXACTLY_AT_LEAST_AT_MOST = T.let(T.unsafe(nil), Set) -RuboCop::AST::NodePattern::Sets::SET_EXECUTE_REMOVE_BELONGS_TO = T.let(T.unsafe(nil), Set) RuboCop::AST::NodePattern::Sets::SET_EXPECT_ALLOW = T.let(T.unsafe(nil), Set) RuboCop::AST::NodePattern::Sets::SET_FACTORYGIRL_FACTORYBOT = T.let(T.unsafe(nil), Set) RuboCop::AST::NodePattern::Sets::SET_FIRST_LAST__ETC = T.let(T.unsafe(nil), Set) @@ -1475,6 +1474,7 @@ RuboCop::AST::NodePattern::Sets::SET_REJECT_REJECT = T.let(T.unsafe(nil), Set) RuboCop::AST::NodePattern::Sets::SET_RENDER_REDIRECT_TO = T.let(T.unsafe(nil), Set) RuboCop::AST::NodePattern::Sets::SET_REQUIRE_REQUIRE_RELATIVE = T.let(T.unsafe(nil), Set) RuboCop::AST::NodePattern::Sets::SET_RETURNING_UNIQUE_BY = T.let(T.unsafe(nil), Set) +RuboCop::AST::NodePattern::Sets::SET_ROOT_PUBLIC_PATH = T.let(T.unsafe(nil), Set) RuboCop::AST::NodePattern::Sets::SET_SELECT_FILTER_FIND_ALL_REJECT = T.let(T.unsafe(nil), Set) RuboCop::AST::NodePattern::Sets::SET_SELECT_SELECT = T.let(T.unsafe(nil), Set) RuboCop::AST::NodePattern::Sets::SET_SEND_PUBLIC_SEND___SEND__ = T.let(T.unsafe(nil), Set) @@ -1497,7 +1497,6 @@ RuboCop::AST::NodePattern::Sets::SET_TRANSLATE_LOCALIZE = T.let(T.unsafe(nil), S RuboCop::AST::NodePattern::Sets::SET_TRUE_FALSE = T.let(T.unsafe(nil), Set) RuboCop::AST::NodePattern::Sets::SET_TRY_TRY = T.let(T.unsafe(nil), Set) RuboCop::AST::NodePattern::Sets::SET_TYPE_TEMPLATE_TYPE_MEMBER = T.let(T.unsafe(nil), Set) -RuboCop::AST::NodePattern::Sets::SET_UNIQ_DISTINCT = T.let(T.unsafe(nil), Set) RuboCop::AST::NodePattern::Sets::SET_ZERO_POSITIVE_NEGATIVE = T.let(T.unsafe(nil), Set) RuboCop::AST::NodePattern::Sets::SET__ = T.let(T.unsafe(nil), Set) RuboCop::AST::NodePattern::Sets::SET__AT_SLICE = T.let(T.unsafe(nil), Set)
true
Other
Homebrew
brew
68ab628778fff2f2c37ca69f05e781a15095df41.json
Update RBI files for rubocop-ast.
Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi
@@ -5037,10 +5037,8 @@ end module RuboCop::AST::NodePattern::Sets SET_BUILD_RECOMMENDED_TEST_OPTIONAL = ::T.let(nil, ::T.untyped) - SET_CHANGE_COLUMN_EXECUTE = ::T.let(nil, ::T.untyped) SET_DEPENDS_ON_USES_FROM_MACOS = ::T.let(nil, ::T.untyped) SET_INCLUDE_WITH_WITHOUT = ::T.let(nil, ::T.untyped) - SET_ROOT_PUBLIC_PATH = ::T.let(nil, ::T.untyped) SET_SYSTEM_SHELL_OUTPUT_PIPE_OUTPUT = ::T.let(nil, ::T.untyped) SET_WITH_WITHOUT = ::T.let(nil, ::T.untyped) end
true
Other
Homebrew
brew
2448757557625c77d20476c7c6faf75df4974dfd.json
Update RBI files for i18n.
Library/Homebrew/sorbet/rbi/gems/i18n@1.10.0.rbi
@@ -79,6 +79,7 @@ module I18n::Backend::Base def pluralization_key(entry, count); end def pluralize(locale, entry, count); end def resolve(locale, object, subject, options = T.unsafe(nil)); end + def resolve_entry(locale, object, subject, options = T.unsafe(nil)); end def subtrees?; end def translate_localization_format(locale, object, format, options); end end @@ -148,7 +149,7 @@ end module I18n::Backend::Fallbacks def exists?(locale, key, options = T.unsafe(nil)); end def extract_non_symbol_default!(options); end - def resolve(locale, object, subject, options = T.unsafe(nil)); end + def resolve_entry(locale, object, subject, options = T.unsafe(nil)); end def translate(locale, key, options = T.unsafe(nil)); end private @@ -266,6 +267,38 @@ class I18n::Backend::KeyValue::SubtreeProxy def nil?; end end +class I18n::Backend::LazyLoadable < ::I18n::Backend::Simple + def initialize(lazy_load: T.unsafe(nil)); end + + def available_locales; end + def eager_load!; end + def initialized?; end + def lookup(locale, key, scope = T.unsafe(nil), options = T.unsafe(nil)); end + def reload!; end + + protected + + def init_translations; end + def initialized_locales; end + + private + + def assert_file_named_correctly!(file, translations); end + def filenames_for_current_locale; end + def lazy_load?; end + def load_translations_and_collect_file_errors(files); end +end + +class I18n::Backend::LazyLoadable::FilenameIncorrect < ::StandardError + def initialize(file, expected_locale, unexpected_locales); end +end + +class I18n::Backend::LocaleExtractor + class << self + def locale_from_path(path); end + end +end + module I18n::Backend::Memoize def available_locales; end def eager_load!; end @@ -462,6 +495,12 @@ end I18n::Gettext::PLURAL_SEPARATOR = T.let(T.unsafe(nil), String) I18n::INTERPOLATION_PATTERN = T.let(T.unsafe(nil), Regexp) +class I18n::InvalidFilenames < ::I18n::ArgumentError + def initialize(file_errors); end +end + +I18n::InvalidFilenames::NUMBER_OF_ERRORS_SHOWN = T.let(T.unsafe(nil), Integer) + class I18n::InvalidLocale < ::I18n::ArgumentError def initialize(locale); end @@ -654,6 +693,14 @@ class I18n::UnknownFileType < ::I18n::ArgumentError def type; end end +class I18n::UnsupportedMethod < ::I18n::ArgumentError + def initialize(method, backend_klass, msg); end + + def backend_klass; end + def method; end + def msg; end +end + module I18n::Utils class << self def deep_merge(hash, other_hash, &block); end
true
Other
Homebrew
brew
2448757557625c77d20476c7c6faf75df4974dfd.json
Update RBI files for i18n.
Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi
@@ -3498,13 +3498,7 @@ end Net::HTTPFatalErrorCode = Net::HTTPClientError -class Net::HTTPInformation -end - -Net::HTTPInformationCode::EXCEPTION_TYPE = Net::HTTPError - -class Net::HTTPInformation -end +Net::HTTPInformationCode = Net::HTTPInformation class Net::HTTPLoopDetected HAS_BODY = ::T.let(nil, ::T.untyped) @@ -3564,13 +3558,7 @@ Net::HTTPServerErrorCode = Net::HTTPServerError Net::HTTPSession = Net::HTTP -class Net::HTTPSuccess -end - -Net::HTTPSuccessCode::EXCEPTION_TYPE = Net::HTTPError - -class Net::HTTPSuccess -end +Net::HTTPSuccessCode = Net::HTTPSuccess class Net::HTTPURITooLong HAS_BODY = ::T.let(nil, ::T.untyped)
true
Other
Homebrew
brew
5da9aa752fc982147ba3ba74fb11f7cf79c102c3.json
Update RBI files for regexp_parser.
Library/Homebrew/sorbet/rbi/gems/regexp_parser@2.2.1.rbi
@@ -760,6 +760,7 @@ class Regexp::Scanner class << self def long_prop_map; end + def parse_prop_map(name); end def scan(input_object, options: T.unsafe(nil), &block); end def short_prop_map; end end @@ -879,9 +880,12 @@ module Regexp::Syntax::Token::Backreference; end Regexp::Syntax::Token::Backreference::All = T.let(T.unsafe(nil), Array) Regexp::Syntax::Token::Backreference::Name = T.let(T.unsafe(nil), Array) Regexp::Syntax::Token::Backreference::Number = T.let(T.unsafe(nil), Array) +Regexp::Syntax::Token::Backreference::NumberRef = T.let(T.unsafe(nil), Array) Regexp::Syntax::Token::Backreference::Plain = T.let(T.unsafe(nil), Array) Regexp::Syntax::Token::Backreference::RecursionLevel = T.let(T.unsafe(nil), Array) Regexp::Syntax::Token::Backreference::Type = T.let(T.unsafe(nil), Symbol) +Regexp::Syntax::Token::Backreference::V1_8_6 = T.let(T.unsafe(nil), Array) +Regexp::Syntax::Token::Backreference::V1_9_1 = T.let(T.unsafe(nil), Array) module Regexp::Syntax::Token::CharacterSet; end Regexp::Syntax::Token::CharacterSet::All = T.let(T.unsafe(nil), Array) Regexp::Syntax::Token::CharacterSet::Basic = T.let(T.unsafe(nil), Array)
false
Other
Homebrew
brew
b9024d27881943a028cf2ca13c80f5caeea3ff16.json
Update RBI files for activesupport.
Library/Homebrew/sorbet/rbi/gems/activesupport@6.1.4.6.rbi
@@ -1242,7 +1242,7 @@ class ActiveSupport::ExecutionWrapper def active?; end def inherited(other); end def register_hook(hook, outer: T.unsafe(nil)); end - def run!; end + def run!(reset: T.unsafe(nil)); end def to_complete(*args, &block); end def to_run(*args, &block); end def wrap; end @@ -2141,7 +2141,7 @@ class ActiveSupport::Reloader < ::ActiveSupport::ExecutionWrapper def prepare!; end def reload!; end def reloaded!; end - def run!; end + def run!(reset: T.unsafe(nil)); end def to_prepare(*args, &block); end def wrap; end end
false
Other
Homebrew
brew
02cacae0c7189d0af298f0404604f45160eba4c4.json
Update RBI files for unparser.
Library/Homebrew/sorbet/rbi/gems/unparser@0.6.4.rbi
@@ -797,6 +797,12 @@ class Unparser::Emitter::Defined < ::Unparser::Emitter def subject; end end +class Unparser::Emitter::FindPattern < ::Unparser::Emitter + private + + def dispatch; end +end + class Unparser::Emitter::FlipFlop < ::Unparser::Emitter def symbol_name; end @@ -1059,7 +1065,19 @@ class Unparser::Emitter::MatchPattern < ::Unparser::Emitter def target; end end +Unparser::Emitter::MatchPattern::SYMBOL = T.let(T.unsafe(nil), String) + +class Unparser::Emitter::MatchPatternP < ::Unparser::Emitter + private + + def dispatch; end + def pattern; end + def remaining_children; end + def target; end +end + class Unparser::Emitter::MatchRest < ::Unparser::Emitter + def dispatch; end def emit_array_pattern; end def emit_hash_pattern; end
false
Other
Homebrew
brew
440adcbec0f8a725590a830c3efa7dfa8a745626.json
linkage: expand check to dylibs and bundles
Library/Homebrew/linkage_checker.rb
@@ -32,7 +32,7 @@ def initialize(keg, formula = nil, cache_db:, rebuild_cache: false) @unnecessary_deps = [] @unwanted_system_dylibs = [] @version_conflict_deps = [] - @executables_missing_rpaths = [] + @files_missing_rpaths = [] check_dylibs(rebuild_cache: rebuild_cache) end @@ -47,7 +47,7 @@ def display_normal_output display_items "Undeclared dependencies with linkage", @undeclared_deps display_items "Dependencies with no linkage", @unnecessary_deps display_items "Unwanted system libraries", @unwanted_system_dylibs - display_items "Executables with missing rpath", @executables_missing_rpaths + display_items "Files with missing rpath", @files_missing_rpaths end def display_reverse_output @@ -71,12 +71,12 @@ def display_test_output(puts_output: true, strict: false) display_items "Unwanted system libraries", @unwanted_system_dylibs, puts_output: puts_output display_items "Conflicting libraries", @version_conflict_deps, puts_output: puts_output display_items "Undeclared dependencies with linkage", @undeclared_deps, puts_output: puts_output if strict - display_items "Executables with missing rpath", @executables_missing_rpaths, puts_output: puts_output + display_items "Files with missing rpath", @files_missing_rpaths, puts_output: puts_output end sig { params(strict: T::Boolean).returns(T::Boolean) } def broken_library_linkage?(strict: false) - issues = [@broken_deps, @unwanted_system_dylibs, @version_conflict_deps, @executables_missing_rpaths] + issues = [@broken_deps, @unwanted_system_dylibs, @version_conflict_deps, @files_missing_rpaths] issues << @undeclared_deps if strict [issues, unexpected_broken_dylibs, unexpected_present_dylibs].flatten.any?(&:present?) end @@ -159,12 +159,12 @@ def check_dylibs(rebuild_cache:) dylibs.each do |dylib| @reverse_links[dylib] << file - # Binary executables that link @rpath-prefixed dylibs must include at + # Files that link @rpath-prefixed dylibs must include at # least one rpath in order to resolve it. if !file_has_any_rpath_dylibs && (dylib.start_with? "@rpath/") file_has_any_rpath_dylibs = true pathname = Pathname(file) - @executables_missing_rpaths << file if pathname.binary_executable? && pathname.rpaths.empty? + @files_missing_rpaths << file if pathname.rpaths.empty? end next if checked_dylibs.include? dylib
false
Other
Homebrew
brew
dee3638653067fd569535af798e3a49293cc2f3d.json
os/mac/{keg,mach}: fix cache invalidation We were rewriting dylib IDs and install names using `MachO::Tools`, which doesn't update the state of the file in memory. This leads to those changes being undone when we call `delete_rpath`. We fix this by making sure the state of the file in memory always matches the state of file on disk. Closes #12832.
Library/Homebrew/os/mac/keg.rb
@@ -7,7 +7,7 @@ def change_dylib_id(id, file) @require_relocation = true odebug "Changing dylib ID of #{file}\n from #{file.dylib_id}\n to #{id}" - MachO::Tools.change_dylib_id(file, id, strict: false) + file.change_dylib_id(id, strict: false) apply_ad_hoc_signature(file) rescue MachO::MachOError onoe <<~EOS @@ -23,7 +23,7 @@ def change_install_name(old, new, file) @require_relocation = true odebug "Changing install name in #{file}\n from #{old}\n to #{new}" - MachO::Tools.change_install_name(file, old, new, strict: false) + file.change_install_name(old, new, strict: false) apply_ad_hoc_signature(file) rescue MachO::MachOError onoe <<~EOS @@ -39,7 +39,7 @@ def change_rpath(old, new, file) @require_relocation = true odebug "Changing rpath in #{file}\n from #{old}\n to #{new}" - MachO::Tools.change_rpath(file, old, new, strict: false) + file.change_rpath(old, new, strict: false) apply_ad_hoc_signature(file) rescue MachO::MachOError onoe <<~EOS
true
Other
Homebrew
brew
dee3638653067fd569535af798e3a49293cc2f3d.json
os/mac/{keg,mach}: fix cache invalidation We were rewriting dylib IDs and install names using `MachO::Tools`, which doesn't update the state of the file in memory. This leads to those changes being undone when we call `delete_rpath`. We fix this by making sure the state of the file in memory always matches the state of file on disk. Closes #12832.
Library/Homebrew/os/mac/mach.rb
@@ -64,6 +64,21 @@ def delete_rpath(rpath, **options) macho.write! end + def change_rpath(old, new, **options) + macho.change_rpath(old, new, options) + macho.write! + end + + def change_dylib_id(id, **options) + macho.change_dylib_id(id, options) + macho.write! + end + + def change_install_name(old, new, **options) + macho.change_install_name(old, new, options) + macho.write! + end + def dynamically_linked_libraries(except: :none) lcs = macho.dylib_load_commands.reject { |lc| lc.type == except }
true
Other
Homebrew
brew
9084cd21b167ee19f96cfb31911fb74f210584c9.json
Installation.md: add section for non-interactive installation
docs/Installation.md
@@ -63,6 +63,10 @@ chmod -R go-w "$(brew --prefix)/share/zsh" Create a Homebrew installation wherever you extract the tarball. Whichever `brew` command is called is where the packages will be installed. You can use this as you see fit, e.g. to have a system set of libs in the default prefix and tweaked formulae for development in `~/homebrew`. +### Unattended installation + +If you want a non-interactive run of the Homebrew installer that doesn't prompt for passwords (e.g. in automation scripts), prepend [`NONINTERACTIVE=1`](https://github.com/Homebrew/install/#install-homebrew-on-macos-or-linux) to the installation command. + ## Uninstallation Uninstallation is documented in the [FAQ](FAQ.md).
false
Other
Homebrew
brew
edf832749784a836e0a7911a3ea5eeef22f525a5.json
keg_relocate.rb: add new methods
Library/Homebrew/keg_relocate.rb
@@ -8,6 +8,7 @@ class Keg LIBRARY_PLACEHOLDER = "@@HOMEBREW_LIBRARY@@" PERL_PLACEHOLDER = "@@HOMEBREW_PERL@@" JAVA_PLACEHOLDER = "@@HOMEBREW_JAVA@@" + BINARY_NULL_CHARACTER = "\x00" class Relocation extend T::Sig @@ -163,6 +164,49 @@ def replace_text_in_files(relocation, files: nil) changed_files end + def relocate_build_prefix(keg, old_prefix, new_prefix) + # Find binaries which match prefix strings. + string_matches = Set.new + keg.each_unique_file_matching(old_prefix) do |file| + string_matches << file + end + + binary_string_matches = Set.new + keg.each_unique_binary_file do |file| + binary_string_matches << file if string_matches.include?(file) + end + + # Only consider string matches which are binary files with null bytes, and remove any + # matches which are sharballs found by text_files. + binary_string_matches -= text_files + + # Split binary by null characters into array and substitute new cellar for old cellar. + # Null padding is added if the new string is too short. + binary_string_matches.each do |binary_file| + binary_file.ensure_writable do + binary = File.binread binary_file + puts "Replacing build prefix in: #{binary_file}" + binary_strings = binary.split(BINARY_NULL_CHARACTER) + match_indices = binary_strings.each_index.select { |i| binary_strings[i].include?(old_prefix) } + + # Only perform substitution on strings which match prefix regex. + match_indices.each do |i| + s = binary_strings[i] + binary_strings[i] = s.gsub(old_prefix, new_prefix).ljust(s.size, BINARY_NULL_CHARACTER) + end + + # Add back null padding at the end of the binary if needed. + patched_binary = binary_strings.join(BINARY_NULL_CHARACTER).ljust(binary.size, BINARY_NULL_CHARACTER) + if patched_binary.size != binary.size + raise "Patching failed! Original and patched binary sizes do not match." + end + + binary_file.atomic_write patched_binary + end + codesign_patched_binary(binary_file) + end + end + def detect_cxx_stdlibs(_options = {}) [] end @@ -173,6 +217,14 @@ def recursive_fgrep_args end alias generic_recursive_fgrep_args recursive_fgrep_args + def egrep_args + grep_bin = "grep" + grep_args = recursive_fgrep_args + grep_args += "Pa" + [grep_bin, grep_args] + end + alias generic_egrep_args egrep_args + def each_unique_file_matching(string) Utils.popen_read("fgrep", recursive_fgrep_args, string, to_s) do |io| hardlinks = Set.new @@ -186,6 +238,26 @@ def each_unique_file_matching(string) end end + def each_unique_binary_file + grep_bin, grep_args = egrep_args + + # An extra \ is needed for the null character when calling grep + Utils.popen_read(grep_bin, grep_args, "\\x00", to_s) do |io| + hardlinks = Set.new + + until io.eof? + file = Pathname.new(io.readline.chomp) + next if file.symlink? + + yield file if hardlinks.add? file.stat.ino + end + end + end + + def codesign_patched_binary(_binary_file) + [] + end + def lib path/"lib" end
false
Other
Homebrew
brew
6c9c3c607c0585e5361e272e976f3895f87263a4.json
formula_auditor: disallow external tap dependencies in core Occasionally, we get PRs that attempt to add a dependency on a formula in an external tap in homebrew/core (e.g. Homebrew/homebrew-core#94791). We don't actually have an audit that disallows that. We should have one.
Library/Homebrew/formula_auditor.rb
@@ -289,6 +289,13 @@ def audit_deps next unless @core_tap + unless dep_f.tap.core_tap? + problem <<~EOS + Dependency '#{dep.name}' is not in homebrew/core. Formulae in homebrew/core + should not have dependencies in external taps. + EOS + end + # we want to allow uses_from_macos for aliases but not bare dependencies if self.class.aliases.include?(dep.name) && spec.uses_from_macos_names.exclude?(dep.name) problem "Dependency '#{dep.name}' is an alias; use the canonical name '#{dep.to_formula.full_name}'."
false
Other
Homebrew
brew
8f901aaf98c7413764ffc47d16bc3cf8f7dc5674.json
Update RBI files for rbi.
Library/Homebrew/sorbet/rbi/gems/rbi@0.0.12.rbi
@@ -313,6 +313,43 @@ class RBI::File def transformed_string; end end +class RBI::Formatter + sig { params(add_sig_templates: T::Boolean, group_nodes: T::Boolean, max_line_length: T.nilable(Integer), nest_singleton_methods: T::Boolean, nest_non_public_methods: T::Boolean, sort_nodes: T::Boolean).void } + def initialize(add_sig_templates: T.unsafe(nil), group_nodes: T.unsafe(nil), max_line_length: T.unsafe(nil), nest_singleton_methods: T.unsafe(nil), nest_non_public_methods: T.unsafe(nil), sort_nodes: T.unsafe(nil)); end + + sig { returns(T::Boolean) } + def add_sig_templates; end + + def add_sig_templates=(_arg0); end + + sig { params(file: RBI::File).void } + def format_file(file); end + + sig { params(tree: RBI::Tree).void } + def format_tree(tree); end + + def group_nodes; end + def group_nodes=(_arg0); end + + sig { returns(T.nilable(Integer)) } + def max_line_length; end + + def max_line_length=(_arg0); end + def nest_non_public_methods; end + def nest_non_public_methods=(_arg0); end + def nest_singleton_methods; end + def nest_singleton_methods=(_arg0); end + + sig { params(file: RBI::File).returns(String) } + def print_file(file); end + + sig { params(tree: RBI::Tree).returns(String) } + def print_tree(tree); end + + def sort_nodes; end + def sort_nodes=(_arg0); end +end + class RBI::Group < ::RBI::Tree sig { params(kind: RBI::Group::Kind).void } def initialize(kind); end @@ -1168,8 +1205,8 @@ class RBI::Send < ::RBI::NodeWithComments end class RBI::Sig < ::RBI::Node - sig { params(params: T::Array[RBI::SigParam], return_type: T.nilable(String), is_abstract: T::Boolean, is_override: T::Boolean, is_overridable: T::Boolean, type_params: T::Array[String], checked: T.nilable(Symbol), loc: T.nilable(RBI::Loc), block: T.nilable(T.proc.params(node: RBI::Sig).void)).void } - def initialize(params: T.unsafe(nil), return_type: T.unsafe(nil), is_abstract: T.unsafe(nil), is_override: T.unsafe(nil), is_overridable: T.unsafe(nil), type_params: T.unsafe(nil), checked: T.unsafe(nil), loc: T.unsafe(nil), &block); end + sig { params(params: T::Array[RBI::SigParam], return_type: T.nilable(String), is_abstract: T::Boolean, is_override: T::Boolean, is_overridable: T::Boolean, is_final: T::Boolean, type_params: T::Array[String], checked: T.nilable(Symbol), loc: T.nilable(RBI::Loc), block: T.nilable(T.proc.params(node: RBI::Sig).void)).void } + def initialize(params: T.unsafe(nil), return_type: T.unsafe(nil), is_abstract: T.unsafe(nil), is_override: T.unsafe(nil), is_overridable: T.unsafe(nil), is_final: T.unsafe(nil), type_params: T.unsafe(nil), checked: T.unsafe(nil), loc: T.unsafe(nil), &block); end sig { params(param: RBI::SigParam).void } def <<(param); end @@ -1192,6 +1229,8 @@ class RBI::Sig < ::RBI::Node def is_abstract; end def is_abstract=(_arg0); end + def is_final; end + def is_final=(_arg0); end def is_overridable; end def is_overridable=(_arg0); end def is_override; end
true
Other
Homebrew
brew
8f901aaf98c7413764ffc47d16bc3cf8f7dc5674.json
Update RBI files for rbi.
Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi
@@ -4162,6 +4162,12 @@ class RBI::File extend ::T::Private::Methods::SingletonMethodHooks end +class RBI::Formatter + extend ::T::Sig + extend ::T::Private::Methods::MethodHooks + extend ::T::Private::Methods::SingletonMethodHooks +end + class RBI::Index include ::T::Enumerable end
true
Other
Homebrew
brew
7dbfc85b4b4044f407e21db62605e0f78ce9e8ae.json
Update RBI files for rubocop-sorbet.
Library/Homebrew/sorbet/rbi/gems/rubocop-sorbet@0.6.6.rbi
@@ -257,6 +257,13 @@ class RuboCop::Cop::Sorbet::TrueSigil < ::RuboCop::Cop::Sorbet::HasSigil def minimum_strictness; end end +class RuboCop::Cop::Sorbet::TypeAliasName < ::RuboCop::Cop::Cop + def casgn_type_alias?(param0 = T.unsafe(nil)); end + def on_casgn(node); end +end + +RuboCop::Cop::Sorbet::TypeAliasName::MSG = T.let(T.unsafe(nil), String) + class RuboCop::Cop::Sorbet::ValidSigil < ::RuboCop::Cop::Cop def autocorrect(_node); end def investigate(processed_source); end
false
Other
Homebrew
brew
9924a18d77d32e448dd22722e79e6fe61748fd3e.json
Update RBI files for rspec.
Library/Homebrew/sorbet/rbi/gems/rspec-core@3.11.0.rbi
@@ -17,6 +17,8 @@ module RSpec def context(*args, &example_group_block); end def current_example; end def current_example=(example); end + def current_scope; end + def current_scope=(scope); end def describe(*args, &example_group_block); end def example_group(*args, &example_group_block); end def fcontext(*args, &example_group_block); end @@ -1640,6 +1642,8 @@ module RSpec::Core::MemoizedHelpers def __init_memoized; end def __memoized; end + def enforce_value_expectation(matcher, method_name); end + def matcher_supports_value_expectations?(matcher); end class << self def define_helpers_on(example_group); end @@ -2037,6 +2041,10 @@ end RSpec::Core::Ordering::Random::MAX_32_BIT = T.let(T.unsafe(nil), Integer) +class RSpec::Core::Ordering::RecentlyModified + def order(list); end +end + class RSpec::Core::Ordering::Registry def initialize(configuration); end @@ -2470,6 +2478,8 @@ class RSpec::Core::World def report_filter_message(message); end def reporter; end def reset; end + def rspec_is_quitting; end + def rspec_is_quitting=(_arg0); end def shared_example_group_registry; end def source_from_file(path); end def syntax_highlighter; end
true
Other
Homebrew
brew
9924a18d77d32e448dd22722e79e6fe61748fd3e.json
Update RBI files for rspec.
Library/Homebrew/sorbet/rbi/gems/rspec-expectations@3.11.0.rbi
@@ -17,6 +17,8 @@ module RSpec def context(*args, &example_group_block); end def current_example; end def current_example=(example); end + def current_scope; end + def current_scope=(scope); end def describe(*args, &example_group_block); end def example_group(*args, &example_group_block); end def fcontext(*args, &example_group_block); end @@ -330,6 +332,16 @@ module RSpec::Expectations::Syntax end end +class RSpec::Expectations::ValueExpectationTarget < ::RSpec::Expectations::ExpectationTarget + def not_to(matcher = T.unsafe(nil), message = T.unsafe(nil), &block); end + def to(matcher = T.unsafe(nil), message = T.unsafe(nil), &block); end + + private + + def enforce_value_expectation(matcher); end + def supports_value_expectations?(matcher); end +end + module RSpec::Expectations::Version; end RSpec::Expectations::Version::STRING = T.let(T.unsafe(nil), String) RSpec::MODULES_TO_AUTOLOAD = T.let(T.unsafe(nil), Hash) @@ -521,6 +533,7 @@ class RSpec::Matchers::BuiltIn::BaseMatcher def present_ivars; end def rescued_exception; end def supports_block_expectations?; end + def supports_value_expectations?; end private @@ -719,6 +732,7 @@ class RSpec::Matchers::BuiltIn::Change < ::RSpec::Matchers::BuiltIn::BaseMatcher def from(value); end def matches?(event_proc); end def supports_block_expectations?; end + def supports_value_expectations?; end def to(value); end private @@ -746,6 +760,8 @@ class RSpec::Matchers::BuiltIn::ChangeDetails def message_notation(receiver, message); end end +module RSpec::Matchers::BuiltIn::ChangeDetails::UNDEFINED; end + class RSpec::Matchers::BuiltIn::ChangeFromValue < ::RSpec::Matchers::BuiltIn::SpecificValuesChange def initialize(change_details, expected_before); end @@ -766,6 +782,7 @@ class RSpec::Matchers::BuiltIn::ChangeRelatively < ::RSpec::Matchers::BuiltIn::B def failure_message; end def matches?(event_proc); end def supports_block_expectations?; end + def supports_value_expectations?; end private @@ -795,6 +812,7 @@ class RSpec::Matchers::BuiltIn::Compound < ::RSpec::Matchers::BuiltIn::BaseMatch def matcher_1; end def matcher_2; end def supports_block_expectations?; end + def supports_value_expectations?; end protected @@ -811,6 +829,7 @@ class RSpec::Matchers::BuiltIn::Compound < ::RSpec::Matchers::BuiltIn::BaseMatch def matcher_2_matches?; end def matcher_is_diffable?(matcher); end def matcher_supports_block_expectations?(matcher); end + def matcher_supports_value_expectations?(matcher); end end class RSpec::Matchers::BuiltIn::Compound::And < ::RSpec::Matchers::BuiltIn::Compound @@ -1180,6 +1199,7 @@ class RSpec::Matchers::BuiltIn::Output < ::RSpec::Matchers::BuiltIn::BaseMatcher def failure_message_when_negated; end def matches?(block); end def supports_block_expectations?; end + def supports_value_expectations?; end def to_stderr; end def to_stderr_from_any_process; end def to_stdout; end @@ -1209,6 +1229,7 @@ class RSpec::Matchers::BuiltIn::RaiseError def failure_message_when_negated; end def matches?(given_proc, negative_expectation = T.unsafe(nil), &block); end def supports_block_expectations?; end + def supports_value_expectations?; end def with_message(expected_message); end private @@ -1306,6 +1327,7 @@ class RSpec::Matchers::BuiltIn::SpecificValuesChange < ::RSpec::Matchers::BuiltI def failure_message; end def matches?(event_proc); end def supports_block_expectations?; end + def supports_value_expectations?; end private @@ -1352,6 +1374,7 @@ class RSpec::Matchers::BuiltIn::ThrowSymbol def failure_message_when_negated; end def matches?(given_proc); end def supports_block_expectations?; end + def supports_value_expectations?; end private @@ -1369,6 +1392,7 @@ class RSpec::Matchers::BuiltIn::YieldControl < ::RSpec::Matchers::BuiltIn::BaseM def failure_message_when_negated; end def matches?(block); end def supports_block_expectations?; end + def supports_value_expectations?; end private @@ -1404,6 +1428,7 @@ class RSpec::Matchers::BuiltIn::YieldSuccessiveArgs < ::RSpec::Matchers::BuiltIn def failure_message_when_negated; end def matches?(block); end def supports_block_expectations?; end + def supports_value_expectations?; end private @@ -1421,6 +1446,7 @@ class RSpec::Matchers::BuiltIn::YieldWithArgs < ::RSpec::Matchers::BuiltIn::Base def failure_message_when_negated; end def matches?(block); end def supports_block_expectations?; end + def supports_value_expectations?; end private @@ -1437,6 +1463,7 @@ class RSpec::Matchers::BuiltIn::YieldWithNoArgs < ::RSpec::Matchers::BuiltIn::Ba def failure_message_when_negated; end def matches?(block); end def supports_block_expectations?; end + def supports_value_expectations?; end private @@ -1499,6 +1526,7 @@ module RSpec::Matchers::DSL::DefaultImplementations def diffable?; end def expects_call_stack_jump?; end def supports_block_expectations?; end + def supports_value_expectations?; end private
true
Other
Homebrew
brew
9924a18d77d32e448dd22722e79e6fe61748fd3e.json
Update RBI files for rspec.
Library/Homebrew/sorbet/rbi/gems/rspec-mocks@3.11.0.rbi
@@ -17,6 +17,8 @@ module RSpec def context(*args, &example_group_block); end def current_example; end def current_example=(example); end + def current_scope; end + def current_scope=(scope); end def describe(*args, &example_group_block); end def example_group(*args, &example_group_block); end def fcontext(*args, &example_group_block); end @@ -55,6 +57,12 @@ class RSpec::Mocks::AllowanceTarget < ::RSpec::Mocks::TargetBase def to_not(matcher, *_args); end end +class RSpec::Mocks::AndInvokeImplementation + def initialize(procs_to_invoke); end + + def call(*args, &block); end +end + class RSpec::Mocks::AndReturnImplementation def initialize(values_to_return); end @@ -783,6 +791,7 @@ class RSpec::Mocks::Matchers::Receive def initialize(message, block); end def and_call_original(*args, &block); end + def and_invoke(*args, &block); end def and_raise(*args, &block); end def and_return(*args, &block); end def and_throw(*args, &block); end @@ -832,6 +841,7 @@ class RSpec::Mocks::Matchers::ReceiveMessageChain def initialize(chain, &block); end def and_call_original(*args, &block); end + def and_invoke(*args, &block); end def and_raise(*args, &block); end def and_return(*args, &block); end def and_throw(*args, &block); end @@ -896,6 +906,7 @@ class RSpec::Mocks::MessageExpectation include ::RSpec::Mocks::MessageExpectation::ImplementationDetails def and_call_original; end + def and_invoke(first_proc, *procs); end def and_raise(*args); end def and_return(first_value, *values); end def and_throw(*args); end
true
Other
Homebrew
brew
9924a18d77d32e448dd22722e79e6fe61748fd3e.json
Update RBI files for rspec.
Library/Homebrew/sorbet/rbi/gems/rspec-support@3.11.0.rbi
@@ -17,6 +17,8 @@ module RSpec def context(*args, &example_group_block); end def current_example; end def current_example=(example); end + def current_scope; end + def current_scope=(scope); end def describe(*args, &example_group_block); end def example_group(*args, &example_group_block); end def fcontext(*args, &example_group_block); end
true
Other
Homebrew
brew
9924a18d77d32e448dd22722e79e6fe61748fd3e.json
Update RBI files for rspec.
Library/Homebrew/sorbet/rbi/gems/rspec@3.11.0.rbi
@@ -1,9 +1,9 @@ +# typed: true + # DO NOT EDIT MANUALLY # This is an autogenerated file for types exported from the `rspec` gem. # Please instead update this file by running `bin/tapioca gem rspec`. -# typed: true - module RSpec extend ::RSpec::Support::Warnings extend ::RSpec::Core::Warnings @@ -17,6 +17,8 @@ module RSpec def context(*args, &example_group_block); end def current_example; end def current_example=(example); end + def current_scope; end + def current_scope=(scope); end def describe(*args, &example_group_block); end def example_group(*args, &example_group_block); end def fcontext(*args, &example_group_block); end
true
Other
Homebrew
brew
14399ca21ddeb9519dd9c0447502ef8a07dfe64c.json
sorbet: Update RBI files. Autogenerated by the [sorbet](https://github.com/Homebrew/brew/blob/master/.github/workflows/sorbet.yml) workflow.
Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi
@@ -968,6 +968,8 @@ class Cask::DSL::Caveats def reboot(*args); end + def requires_rosetta(*args); end + def unsigned_accessibility(*args); end def zsh_path_helper(*args); end
false
Other
Homebrew
brew
3595127fdcf978aeef31ea3391b6135a9caf932a.json
Update RBI files for sorbet.
Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi
@@ -968,6 +968,8 @@ class Cask::DSL::Caveats def reboot(*args); end + def requires_rosetta(*args); end + def unsigned_accessibility(*args); end def zsh_path_helper(*args); end
false
Other
Homebrew
brew
00f209e16ed0698f10c8b8d03204f3d7e9850ce8.json
Recommend interactive usage of `fish_add_path` Since the `fish_add_path` command modifies a universal Fish variable (which is automatically persisted to a file) it's unnecessary to run it again every time a new shell is opened.
Library/Homebrew/test/utils/shell_spec.rb
@@ -98,7 +98,7 @@ ENV["SHELL"] = "/usr/local/bin/fish" ENV["fish_user_paths"] = "/some/path" expect(described_class.prepend_path_in_profile(path)) - .to eq("echo 'fish_add_path #{path}' >> #{shell_profile}") + .to eq("fish_add_path #{path}") end end end
true
Other
Homebrew
brew
00f209e16ed0698f10c8b8d03204f3d7e9850ce8.json
Recommend interactive usage of `fish_add_path` Since the `fish_add_path` command modifies a universal Fish variable (which is automatically persisted to a file) it's unnecessary to run it again every time a new shell is opened.
Library/Homebrew/utils/shell.rb
@@ -78,7 +78,7 @@ def prepend_path_in_profile(path) when :csh, :tcsh "echo 'setenv PATH #{csh_quote(path)}:$PATH' >> #{profile}" when :fish - "echo 'fish_add_path #{sh_quote(path)}' >> #{profile}" + "fish_add_path #{sh_quote(path)}" end end
true
Other
Homebrew
brew
2ea918536d0eaaaeda749437cfcc0d396b8719dd.json
Update RBI files for rubocop.
Library/Homebrew/sorbet/rbi/gems/rubocop@1.25.1.rbi
@@ -1742,10 +1742,12 @@ module RuboCop::Cop::HashShorthandSyntax private def enforced_shorthand_syntax; end - def node_with_block_and_arguments?(node); end + def ignore_hash_shorthand_syntax?(pair_node); end def require_hash_value?(hash_key_source, node); end - def without_parentheses?(node); end - def without_parentheses_call_expr_follows?(node); end + def require_hash_value_for_around_hash_literal?(node); end + def use_element_of_hash_literal_as_receiver?(ancestor, parent); end + def use_modifier_form_without_parenthesized_method_call?(ancestor); end + def without_parentheses_call_expr_follows?(ancestor); end end RuboCop::Cop::HashShorthandSyntax::EXPLICIT_HASH_VALUE_MSG = T.let(T.unsafe(nil), String) @@ -2590,6 +2592,7 @@ class RuboCop::Cop::Layout::EmptyLinesAroundExceptionHandlingKeywords < ::RuboCo def keyword_locations(node); end def keyword_locations_in_ensure(node); end def keyword_locations_in_rescue(node); end + def last_rescue_and_end_on_same_line(body); end def message(location, keyword); end def style; end end @@ -2860,6 +2863,7 @@ class RuboCop::Cop::Layout::HashAlignment < ::RuboCop::Cop::Base def alignment_for_colons; end def alignment_for_hash_rockets; end def argument_alignment_config; end + def argument_before_hash(hash_node); end def autocorrect_incompatible_with_other_cops?(node); end def check_delta(delta, node:, alignment:); end def check_pairs(node); end @@ -9342,12 +9346,14 @@ module RuboCop::Cop::Style::MethodCallWithArgsParentheses::OmitParentheses def call_in_single_line_inheritance?(node); end def call_with_ambiguous_arguments?(node); end def call_with_braced_block?(node); end + def exist_next_line_expression?(node); end def hash_literal?(node); end def hash_literal_in_arguments?(node); end def inside_endless_method_def?(node); end def inside_string_interpolation?(node); end def legitimate_call_with_parentheses?(node); end def logical_operator?(node); end + def modifier_form?(node); end def offense_range(node); end def omit_parentheses(node); end def parentheses_at_the_end_of_multiline_call?(node); end @@ -10449,7 +10455,6 @@ class RuboCop::Cop::Style::RedundantBegin < ::RuboCop::Cop::Base private - def any_ancestor_assignment_node?(node); end def begin_block_has_multiline_statements?(node); end def condition_range(node); end def contain_rescue_or_ensure?(node); end @@ -12708,6 +12713,8 @@ class RuboCop::Formatter::DisabledConfigFormatter < ::RuboCop::Formatter::BaseFo def set_max(cfg, cop_name); end def show_offense_counts?; end def show_timestamp?; end + def supports_safe_auto_correct?(cop_class, default_cfg); end + def supports_unsafe_autocorrect?(cop_class, default_cfg); end def timestamp; end class << self
false
Other
Homebrew
brew
2b60a99d4ac8721d2976db0fa1447f90768ebd07.json
Revert "shebang: raise error if no rewriting" This is causing failures when attempting to rewrite shebangs during the cleanup stage of `brew install`. See, for example, Homebrew/homebrew-core#94323, Homebrew/homebrew-core#94321. This reverts commit 7e6be5eb4474ed9eaa4b8e9a5a45e3340186840c.
Library/Homebrew/test/utils/shebang_spec.rb
@@ -1,30 +0,0 @@ -# typed: false -# frozen_string_literal: true - -require "utils/shebang" - -describe Utils::Shebang do - let(:file) { Tempfile.new("shebang") } - - before do - file.write "#!/usr/bin/python" - file.flush - end - - after { file.unlink } - - describe "rewrite_shebang" do - it "rewrites a shebang" do - rewrite_info = Utils::Shebang::RewriteInfo.new(/^#!.*python$/, 25, "new_shebang") - described_class.rewrite_shebang rewrite_info, file - expect(File.read(file)).to eq "#!new_shebang" - end - - it "raises an error if no rewriting occurs" do - rewrite_info = Utils::Shebang::RewriteInfo.new(/^#!.*perl$/, 25, "new_shebang") - expect { - described_class.rewrite_shebang rewrite_info, file - }.to raise_error("No matching files found to rewrite shebang") - end - end -end
true
Other
Homebrew
brew
2b60a99d4ac8721d2976db0fa1447f90768ebd07.json
Revert "shebang: raise error if no rewriting" This is causing failures when attempting to rewrite shebangs during the cleanup stage of `brew install`. See, for example, Homebrew/homebrew-core#94323, Homebrew/homebrew-core#94321. This reverts commit 7e6be5eb4474ed9eaa4b8e9a5a45e3340186840c.
Library/Homebrew/utils/shebang.rb
@@ -34,17 +34,13 @@ def initialize(regex, max_length, replacement) # @api public sig { params(rewrite_info: RewriteInfo, paths: T::Array[T.any(String, Pathname)]).void } def rewrite_shebang(rewrite_info, *paths) - found = T.let(false, T::Boolean) paths.each do |f| f = Pathname(f) next unless f.file? next unless rewrite_info.regex.match?(f.read(rewrite_info.max_length)) Utils::Inreplace.inreplace f.to_s, rewrite_info.regex, "#!#{rewrite_info.replacement}" - found = true end - - raise "No matching files found to rewrite shebang" unless found end end end
true
Other
Homebrew
brew
bc67c0552876407980c3467f402a8239c90cc3f3.json
rubocops/text: remove `setuptools` audit This currently no longer applies, because we might sometimes need an older `setuptools` than the one shipped with a Python formula. This is needed for Homebrew/homebrew-core#93964.
Library/Homebrew/rubocops/text.rb
@@ -35,13 +35,6 @@ def audit_formula(node, _class_node, _parent_class_node, body_node) problem "Formulae in homebrew/core should use OpenBLAS as the default serial linear algebra library." end - if method_called_ever?(body_node, :virtualenv_create) || - method_called_ever?(body_node, :virtualenv_install_with_resources) - find_method_with_args(body_node, :resource, "setuptools") do - problem "Formulae using virtualenvs do not need a `setuptools` resource." - end - end - unless method_called_ever?(body_node, :go_resource) # processed_source.ast is passed instead of body_node because `require` would be outside body_node find_method_with_args(processed_source.ast, :require, "language/go") do
true
Other
Homebrew
brew
bc67c0552876407980c3467f402a8239c90cc3f3.json
rubocops/text: remove `setuptools` audit This currently no longer applies, because we might sometimes need an older `setuptools` than the one shipped with a Python formula. This is needed for Homebrew/homebrew-core#93964.
Library/Homebrew/test/rubocops/text_spec.rb
@@ -144,25 +144,6 @@ def install RUBY end - it "reports an offense if formula uses virtualenv and also `setuptools` resource" do - expect_offense(<<~RUBY) - class Foo < Formula - url "https://brew.sh/foo-1.0.tgz" - homepage "https://brew.sh" - - resource "setuptools" do - ^^^^^^^^^^^^^^^^^^^^^ Formulae using virtualenvs do not need a `setuptools` resource. - url "https://foo.com/foo.tar.gz" - sha256 "db0904a28253cfe53e7dedc765c71596f3c53bb8a866ae50123320ec1a7b73fd" - end - - def install - virtualenv_create(libexec) - end - end - RUBY - end - it "reports an offense if `Formula.factory(name)` is present" do expect_offense(<<~RUBY) class Foo < Formula
true
Other
Homebrew
brew
7e6be5eb4474ed9eaa4b8e9a5a45e3340186840c.json
shebang: raise error if no rewriting
Library/Homebrew/test/utils/shebang_spec.rb
@@ -0,0 +1,30 @@ +# typed: false +# frozen_string_literal: true + +require "utils/shebang" + +describe Utils::Shebang do + let(:file) { Tempfile.new("shebang") } + + before do + file.write "#!/usr/bin/python" + file.flush + end + + after { file.unlink } + + describe "rewrite_shebang" do + it "rewrites a shebang" do + rewrite_info = Utils::Shebang::RewriteInfo.new(/^#!.*python$/, 25, "new_shebang") + described_class.rewrite_shebang rewrite_info, file + expect(File.read(file)).to eq "#!new_shebang" + end + + it "raises an error if no rewriting occurs" do + rewrite_info = Utils::Shebang::RewriteInfo.new(/^#!.*perl$/, 25, "new_shebang") + expect { + described_class.rewrite_shebang rewrite_info, file + }.to raise_error("No matching files found to rewrite shebang") + end + end +end
true
Other
Homebrew
brew
7e6be5eb4474ed9eaa4b8e9a5a45e3340186840c.json
shebang: raise error if no rewriting
Library/Homebrew/utils/shebang.rb
@@ -34,13 +34,17 @@ def initialize(regex, max_length, replacement) # @api public sig { params(rewrite_info: RewriteInfo, paths: T::Array[T.any(String, Pathname)]).void } def rewrite_shebang(rewrite_info, *paths) + found = T.let(false, T::Boolean) paths.each do |f| f = Pathname(f) next unless f.file? next unless rewrite_info.regex.match?(f.read(rewrite_info.max_length)) Utils::Inreplace.inreplace f.to_s, rewrite_info.regex, "#!#{rewrite_info.replacement}" + found = true end + + raise "No matching files found to rewrite shebang" unless found end end end
true
Other
Homebrew
brew
e859c991f3ec20177f0c944d030764ddfa0344ba.json
Update RBI files for rspec-mocks.
Library/Homebrew/sorbet/rbi/gems/rspec-mocks@3.10.3.rbi
@@ -1,9 +1,9 @@ +# typed: true + # DO NOT EDIT MANUALLY # This is an autogenerated file for types exported from the `rspec-mocks` gem. # Please instead update this file by running `bin/tapioca gem rspec-mocks`. -# typed: true - module RSpec extend ::RSpec::Support::Warnings extend ::RSpec::Core::Warnings @@ -295,7 +295,7 @@ end class RSpec::Mocks::ArgumentListMatcher def initialize(*expected_args); end - def args_match?(*args); end + def args_match?(*actual_args); end def expected_args; end def resolve_expected_args_based_on(actual_args); end @@ -1411,13 +1411,6 @@ module RSpec::Mocks::VerifyingDouble def send(name, *args, &block); end end -module RSpec::Mocks::VerifyingDouble::SilentIO - class << self - def method_missing(*_arg0); end - def respond_to?(*_arg0); end - end -end - class RSpec::Mocks::VerifyingDoubleNotDefinedError < ::StandardError; end class RSpec::Mocks::VerifyingExistingClassNewMethodDouble < ::RSpec::Mocks::VerifyingExistingMethodDouble
false
Other
Homebrew
brew
65c18990d80577971d022ca19b184225f67a3efb.json
Update RBI files for tapioca.
Library/Homebrew/sorbet/rbi/gems/rbi@0.0.11.rbi
@@ -284,8 +284,8 @@ class RBI::File sig { returns(T::Boolean) } def empty?; end - sig { params(out: T.any(IO, StringIO), indent: Integer, print_locs: T::Boolean).void } - def print(out: T.unsafe(nil), indent: T.unsafe(nil), print_locs: T.unsafe(nil)); end + sig { params(out: T.any(IO, StringIO), indent: Integer, print_locs: T::Boolean, max_line_length: T.nilable(Integer)).void } + def print(out: T.unsafe(nil), indent: T.unsafe(nil), print_locs: T.unsafe(nil), max_line_length: T.unsafe(nil)); end sig { returns(RBI::Tree) } def root; end @@ -303,8 +303,8 @@ class RBI::File def strictness=(_arg0); end - sig { params(indent: Integer, print_locs: T::Boolean).returns(String) } - def string(indent: T.unsafe(nil), print_locs: T.unsafe(nil)); end + sig { params(indent: Integer, print_locs: T::Boolean, max_line_length: T.nilable(Integer)).returns(String) } + def string(indent: T.unsafe(nil), print_locs: T.unsafe(nil), max_line_length: T.unsafe(nil)); end sig { void } def transform_rbi!; end
true
Other
Homebrew
brew
65c18990d80577971d022ca19b184225f67a3efb.json
Update RBI files for tapioca.
Library/Homebrew/sorbet/rbi/gems/tapioca@0.6.3.rbi
@@ -95,8 +95,8 @@ class RBI::File sig { returns(T::Boolean) } def empty?; end - sig { params(out: T.any(IO, StringIO), indent: Integer, print_locs: T::Boolean).void } - def print(out: T.unsafe(nil), indent: T.unsafe(nil), print_locs: T.unsafe(nil)); end + sig { params(out: T.any(IO, StringIO), indent: Integer, print_locs: T::Boolean, max_line_length: T.nilable(Integer)).void } + def print(out: T.unsafe(nil), indent: T.unsafe(nil), print_locs: T.unsafe(nil), max_line_length: T.unsafe(nil)); end sig { returns(RBI::Tree) } def root; end @@ -114,8 +114,8 @@ class RBI::File def strictness=(_arg0); end - sig { params(indent: Integer, print_locs: T::Boolean).returns(String) } - def string(indent: T.unsafe(nil), print_locs: T.unsafe(nil)); end + sig { params(indent: Integer, print_locs: T::Boolean, max_line_length: T.nilable(Integer)).returns(String) } + def string(indent: T.unsafe(nil), print_locs: T.unsafe(nil), max_line_length: T.unsafe(nil)); end sig { void } def transform_rbi!; end @@ -309,6 +309,9 @@ class Tapioca::Compilers::Dsl::Base sig { returns(T::Enumerable[Module]) } def all_modules; end + sig { params(type: String).returns(String) } + def as_nilable_type(type); end + sig { params(method_def: T.any(Method, UnboundMethod)).returns(T::Array[RBI::TypedParam]) } def compile_method_parameters_to_rbi(method_def); end
true
Other
Homebrew
brew
61fdc35c2b2f7462305b5de6943fddff34d91564.json
Update RBI files for i18n.
Library/Homebrew/sorbet/rbi/gems/i18n@1.9.1.rbi
@@ -4,13 +4,48 @@ # This is an autogenerated file for types exported from the `i18n` gem. # Please instead update this file by running `bin/tapioca gem i18n`. +module GetText; end + +class GetText::PoParser < ::Racc::Parser + def _(x); end + def _reduce_10(val, _values, result); end + def _reduce_12(val, _values, result); end + def _reduce_13(val, _values, result); end + def _reduce_14(val, _values, result); end + def _reduce_15(val, _values, result); end + def _reduce_5(val, _values, result); end + def _reduce_8(val, _values, result); end + def _reduce_9(val, _values, result); end + def _reduce_none(val, _values, result); end + def next_token; end + def on_comment(comment); end + def on_message(msgid, msgstr); end + def parse(str, data, ignore_fuzzy = T.unsafe(nil)); end + def unescape(orig); end +end + +GetText::PoParser::Racc_arg = T.let(T.unsafe(nil), Array) +GetText::PoParser::Racc_debug_parser = T.let(T.unsafe(nil), TrueClass) +GetText::PoParser::Racc_token_to_s_table = T.let(T.unsafe(nil), Array) + module I18n extend ::I18n::Base class << self + def cache_key_digest; end + def cache_key_digest=(key_digest); end + def cache_namespace; end + def cache_namespace=(namespace); end + def cache_store; end + def cache_store=(store); end + def fallbacks; end + def fallbacks=(fallbacks); end def interpolate(string, values); end def interpolate_hash(string, values); end def new_double_nested_cache; end + def perform_caching?; end + def reserve_key(key); end + def reserved_keys_pattern; end end end @@ -113,6 +148,7 @@ end module I18n::Backend::Fallbacks def exists?(locale, key, options = T.unsafe(nil)); end def extract_non_symbol_default!(options); end + def resolve(locale, object, subject, options = T.unsafe(nil)); end def translate(locale, key, options = T.unsafe(nil)); end private @@ -424,7 +460,6 @@ module I18n::Gettext::Helpers end I18n::Gettext::PLURAL_SEPARATOR = T.let(T.unsafe(nil), String) -module I18n::HashRefinements; end I18n::INTERPOLATION_PATTERN = T.let(T.unsafe(nil), Regexp) class I18n::InvalidLocale < ::I18n::ArgumentError @@ -456,7 +491,7 @@ class I18n::Locale::Fallbacks < ::Hash def [](locale); end def defaults; end def defaults=(defaults); end - def map(mappings); end + def map(*args, &block); end protected @@ -552,12 +587,13 @@ module I18n::MissingTranslation::Base def to_s; end end +I18n::MissingTranslation::Base::PERMITTED_KEYS = T.let(T.unsafe(nil), Array) + class I18n::MissingTranslationData < ::I18n::ArgumentError include ::I18n::MissingTranslation::Base end I18n::RESERVED_KEYS = T.let(T.unsafe(nil), Array) -I18n::RESERVED_KEYS_PATTERN = T.let(T.unsafe(nil), Regexp) class I18n::ReservedInterpolationKey < ::I18n::ArgumentError def initialize(key, string); end @@ -580,6 +616,11 @@ module I18n::Tests::Interpolation; end module I18n::Tests::Link; end module I18n::Tests::Localization + include ::I18n::Tests::Localization::Date + include ::I18n::Tests::Localization::DateTime + include ::I18n::Tests::Localization::Procs + include ::I18n::Tests::Localization::Time + class << self def included(base); end end @@ -613,4 +654,17 @@ class I18n::UnknownFileType < ::I18n::ArgumentError def type; end end +module I18n::Utils + class << self + def deep_merge(hash, other_hash, &block); end + def deep_merge!(hash, other_hash, &block); end + def deep_symbolize_keys(hash); end + def except(hash, *keys); end + + private + + def deep_symbolize_keys_in_object(value); end + end +end + I18n::VERSION = T.let(T.unsafe(nil), String)
true
Other
Homebrew
brew
61fdc35c2b2f7462305b5de6943fddff34d91564.json
Update RBI files for i18n.
Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi
@@ -2417,48 +2417,6 @@ module Gem def self.remove_unresolved_default_spec(spec); end end -module GetText -end - -class GetText::PoParser - def _(x); end - - def _reduce_10(val, _values, result); end - - def _reduce_12(val, _values, result); end - - def _reduce_13(val, _values, result); end - - def _reduce_14(val, _values, result); end - - def _reduce_15(val, _values, result); end - - def _reduce_5(val, _values, result); end - - def _reduce_8(val, _values, result); end - - def _reduce_9(val, _values, result); end - - def _reduce_none(val, _values, result); end - - def on_comment(comment); end - - def on_message(msgid, msgstr); end - - def parse(str, data, ignore_fuzzy=T.unsafe(nil)); end - - def unescape(orig); end - Racc_arg = ::T.let(nil, ::T.untyped) - Racc_debug_parser = ::T.let(nil, ::T.untyped) - Racc_token_to_s_table = ::T.let(nil, ::T.untyped) -end - -class GetText::PoParser -end - -module GetText -end - module GitHub::API extend ::T::Private::Methods::MethodHooks extend ::T::Private::Methods::SingletonMethodHooks @@ -2779,26 +2737,6 @@ end module HostEnvironmentSimulatorHelper end -module I18n - def self.cache_key_digest(); end - - def self.cache_key_digest=(key_digest); end - - def self.cache_namespace(); end - - def self.cache_namespace=(namespace); end - - def self.cache_store(); end - - def self.cache_store=(store); end - - def self.fallbacks(); end - - def self.fallbacks=(fallbacks); end - - def self.perform_caching?(); end -end - class IO def beep(); end @@ -3722,6 +3660,7 @@ class Object HOMEBREW_DEFAULT_PREFIX = ::T.let(nil, ::T.untyped) HOMEBREW_DEFAULT_REPOSITORY = ::T.let(nil, ::T.untyped) HOMEBREW_DEFAULT_TEMP = ::T.let(nil, ::T.untyped) + HOMEBREW_GITHUB_PACKAGES_AUTH = ::T.let(nil, ::T.untyped) HOMEBREW_LIBRARY = ::T.let(nil, ::T.untyped) HOMEBREW_LIBRARY_PATH = ::T.let(nil, ::T.untyped) HOMEBREW_LINKED_KEGS = ::T.let(nil, ::T.untyped)
true
Other
Homebrew
brew
123ddc656dc31c3179a01c5f03a3e499ba02e288.json
Update RBI files for rspec-core.
Library/Homebrew/sorbet/rbi/gems/rspec-core@3.10.2.rbi
@@ -1,9 +1,9 @@ +# typed: true + # DO NOT EDIT MANUALLY # This is an autogenerated file for types exported from the `rspec-core` gem. # Please instead update this file by running `bin/tapioca gem rspec-core`. -# typed: true - module RSpec extend ::RSpec::Support::Warnings extend ::RSpec::Core::Warnings @@ -79,6 +79,8 @@ class RSpec::Core::Bisect::Channel def send(message); end end +RSpec::Core::Bisect::Channel::MARSHAL_DUMP_ENCODING = T.let(T.unsafe(nil), Encoding) + class RSpec::Core::Bisect::ExampleSetDescriptor < ::Struct def all_example_ids; end def all_example_ids=(_); end @@ -1241,6 +1243,7 @@ class RSpec::Core::Formatters::Loader def duplicate_formatter_exists?(new_formatter); end def existing_formatter_implements?(notification); end def find_formatter(formatter_to_use); end + def has_matching_output?(formatter, new_formatter); end def notifications_for(formatter_class); end def open_stream(path_or_wrapper); end def path_for(const_ref); end
true
Other
Homebrew
brew
123ddc656dc31c3179a01c5f03a3e499ba02e288.json
Update RBI files for rspec-core.
Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi
@@ -3722,6 +3722,7 @@ class Object HOMEBREW_DEFAULT_PREFIX = ::T.let(nil, ::T.untyped) HOMEBREW_DEFAULT_REPOSITORY = ::T.let(nil, ::T.untyped) HOMEBREW_DEFAULT_TEMP = ::T.let(nil, ::T.untyped) + HOMEBREW_GITHUB_PACKAGES_AUTH = ::T.let(nil, ::T.untyped) HOMEBREW_LIBRARY = ::T.let(nil, ::T.untyped) HOMEBREW_LIBRARY_PATH = ::T.let(nil, ::T.untyped) HOMEBREW_LINKED_KEGS = ::T.let(nil, ::T.untyped)
true
Other
Homebrew
brew
733fbfae6680f6fa0bf66c5f72683077ffac4af8.json
Update RBI files for sorbet.
Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi
@@ -3722,6 +3722,7 @@ class Object HOMEBREW_DEFAULT_PREFIX = ::T.let(nil, ::T.untyped) HOMEBREW_DEFAULT_REPOSITORY = ::T.let(nil, ::T.untyped) HOMEBREW_DEFAULT_TEMP = ::T.let(nil, ::T.untyped) + HOMEBREW_GITHUB_PACKAGES_AUTH = ::T.let(nil, ::T.untyped) HOMEBREW_LIBRARY = ::T.let(nil, ::T.untyped) HOMEBREW_LIBRARY_PATH = ::T.let(nil, ::T.untyped) HOMEBREW_LINKED_KEGS = ::T.let(nil, ::T.untyped)
false
Other
Homebrew
brew
8eb4756d3efcb13d5d39a0cb0b3d05aef1dfc56a.json
sandbox: handle SIGTTOU and SIGTTIN to avoid hangs
Library/Homebrew/sandbox.rb
@@ -115,17 +115,25 @@ def exec(*args) end write_to_pty = proc do + # Don't hang if stdin is not able to be used - throw EIO instead. + old_ttin = trap(:TTIN, "IGNORE") + # Update the window size whenever the parent terminal's window size changes. old_winch = trap(:WINCH, &winch) winch.call(nil) - stdin_thread = Thread.new { IO.copy_stream($stdin, w) } + stdin_thread = Thread.new do + IO.copy_stream($stdin, w) + rescue Errno::EIO + # stdin is unavailable - move on. + end r.each_char { |c| print(c) } Process.wait(pid) ensure stdin_thread&.kill + trap(:TTIN, old_ttin) trap(:WINCH, old_winch) end @@ -134,7 +142,13 @@ def exec(*args) # mode while we copy the input/output of the process spawned in the # PTY. After we've finished copying to/from the PTY process, io.raw # will restore the stdin TTY to its original state. - $stdin.raw(&write_to_pty) + begin + # Ignore SIGTTOU as setting raw mode will hang if the process is in the background. + old_ttou = trap(:TTOU, "IGNORE") + $stdin.raw(&write_to_pty) + ensure + trap(:TTOU, old_ttou) + end else write_to_pty.call end
false
Other
Homebrew
brew
25e0597bd8549556dfba0bf763b9549aa643eb64.json
Update RBI files for i18n.
Library/Homebrew/sorbet/rbi/gems/i18n@1.9.0.rbi
@@ -8,9 +8,20 @@ module I18n extend ::I18n::Base class << self + def cache_key_digest; end + def cache_key_digest=(key_digest); end + def cache_namespace; end + def cache_namespace=(namespace); end + def cache_store; end + def cache_store=(store); end + def fallbacks; end + def fallbacks=(fallbacks); end def interpolate(string, values); end def interpolate_hash(string, values); end def new_double_nested_cache; end + def perform_caching?; end + def reserve_key(key); end + def reserved_keys_pattern; end end end @@ -76,43 +87,10 @@ module I18n::Backend::Cascade def lookup(locale, key, scope = T.unsafe(nil), options = T.unsafe(nil)); end end -class I18n::Backend::Chain - include ::I18n::Backend::Transliterator - include ::I18n::Backend::Base - include ::I18n::Backend::Chain::Implementation -end - -module I18n::Backend::Chain::Implementation - include ::I18n::Backend::Transliterator - include ::I18n::Backend::Base - - def initialize(*backends); end - - def available_locales; end - def backends; end - def backends=(_arg0); end - def eager_load!; end - def exists?(locale, key, options = T.unsafe(nil)); end - def initialized?; end - def localize(locale, object, format = T.unsafe(nil), options = T.unsafe(nil)); end - def reload!; end - def store_translations(locale, data, options = T.unsafe(nil)); end - def translate(locale, key, default_options = T.unsafe(nil)); end - - protected - - def init_translations; end - def namespace_lookup?(result, options); end - def translations; end - - private - - def _deep_merge(hash, other_hash); end -end - module I18n::Backend::Fallbacks def exists?(locale, key, options = T.unsafe(nil)); end def extract_non_symbol_default!(options); end + def resolve(locale, object, subject, options = T.unsafe(nil)); end def translate(locale, key, options = T.unsafe(nil)); end private @@ -142,19 +120,6 @@ end I18n::Backend::Flatten::FLATTEN_SEPARATOR = T.let(T.unsafe(nil), String) I18n::Backend::Flatten::SEPARATOR_ESCAPE_CHAR = T.let(T.unsafe(nil), String) -module I18n::Backend::Gettext - protected - - def load_po(filename); end - def normalize(locale, data); end - def normalize_pluralization(locale, key, value); end - def parse(filename); end -end - -class I18n::Backend::Gettext::PoData < ::Hash - def set_comment(msgid_or_sym, comment); end -end - module I18n::Backend::InterpolationCompiler def interpolate(locale, string, values); end def store_translations(locale, data, options = T.unsafe(nil)); end @@ -424,7 +389,6 @@ module I18n::Gettext::Helpers end I18n::Gettext::PLURAL_SEPARATOR = T.let(T.unsafe(nil), String) -module I18n::HashRefinements; end I18n::INTERPOLATION_PATTERN = T.let(T.unsafe(nil), Regexp) class I18n::InvalidLocale < ::I18n::ArgumentError @@ -456,7 +420,7 @@ class I18n::Locale::Fallbacks < ::Hash def [](locale); end def defaults; end def defaults=(defaults); end - def map(mappings); end + def map(*args, &block); end protected @@ -552,12 +516,13 @@ module I18n::MissingTranslation::Base def to_s; end end +I18n::MissingTranslation::Base::PERMITTED_KEYS = T.let(T.unsafe(nil), Array) + class I18n::MissingTranslationData < ::I18n::ArgumentError include ::I18n::MissingTranslation::Base end I18n::RESERVED_KEYS = T.let(T.unsafe(nil), Array) -I18n::RESERVED_KEYS_PATTERN = T.let(T.unsafe(nil), Regexp) class I18n::ReservedInterpolationKey < ::I18n::ArgumentError def initialize(key, string); end @@ -580,6 +545,11 @@ module I18n::Tests::Interpolation; end module I18n::Tests::Link; end module I18n::Tests::Localization + include ::I18n::Tests::Localization::Date + include ::I18n::Tests::Localization::DateTime + include ::I18n::Tests::Localization::Procs + include ::I18n::Tests::Localization::Time + class << self def included(base); end end @@ -613,4 +583,17 @@ class I18n::UnknownFileType < ::I18n::ArgumentError def type; end end +module I18n::Utils + class << self + def deep_merge(hash, other_hash, &block); end + def deep_merge!(hash, other_hash, &block); end + def deep_symbolize_keys(hash); end + def except(hash, *keys); end + + private + + def deep_symbolize_keys_in_object(value); end + end +end + I18n::VERSION = T.let(T.unsafe(nil), String)
true
Other
Homebrew
brew
25e0597bd8549556dfba0bf763b9549aa643eb64.json
Update RBI files for i18n.
Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi
@@ -2417,48 +2417,6 @@ module Gem def self.remove_unresolved_default_spec(spec); end end -module GetText -end - -class GetText::PoParser - def _(x); end - - def _reduce_10(val, _values, result); end - - def _reduce_12(val, _values, result); end - - def _reduce_13(val, _values, result); end - - def _reduce_14(val, _values, result); end - - def _reduce_15(val, _values, result); end - - def _reduce_5(val, _values, result); end - - def _reduce_8(val, _values, result); end - - def _reduce_9(val, _values, result); end - - def _reduce_none(val, _values, result); end - - def on_comment(comment); end - - def on_message(msgid, msgstr); end - - def parse(str, data, ignore_fuzzy=T.unsafe(nil)); end - - def unescape(orig); end - Racc_arg = ::T.let(nil, ::T.untyped) - Racc_debug_parser = ::T.let(nil, ::T.untyped) - Racc_token_to_s_table = ::T.let(nil, ::T.untyped) -end - -class GetText::PoParser -end - -module GetText -end - module GitHub::API extend ::T::Private::Methods::MethodHooks extend ::T::Private::Methods::SingletonMethodHooks @@ -2779,26 +2737,6 @@ end module HostEnvironmentSimulatorHelper end -module I18n - def self.cache_key_digest(); end - - def self.cache_key_digest=(key_digest); end - - def self.cache_namespace(); end - - def self.cache_namespace=(namespace); end - - def self.cache_store(); end - - def self.cache_store=(store); end - - def self.fallbacks(); end - - def self.fallbacks=(fallbacks); end - - def self.perform_caching?(); end -end - class IO def beep(); end @@ -4376,8 +4314,6 @@ module RSpec::Core::MockingAdapters end class RSpec::Core::OutputWrapper - def as_json(*args, &block); end - def readline_nonblock(*args, &block); end end
true
Other
Homebrew
brew
6d0c6d0604f4e93920491851479776c9a8f5516e.json
ignore dependencies of build-time-dependency
Library/Homebrew/dependency.rb
@@ -124,6 +124,7 @@ def expand(dependent, deps = dependent.deps, cache_key: nil, ignore_missing: fal expanded_deps << dep else next if @expand_stack.include? dep.name + next if dep.tags.include?(:build) expanded_deps.concat(expand(dep.to_formula, cache_key: cache_key, ignore_missing: ignore_missing, &block)) expanded_deps << dep
false
Other
Homebrew
brew
4d7fbcdd46118ac4e3ad1b607aae400572fd7a0f.json
Update RBI files for rbi.
Library/Homebrew/sorbet/rbi/gems/rbi@0.0.10.rbi
@@ -327,10 +327,12 @@ end class RBI::Group::Kind < ::T::Enum enums do Mixins = new + RequiredAncestors = new Helpers = new TypeMembers = new MixesInClassMethods = new Sends = new + Attrs = new TStructFields = new TEnums = new Inits = new @@ -665,17 +667,17 @@ class RBI::Node def parent_tree=(_arg0); end - sig { params(out: T.any(IO, StringIO), indent: Integer, print_locs: T::Boolean).void } - def print(out: T.unsafe(nil), indent: T.unsafe(nil), print_locs: T.unsafe(nil)); end + sig { params(out: T.any(IO, StringIO), indent: Integer, print_locs: T::Boolean, max_line_length: T.nilable(Integer)).void } + def print(out: T.unsafe(nil), indent: T.unsafe(nil), print_locs: T.unsafe(nil), max_line_length: T.unsafe(nil)); end sig { params(v: RBI::Printer).void } def print_blank_line_before(v); end sig { params(node: RBI::Node).void } def replace(node); end - sig { params(indent: Integer, print_locs: T::Boolean).returns(String) } - def string(indent: T.unsafe(nil), print_locs: T.unsafe(nil)); end + sig { params(indent: Integer, print_locs: T::Boolean, max_line_length: T.nilable(Integer)).returns(String) } + def string(indent: T.unsafe(nil), print_locs: T.unsafe(nil), max_line_length: T.unsafe(nil)); end end class RBI::NodeWithComments < ::RBI::Node @@ -777,8 +779,11 @@ class RBI::Parser end class RBI::Printer < ::RBI::Visitor - sig { params(out: T.any(IO, StringIO), indent: Integer, print_locs: T::Boolean).void } - def initialize(out: T.unsafe(nil), indent: T.unsafe(nil), print_locs: T.unsafe(nil)); end + sig { params(out: T.any(IO, StringIO), indent: Integer, print_locs: T::Boolean, max_line_length: T.nilable(Integer)).void } + def initialize(out: T.unsafe(nil), indent: T.unsafe(nil), print_locs: T.unsafe(nil), max_line_length: T.unsafe(nil)); end + + sig { returns(Integer) } + def current_indent; end sig { void } def dedent; end @@ -789,6 +794,9 @@ class RBI::Printer < ::RBI::Visitor sig { void } def indent; end + sig { returns(T.nilable(Integer)) } + def max_line_length; end + sig { returns(T.nilable(RBI::Node)) } def previous_node; end @@ -842,6 +850,25 @@ class RBI::ReqParam < ::RBI::Param def ==(other); end end +class RBI::RequiresAncestor < ::RBI::NodeWithComments + include ::RBI::Indexable + + sig { params(name: String, loc: T.nilable(RBI::Loc), comments: T::Array[RBI::Comment]).void } + def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil)); end + + sig { override.params(v: RBI::Printer).void } + def accept_printer(v); end + + sig { override.returns(T::Array[String]) } + def index_ids; end + + sig { returns(String) } + def name; end + + sig { override.returns(String) } + def to_s; end +end + class RBI::RestParam < ::RBI::Param sig { params(name: String, loc: T.nilable(RBI::Loc), comments: T::Array[RBI::Comment], block: T.nilable(T.proc.params(node: RBI::RestParam).void)).void } def initialize(name, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end @@ -1059,6 +1086,9 @@ class RBI::Rewriters::SortNodes < ::RBI::Visitor sig { params(node: RBI::Node).returns(Integer) } def node_rank(node); end + + sig { params(node: RBI::Node).void } + def sort_node_names!(node); end end class RBI::Scope < ::RBI::Tree @@ -1180,6 +1210,17 @@ class RBI::Sig < ::RBI::Node sig { returns(T::Array[String]) } def type_params; end + + private + + sig { params(v: RBI::Printer).void } + def print_as_block(v); end + + sig { params(v: RBI::Printer).void } + def print_as_line(v); end + + sig { returns(T::Array[String]) } + def sig_modifiers; end end class RBI::SigBuilder < ::RBI::ASTVisitor @@ -1501,6 +1542,9 @@ class RBI::TreeBuilder < ::RBI::ASTVisitor sig { params(node: AST::Node).returns(RBI::Param) } def parse_param(node); end + sig { params(node: AST::Node).returns(RBI::RequiresAncestor) } + def parse_requires_ancestor(node); end + sig { params(node: AST::Node).returns(RBI::Scope) } def parse_scope(node); end
false
Other
Homebrew
brew
d7a6bcc9b8b73fd59a8bd166eedbfb8b9563779d.json
Update RBI files for rubocop-rspec.
Library/Homebrew/sorbet/rbi/gems/rubocop-rspec@2.8.0.rbi
@@ -381,13 +381,10 @@ class RuboCop::Cop::RSpec::EmptyLineAfterSubject < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::RSpec::FinalEndLocation include ::RuboCop::Cop::RangeHelp include ::RuboCop::Cop::RSpec::EmptyLineSeparation + include ::RuboCop::Cop::RSpec::InsideExampleGroup extend ::RuboCop::Cop::AutoCorrector def on_block(node); end - - private - - def in_spec_block?(node); end end RuboCop::Cop::RSpec::EmptyLineAfterSubject::MSG = T.let(T.unsafe(nil), String) @@ -891,6 +888,7 @@ end RuboCop::Cop::RSpec::IteratedExpectation::MSG = T.let(T.unsafe(nil), String) class RuboCop::Cop::RSpec::LeadingSubject < ::RuboCop::Cop::RSpec::Base + include ::RuboCop::Cop::RSpec::InsideExampleGroup extend ::RuboCop::Cop::AutoCorrector def check_previous_nodes(node); end @@ -899,7 +897,6 @@ class RuboCop::Cop::RSpec::LeadingSubject < ::RuboCop::Cop::RSpec::Base private def autocorrect(corrector, node, sibling); end - def in_spec_block?(node); end def offending?(node); end def offending_node(node); end def parent(node); end @@ -1478,14 +1475,15 @@ RuboCop::Cop::RSpec::SubjectDeclaration::MSG_REDUNDANT = T.let(T.unsafe(nil), St class RuboCop::Cop::RSpec::SubjectStub < ::RuboCop::Cop::RSpec::Base include ::RuboCop::Cop::RSpec::TopLevelGroup + def let?(param0 = T.unsafe(nil)); end def message_expectation?(param0 = T.unsafe(nil), param1); end def message_expectation_matcher?(param0); end def on_top_level_group(node); end - def subject(param0 = T.unsafe(nil)); end + def subject?(param0 = T.unsafe(nil)); end private - def find_all_explicit_subjects(node); end + def find_all_explicit(node); end def find_subject_expectations(node, subject_names = T.unsafe(nil), &block); end end
false
Other
Homebrew
brew
bfd88b5625db4943df0422d71309fb3b3a8287f8.json
shims/mac/super: add `gnumake` symlink Some builds look for a `gnumake` and execute that instead. This avoids our shims since macOS provides a `/usr/bin/gnumake`.
Library/Homebrew/shims/mac/super/gnumake
@@ -0,0 +1 @@ +make \ No newline at end of file
false
Other
Homebrew
brew
3364e519b5bebb136ad9606d6af42f4171691bfd.json
dev-cmd/bump-formula-pr: fix undefined method null error Fix a regression from 8b1fcc7c5c18ec970c30e712ab283d7703694523. Only if `version.nil?` is `Version.detect` used, so we can only use `version.null?` after that. (Otherwise, it's a string.) ``` Error: undefined method `null?' for "X.Y.Z":String Please report this issue: https://docs.brew.sh/Troubleshooting /usr/local/Homebrew/Library/Homebrew/dev-cmd/bump-formula-pr.rb:440:in `check_new_version' /usr/local/Homebrew/Library/Homebrew/dev-cmd/bump-formula-pr.rb:131:in `bump_formula_pr' /usr/local/Homebrew/Library/Homebrew/brew.rb:110:in `<main>' ```
Library/Homebrew/dev-cmd/bump-formula-pr.rb
@@ -435,10 +435,9 @@ def check_new_version(formula, tap_remote_repo, args:, version: nil, url: nil, t specs = {} specs[:tag] = tag if tag.present? version = Version.detect(url, **specs) + return if version.null? end - return if version.null? - check_throttle(formula, version) check_closed_pull_requests(formula, tap_remote_repo, args: args, version: version) end
false
Other
Homebrew
brew
4efaabce7cf858d3ce5c16425a12e6779a351e41.json
Update RBI files for bootsnap.
Library/Homebrew/sorbet/rbi/gems/bootsnap@1.10.2.rbi
@@ -129,8 +129,7 @@ Bootsnap::LoadPathCache::DLEXT = T.let(T.unsafe(nil), String) Bootsnap::LoadPathCache::DL_EXTENSIONS = T.let(T.unsafe(nil), Array) Bootsnap::LoadPathCache::DOT_RB = T.let(T.unsafe(nil), String) Bootsnap::LoadPathCache::DOT_SO = T.let(T.unsafe(nil), String) -Bootsnap::LoadPathCache::ERROR_TAG_IVAR = T.let(T.unsafe(nil), Symbol) -class Bootsnap::LoadPathCache::FallbackScan < ::StandardError; end +Bootsnap::LoadPathCache::FALLBACK_SCAN = T.let(T.unsafe(nil), BasicObject) class Bootsnap::LoadPathCache::LoadedFeaturesIndex def initialize; end @@ -197,7 +196,6 @@ class Bootsnap::LoadPathCache::RealpathCache def realpath(caller_location, path); end end -class Bootsnap::LoadPathCache::ReturnFalse < ::StandardError; end Bootsnap::LoadPathCache::SLASH = T.let(T.unsafe(nil), String) class Bootsnap::LoadPathCache::Store
false
Other
Homebrew
brew
fc88ce28876f4809f2d6c2544aa1273b2caafec3.json
Update RBI files for tapioca.
Library/Homebrew/sorbet/rbi/gems/tapioca@0.6.2.rbi
@@ -12,6 +12,9 @@ class ActiveRecordColumnTypeHelper private + sig { params(type: String).returns(String) } + def as_nilable_type(type); end + sig { params(constant: Module).returns(T::Boolean) } def do_not_generate_strong_types?(constant); end @@ -49,12 +52,18 @@ class DynamicMixinCompiler sig { returns(T::Boolean) } def empty_attributes?; end + sig { params(qualified_mixin_name: String).returns(T::Boolean) } + def filtered_mixin?(qualified_mixin_name); end + def instance_attribute_predicates; end sig { returns(T::Array[Symbol]) } def instance_attribute_readers; end def instance_attribute_writers; end + + sig { params(mod: Module, dynamic_extends: T::Array[Module]).returns(T::Boolean) } + def module_included_by_another_dynamic_extend?(mod, dynamic_extends); end end class Module @@ -219,8 +228,9 @@ module T::Generic::TypeStoragePatch def type_template(variance = T.unsafe(nil), fixed: T.unsafe(nil), lower: T.unsafe(nil), upper: T.unsafe(nil)); end end -module T::Types::Simple::GenericNamePatch +module T::Types::Simple::GenericPatch def name; end + def valid?(obj); end end module T::Types::Simple::NamePatch @@ -311,6 +321,9 @@ class Tapioca::Compilers::Dsl::Base sig { params(method_def: T.any(Method, UnboundMethod), signature: T.untyped).returns(T::Array[String]) } def parameters_types_from_signature(method_def, signature); end + sig { params(name: String).returns(T::Boolean) } + def valid_parameter_name?(name); end + class << self sig { params(name: String).returns(T.nilable(T.class_of(Tapioca::Compilers::Dsl::Base))) } def resolve(name); end @@ -397,9 +410,6 @@ class Tapioca::Compilers::RequiresCompiler sig { params(config: Spoom::Sorbet::Config, file_path: Pathname).returns(T::Boolean) } def file_ignored_by_sorbet?(config, file_path); end - sig { params(files: T::Enumerable[String], name: String).returns(T::Boolean) } - def name_in_project?(files, name); end - sig { params(path: Pathname).returns(T::Array[String]) } def path_parts(path); end end @@ -518,6 +528,9 @@ class Tapioca::Compilers::SymbolTable::SymbolGenerator sig { params(symbols: T::Set[String]).returns(T::Set[String]) } def engine_symbols(symbols); end + sig { params(mixin_name: String).returns(T::Boolean) } + def filtered_mixin?(mixin_name); end + sig { params(tree: RBI::Tree, symbol: String).void } def generate_from_symbol(tree, symbol); end @@ -568,6 +581,9 @@ class Tapioca::Compilers::SymbolTable::SymbolGenerator sig { params(name: String).returns(T::Boolean) } def valid_method_name?(name); end + + sig { params(name: String).returns(T::Boolean) } + def valid_parameter_name?(name); end end Tapioca::Compilers::SymbolTable::SymbolGenerator::IGNORED_COMMENTS = T.let(T.unsafe(nil), Array) @@ -629,6 +645,9 @@ module Tapioca::ConfigHelper private + sig { params(msg: String).returns(Tapioca::ConfigHelper::ConfigError) } + def build_error(msg); end + sig { params(options: Thor::CoreExt::HashWithIndifferentAccess).returns(Thor::CoreExt::HashWithIndifferentAccess) } def config_options(options); end @@ -637,6 +656,32 @@ module Tapioca::ConfigHelper sig { params(options: T.nilable(Thor::CoreExt::HashWithIndifferentAccess)).returns(Thor::CoreExt::HashWithIndifferentAccess) } def merge_options(*options); end + + sig { params(config_file: String, errors: T::Array[Tapioca::ConfigHelper::ConfigError]).void } + def print_errors(config_file, errors); end + + sig { params(config_file: String, config: T::Hash[T.untyped, T.untyped]).void } + def validate_config!(config_file, config); end + + sig { params(command_options: T::Hash[Symbol, Thor::Option], config_key: String, config_options: T::Hash[T.untyped, T.untyped]).returns(T::Array[Tapioca::ConfigHelper::ConfigError]) } + def validate_config_options(command_options, config_key, config_options); end +end + +class Tapioca::ConfigHelper::ConfigError < ::T::Struct + const :message_parts, T::Array[Tapioca::ConfigHelper::ConfigErrorMessagePart] + + class << self + def inherited(s); end + end +end + +class Tapioca::ConfigHelper::ConfigErrorMessagePart < ::T::Struct + const :colors, T::Array[Symbol] + const :message, String + + class << self + def inherited(s); end + end end Tapioca::DEFAULT_COMMAND = T.let(T.unsafe(nil), String) @@ -739,7 +784,10 @@ class Tapioca::Gemfile::GemSpec private - sig { returns(T::Boolean) } + sig { returns(T::Array[Pathname]) } + def collect_files; end + + sig { returns(T.nilable(T::Boolean)) } def default_gem?; end sig { returns(T::Boolean) } @@ -754,8 +802,11 @@ class Tapioca::Gemfile::GemSpec sig { params(path: String).returns(T::Boolean) } def has_parent_gemspec?(path); end - sig { returns(Pathname) } - def ruby_lib_dir; end + sig { returns(Regexp) } + def require_paths_prefix_matcher; end + + sig { params(file: String).returns(Pathname) } + def resolve_to_ruby_lib_dir(file); end sig { params(path: T.any(Pathname, String)).returns(String) } def to_realpath(path); end @@ -769,10 +820,10 @@ Tapioca::Gemfile::Spec = T.type_alias { T.any(Bundler::StubSpecification, Gem::S module Tapioca::Generators; end class Tapioca::Generators::Base - include ::Tapioca::CliHelper include ::Thor::Base include ::Thor::Invocation include ::Thor::Shell + include ::Tapioca::CliHelper extend ::Thor::Base::ClassMethods extend ::Thor::Invocation::ClassMethods @@ -990,13 +1041,16 @@ end module Tapioca::GenericTypeRegistry class << self - sig { params(constant: Module).returns(T.nilable(T::Hash[T.any(Tapioca::TypeMember, Tapioca::TypeTemplate), String])) } + sig { params(instance: Object).returns(T::Boolean) } + def generic_type_instance?(instance); end + + sig { params(constant: Module).returns(T.nilable(T::Array[Tapioca::TypeVariableModule])) } def lookup_type_variables(constant); end sig { params(constant: T.untyped, types: T.untyped).returns(Module) } def register_type(constant, types); end - sig { params(constant: T.untyped, type_variable: T.any(Tapioca::TypeMember, Tapioca::TypeTemplate)).void } + sig { params(constant: T.untyped, type_variable: Tapioca::TypeVariableModule).void } def register_type_variable(constant, type_variable); end private @@ -1007,13 +1061,11 @@ module Tapioca::GenericTypeRegistry sig { params(constant: Class).returns(Class) } def create_safe_subclass(constant); end - sig { params(constant: Module).returns(T::Hash[T.any(Tapioca::TypeMember, Tapioca::TypeTemplate), String]) } + sig { params(constant: Module).returns(T::Array[Tapioca::TypeVariableModule]) } def lookup_or_initialize_type_variables(constant); end end end -Tapioca::GenericTypeRegistry::TypeVariable = T.type_alias { T.any(Tapioca::TypeMember, Tapioca::TypeTemplate) } - class Tapioca::Loader sig { params(gemfile: Tapioca::Gemfile, initialize_file: T.nilable(String), require_file: T.nilable(String)).void } def load_bundle(gemfile, initialize_file, require_file); end @@ -1159,44 +1211,27 @@ class Tapioca::Trackers::Mixin::Type < ::T::Enum end end -class Tapioca::TypeMember < ::T::Types::TypeMember - sig { params(variance: Symbol, fixed: T.untyped, lower: T.untyped, upper: T.untyped).void } - def initialize(variance, fixed, lower, upper); end - - sig { returns(T.untyped) } - def fixed; end - - def lower; end +class Tapioca::TypeVariableModule < ::Module + sig { params(context: Module, type: Tapioca::TypeVariableModule::Type, variance: Symbol, fixed: T.untyped, lower: T.untyped, upper: T.untyped).void } + def initialize(context, type, variance, fixed, lower, upper); end sig { returns(T.nilable(String)) } def name; end - def name=(_arg0); end - sig { returns(String) } def serialize; end - def upper; end -end - -class Tapioca::TypeTemplate < ::T::Types::TypeTemplate - sig { params(variance: Symbol, fixed: T.untyped, lower: T.untyped, upper: T.untyped).void } - def initialize(variance, fixed, lower, upper); end - - sig { returns(T.untyped) } - def fixed; end - - def lower; end - - sig { returns(T.nilable(String)) } - def name; end - - def name=(_arg0); end + private - sig { returns(String) } - def serialize; end + sig { type_parameters(:Result).params(block: T.proc.returns(T.type_parameter(:Result))).returns(T.type_parameter(:Result)) } + def with_bound_name_pre_3_0(&block); end +end - def upper; end +class Tapioca::TypeVariableModule::Type < ::T::Enum + enums do + Member = new + Template = new + end end Tapioca::VERSION = T.let(T.unsafe(nil), String)
false
Other
Homebrew
brew
a17f41680da6f40d48d7092b656abf73322bcc2e.json
Combine Linux and macOS maintainers on the README
Library/Homebrew/dev-cmd/generate-man-completions.rb
@@ -79,9 +79,6 @@ def build_man_page(quiet:) variables[:tsc] = readme.read[/(Homebrew's \[Technical Steering Committee.*\.)/, 1] .gsub(/\[([^\]]+)\]\([^)]+\)/, '\1') - variables[:linux] = - readme.read[/(Homebrew's Linux maintainers .*\.)/, 1] - .gsub(/\[([^\]]+)\]\([^)]+\)/, '\1') variables[:maintainers] = readme.read[/(Homebrew's other current maintainers .*\.)/, 1] .gsub(/\[([^\]]+)\]\([^)]+\)/, '\1')
true
Other
Homebrew
brew
a17f41680da6f40d48d7092b656abf73322bcc2e.json
Combine Linux and macOS maintainers on the README
Library/Homebrew/dev-cmd/update-maintainers.rb
@@ -28,9 +28,8 @@ def update_maintainers public_members = GitHub.public_member_usernames("Homebrew") members = { - plc: GitHub.members_by_team("Homebrew", "plc"), - tsc: GitHub.members_by_team("Homebrew", "tsc"), - linux: GitHub.members_by_team("Homebrew", "linux"), + plc: GitHub.members_by_team("Homebrew", "plc"), + tsc: GitHub.members_by_team("Homebrew", "tsc"), } members[:other] = GitHub.members_by_team("Homebrew", "maintainers") .except(*members.values.map(&:keys).flatten.uniq) @@ -49,8 +48,6 @@ def update_maintainers "\\1 is #{sentences[:plc]}.") content.gsub!(/(Homebrew's \[Technical Steering Committee.*) is .*\./, "\\1 is #{sentences[:tsc]}.") - content.gsub!(/(Homebrew's Linux maintainers are).*\./, - "\\1 #{sentences[:linux]}.") content.gsub!(/(Homebrew's other current maintainers are).*\./, "\\1 #{sentences[:other]}.")
true
Other
Homebrew
brew
a17f41680da6f40d48d7092b656abf73322bcc2e.json
Combine Linux and macOS maintainers on the README
Library/Homebrew/manpages/brew.1.md.erb
@@ -177,8 +177,6 @@ Homebrew API: <https://rubydoc.brew.sh> <%= tsc.concat("\n") %> -<%= linux.concat("\n") %> - <%= maintainers.concat("\n") %> <%= alumni.concat("\n") %>
true
Other
Homebrew
brew
a17f41680da6f40d48d7092b656abf73322bcc2e.json
Combine Linux and macOS maintainers on the README
README.md
@@ -46,9 +46,7 @@ Homebrew's [Project Leadership Committee](https://docs.brew.sh/Homebrew-Governan Homebrew's [Technical Steering Committee](https://docs.brew.sh/Homebrew-Governance#7-technical-steering-committee) is [Bo Anderson](https://github.com/Bo98), [FX Coudert](https://github.com/fxcoudert), [Michka Popoff](https://github.com/iMichka), [Mike McQuaid](https://github.com/MikeMcQuaid) and [Rylan Polster](https://github.com/Rylan12). -Homebrew's Linux maintainers are [Daniel Nachun](https://github.com/danielnachun), [Dawid Dziurla](https://github.com/dawidd6), [Issy Long](https://github.com/issyl0), [Jonathan Chang](https://github.com/jonchang), [Michka Popoff](https://github.com/iMichka) and [Shaun Jackman](https://github.com/sjackman). - -Homebrew's other current maintainers are [Alexander Bayandin](https://github.com/bayandin), [Bevan Kay](https://github.com/bevanjkay), [Branch Vincent](https://github.com/branchvincent), [Caleb Xu](https://github.com/alebcay), [Carlo Cabrera](https://github.com/carlocab), [Connor](https://github.com/cnnrmnn), [Dustin Rodrigues](https://github.com/dtrodrigues), [Eric Knibbe](https://github.com/EricFromCanada), [George Adams](https://github.com/gdams), [Maxim Belkin](https://github.com/maxim-belkin), [Miccal Matthews](https://github.com/miccal), [Michael Cho](https://github.com/cho-m), [Nanda H Krishna](https://github.com/nandahkrishna), [Randall](https://github.com/ran-dall), [Sam Ford](https://github.com/samford), [Steve Peters](https://github.com/scpeters), [Thierry Moisan](https://github.com/Moisan), [Tom Schoonjans](https://github.com/tschoonj), [Vítor Galvão](https://github.com/vitorgalvao) and [rui](https://github.com/chenrui333). +Homebrew's other current maintainers are [Alexander Bayandin](https://github.com/bayandin), [Bevan Kay](https://github.com/bevanjkay), [Branch Vincent](https://github.com/branchvincent), [Caleb Xu](https://github.com/alebcay), [Carlo Cabrera](https://github.com/carlocab), [Connor](https://github.com/cnnrmnn), [Daniel Nachun](https://github.com/danielnachun), [Dawid Dziurla](https://github.com/dawidd6), [Dustin Rodrigues](https://github.com/dtrodrigues), [Eric Knibbe](https://github.com/EricFromCanada), [George Adams](https://github.com/gdams), [Maxim Belkin](https://github.com/maxim-belkin), [Miccal Matthews](https://github.com/miccal), [Michael Cho](https://github.com/cho-m), [Nanda H Krishna](https://github.com/nandahkrishna), [Randall](https://github.com/ran-dall), [Sam Ford](https://github.com/samford), [Shaun Jackman](https://github.com/sjackman), [Steve Peters](https://github.com/scpeters), [Thierry Moisan](https://github.com/Moisan), [Tom Schoonjans](https://github.com/tschoonj), [Vítor Galvão](https://github.com/vitorgalvao) and [rui](https://github.com/chenrui333). Former maintainers with significant contributions include [Jan Viljanen](https://github.com/javian), [JCount](https://github.com/jcount), [commitay](https://github.com/commitay), [Dominyk Tiller](https://github.com/DomT4), [Tim Smith](https://github.com/tdsmith), [Baptiste Fontaine](https://github.com/bfontaine), [Xu Cheng](https://github.com/xu-cheng), [Martin Afanasjew](https://github.com/UniqMartin), [Brett Koonce](https://github.com/asparagui), [Charlie Sharpsteen](https://github.com/Sharpie), [Jack Nagel](https://github.com/jacknagel), [Adam Vandenberg](https://github.com/adamv), [Andrew Janke](https://github.com/apjanke), [Alex Dunn](https://github.com/dunn), [neutric](https://github.com/neutric), [Tomasz Pajor](https://github.com/nijikon), [Uladzislau Shablinski](https://github.com/vladshablinsky), [Alyssa Ross](https://github.com/alyssais), [ilovezfs](https://github.com/ilovezfs), [Chongyu Zhu](https://github.com/lembacon) and Homebrew's creator: [Max Howell](https://github.com/mxcl).
true
Other
Homebrew
brew
a17f41680da6f40d48d7092b656abf73322bcc2e.json
Combine Linux and macOS maintainers on the README
docs/Manpage.md
@@ -2208,9 +2208,7 @@ Homebrew's Project Leadership Committee is Issy Long, Jonathan Chang, Markus Rei Homebrew's Technical Steering Committee is Bo Anderson, FX Coudert, Michka Popoff, Mike McQuaid and Rylan Polster. -Homebrew's Linux maintainers are Daniel Nachun, Dawid Dziurla, Issy Long, Jonathan Chang, Michka Popoff and Shaun Jackman. - -Homebrew's other current maintainers are Alexander Bayandin, Bevan Kay, Branch Vincent, Caleb Xu, Carlo Cabrera, Connor, Dustin Rodrigues, Eric Knibbe, George Adams, Maxim Belkin, Miccal Matthews, Michael Cho, Nanda H Krishna, Randall, Sam Ford, Steve Peters, Thierry Moisan, Tom Schoonjans, Vítor Galvão and rui. +Homebrew's other current maintainers are Alexander Bayandin, Bevan Kay, Branch Vincent, Caleb Xu, Carlo Cabrera, Connor, Daniel Nachun, Dawid Dziurla, Dustin Rodrigues, Eric Knibbe, George Adams, Maxim Belkin, Miccal Matthews, Michael Cho, Nanda H Krishna, Randall, Sam Ford, Shaun Jackman, Steve Peters, Thierry Moisan, Tom Schoonjans, Vítor Galvão and rui. Former maintainers with significant contributions include Jan Viljanen, JCount, commitay, Dominyk Tiller, Tim Smith, Baptiste Fontaine, Xu Cheng, Martin Afanasjew, Brett Koonce, Charlie Sharpsteen, Jack Nagel, Adam Vandenberg, Andrew Janke, Alex Dunn, neutric, Tomasz Pajor, Uladzislau Shablinski, Alyssa Ross, ilovezfs, Chongyu Zhu and Homebrew's creator: Max Howell.
true
Other
Homebrew
brew
a17f41680da6f40d48d7092b656abf73322bcc2e.json
Combine Linux and macOS maintainers on the README
manpages/brew.1
@@ -3246,10 +3246,7 @@ Homebrew\'s Project Leadership Committee is Issy Long, Jonathan Chang, Markus Re Homebrew\'s Technical Steering Committee is Bo Anderson, FX Coudert, Michka Popoff, Mike McQuaid and Rylan Polster\. . .P -Homebrew\'s Linux maintainers are Daniel Nachun, Dawid Dziurla, Issy Long, Jonathan Chang, Michka Popoff and Shaun Jackman\. -. -.P -Homebrew\'s other current maintainers are Alexander Bayandin, Bevan Kay, Branch Vincent, Caleb Xu, Carlo Cabrera, Connor, Dustin Rodrigues, Eric Knibbe, George Adams, Maxim Belkin, Miccal Matthews, Michael Cho, Nanda H Krishna, Randall, Sam Ford, Steve Peters, Thierry Moisan, Tom Schoonjans, Vitor Galvao and rui\. +Homebrew\'s other current maintainers are Alexander Bayandin, Bevan Kay, Branch Vincent, Caleb Xu, Carlo Cabrera, Connor, Daniel Nachun, Dawid Dziurla, Dustin Rodrigues, Eric Knibbe, George Adams, Maxim Belkin, Miccal Matthews, Michael Cho, Nanda H Krishna, Randall, Sam Ford, Shaun Jackman, Steve Peters, Thierry Moisan, Tom Schoonjans, Vitor Galvao and rui\. . .P Former maintainers with significant contributions include Jan Viljanen, JCount, commitay, Dominyk Tiller, Tim Smith, Baptiste Fontaine, Xu Cheng, Martin Afanasjew, Brett Koonce, Charlie Sharpsteen, Jack Nagel, Adam Vandenberg, Andrew Janke, Alex Dunn, neutric, Tomasz Pajor, Uladzislau Shablinski, Alyssa Ross, ilovezfs, Chongyu Zhu and Homebrew\'s creator: Max Howell\.
true
Other
Homebrew
brew
30fcaa3ac152b0caef5f1674961f3964e9a35eea.json
Update RBI files for rspec-sorbet.
Library/Homebrew/sorbet/rbi/gems/rspec-sorbet@1.8.1.rbi
@@ -1,9 +1,9 @@ +# typed: true + # DO NOT EDIT MANUALLY # This is an autogenerated file for types exported from the `rspec-sorbet` gem. # Please instead update this file by running `bin/tapioca gem rspec-sorbet`. -# typed: true - module RSpec extend ::RSpec::Support::Warnings extend ::RSpec::Core::Warnings
false
Other
Homebrew
brew
0b7693b6c99eb60a6ca88579404f4ffa4986aef4.json
Update RBI files for msgpack.
Library/Homebrew/sorbet/rbi/gems/msgpack@1.4.3.rbi
@@ -1,9 +1,9 @@ +# typed: true + # DO NOT EDIT MANUALLY # This is an autogenerated file for types exported from the `msgpack` gem. # Please instead update this file by running `bin/tapioca gem msgpack`. -# typed: true - class Array include ::Enumerable include ::JSON::Ext::Generator::GeneratorMethods::Array @@ -145,10 +145,8 @@ end class String include ::Comparable - include ::Colorize::InstanceMethods include ::JSON::Ext::Generator::GeneratorMethods::String include ::MessagePack::CoreExt - extend ::Colorize::ClassMethods extend ::JSON::Ext::Generator::GeneratorMethods::String::Extend private @@ -163,8 +161,6 @@ class Symbol include ::Comparable include ::MessagePack::CoreExt - def to_msgpack_ext; end - private def to_msgpack_with_packer(packer); end
true
Other
Homebrew
brew
0b7693b6c99eb60a6ca88579404f4ffa4986aef4.json
Update RBI files for msgpack.
Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi
@@ -6810,6 +6810,10 @@ class Struct def filter(*arg); end end +class Symbol + def to_msgpack_ext(); end +end + class SystemCommand::Result extend ::T::Private::Methods::MethodHooks extend ::T::Private::Methods::SingletonMethodHooks
true
Other
Homebrew
brew
0b7693b6c99eb60a6ca88579404f4ffa4986aef4.json
Update RBI files for msgpack.
Library/Homebrew/sorbet/rbi/todo.rbi
@@ -2,8 +2,6 @@ # srb rbi todo # typed: strong -module ::Colorize::ClassMethods; end -module ::Colorize::InstanceMethods; end module ::StackProf; end module T::InterfaceWrapper::Helpers; end module T::Private::Abstract::Hooks; end
true
Other
Homebrew
brew
b1fae797a29fc2e80d5c17f6ed8076e4c9b77a00.json
Update RBI files for rubocop.
Library/Homebrew/sorbet/rbi/gems/rubocop@1.25.0.rbi
@@ -1742,7 +1742,9 @@ module RuboCop::Cop::HashShorthandSyntax private def enforced_shorthand_syntax; end + def node_with_block_and_arguments?(node); end def require_hash_value?(hash_key_source, node); end + def without_parentheses?(node); end def without_parentheses_call_expr_follows?(node); end end @@ -1963,11 +1965,14 @@ class RuboCop::Cop::Layout::ArgumentAlignment < ::RuboCop::Cop::Base private + def arguments_or_first_arg_pairs(node); end + def arguments_with_last_arg_pairs(node); end def autocorrect(corrector, node); end def base_column(node, first_argument); end def fixed_indentation?; end + def flattened_arguments(node); end def message(_node); end - def multiple_arguments?(node, first_argument); end + def multiple_arguments?(node); end def target_method_lineno(node); end end @@ -6529,9 +6534,10 @@ class RuboCop::Cop::Naming::BlockForwarding < ::RuboCop::Cop::Base private def anonymous_block_argument?(node); end + def block_forwarding_name; end def expected_block_forwarding_style?(node, last_argument); end def explicit_block_argument?(node); end - def register_offense(block_argument); end + def register_offense(block_argument, node); end def use_block_argument_as_local_variable?(node, last_argument); end def use_kwarg_in_method_definition?(node); end end @@ -11549,20 +11555,21 @@ class RuboCop::Cop::Style::TernaryParentheses < ::RuboCop::Cop::Base def method_name(param0 = T.unsafe(nil)); end def on_if(node); end - def only_closing_parenthesis_is_last_line?(condition); end private def autocorrect(corrector, node); end def below_ternary_precedence?(child); end def complex_condition?(condition); end + def condition_as_parenthesized_one_line_pattern_matching?(condition); end def correct_parenthesized(corrector, condition); end def correct_unparenthesized(corrector, condition); end def infinite_loop?; end def message(node); end def non_complex_expression?(condition); end def non_complex_send?(node); end def offense?(node); end + def only_closing_parenthesis_is_last_line?(condition); end def parenthesized?(node); end def redundant_parentheses_enabled?; end def require_parentheses?; end
false
Other
Homebrew
brew
847bc140e1c4648bacb8fc47278363a116c18c99.json
Update RBI files for mechanize.
Library/Homebrew/sorbet/rbi/gems/mechanize@2.8.4.rbi
@@ -192,6 +192,10 @@ end class Mechanize::CookieJar < ::HTTP::CookieJar def load(input, *options); end def save(output, *options); end + + private + + def load_yaml(yaml); end end module Mechanize::CookieJarIMethods
false
Other
Homebrew
brew
ffb3c9cff9bf56b9f920f6b8ae84d38c2bc34a2b.json
Fuse the `rpath` loops. We previously looped twice over the `rpath`s, but we actually only need to do that once.
Library/Homebrew/extend/os/mac/keg_relocate.rb
@@ -54,21 +54,20 @@ def fix_dynamic_linkage change_install_name(bad_name, new_name, file) unless new_name == bad_name end - # Count duplicate rpaths. We need to keep track of this ourselves - # because the MachO data is cached and this cache is not updated - # after modification with #delete_rpath. - rpath_dupe_count = Hash.new { |h, k| h[k] = -1 } - file.rpaths.each do |rpath| - rpath_dupe_count[rpath] += 1 - end + # Keep track of the rpath counts for deletion of duplicates. + # We need to track this here since we cache the MachO data [0] + # and this cache is not updated after modification with #delete_rpath. + # + # [0] See os/mac/mach.rb. + rpath_count = Hash.new { |h, k| h[k] = file.rpaths.count(k) } each_linkage_for(file, :rpaths) do |bad_name| - # Strip duplicate rpaths and rpaths rooted in the build directory + # Strip duplicate rpaths and rpaths rooted in the build directory. next if !bad_name.start_with?(HOMEBREW_TEMP.to_s) && !bad_name.start_with?(HOMEBREW_TEMP.realpath.to_s) && - (rpath_dupe_count[bad_name] <= 0) + (rpath_count[bad_name] == 1) - rpath_dupe_count[bad_name] -= 1 + rpath_count[bad_name] -= 1 delete_rpath(bad_name, file) end end
false
Other
Homebrew
brew
121771f1a660dc1adb946629b812ab29abb21bdf.json
Apply suggestions from code review Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
docs/Deprecating-Disabling-and-Removing-Formulae.md
@@ -18,11 +18,11 @@ A formula should be deprecated to indicate to users that the formula should not The most common reasons for deprecation are when the upstream project is deprecated, unmaintained, or archived. -Formulae with dependents should **not** be deprecated unless: +Formulae with dependents should **only** be deprecated if any of the below are true: -- all of its dependents are also deprecated; -- the formula does not build on any of our supported platforms; or, -- the formula has outstanding CVEs. +- its dependents are all deprecated +- the formula does not build on any of our supported macOS versions and on Linux +- the formula has outstanding CVEs To deprecate a formula, add a `deprecate!` call. This call should include a deprecation date (in the ISO 8601 format) and a deprecation reason: @@ -47,7 +47,7 @@ The most common reasons for disabling a formula are: - the upstream repository has been removed - the project has no license -Formulae should not be disabled without a reasonable deprecation period unless the circumstances are exceptional (e.g. the formula does not build). How long a reasonable period is depends on the formula's usage statistics. Popular formulae should have longer deprecation periods. We should aim to have a formula deprecated for at least three months before disabling it. +Formulae should not be disabled without a deprecation period of at least three months unless the circumstances are exceptional (e.g. the formula does not build on any supported macOS version or Linux). How long a reasonable period is depends on the formula's usage statistics. Popular formulae should have longer deprecation periods. **Note: disabled formulae in homebrew/core will be automatically removed one year after their disable date**
false
Other
Homebrew
brew
57fae524de41a7e9f149f9c87d6cdfd633d0556c.json
extend/os/mac/keg_relocate: fix duplicate RPATH handling ruby-macho chokes on changing duplicate RPATHs, so we need to strip the duplicates before trying to relocate them. This continues #11405. We need this to unblock Homebrew/homebrew-core#91224. While we're here, let's get rid of `HOMEBREW_RELOCATE_RPATHS`. We've been using it for nearly a year with essentially no problems (barring `pdnsrec`), so I think it is safe to do unconditionally.
Library/Homebrew/extend/os/mac/keg_relocate.rb
@@ -31,11 +31,9 @@ def relocate_dynamic_linkage(relocation) change_install_name(old_name, new_name, file) if new_name end - if ENV["HOMEBREW_RELOCATE_RPATHS"] - each_linkage_for(file, :rpaths) do |old_name| - new_name = relocated_name_for(old_name, relocation) - change_rpath(old_name, new_name, file) if new_name - end + each_linkage_for(file, :rpaths) do |old_name| + new_name = relocated_name_for(old_name, relocation) + change_rpath(old_name, new_name, file) if new_name end end end @@ -56,11 +54,21 @@ def fix_dynamic_linkage change_install_name(bad_name, new_name, file) unless new_name == bad_name end + # Count duplicate rpaths. We need to keep track of this ourselves + # because the MachO data is cached and this cache is not updated + # after modification with #delete_rpath. + rpath_dupe_count = Hash.new { |h, k| h[k] = -1 } + file.rpaths.each do |rpath| + rpath_dupe_count[rpath] += 1 + end + each_linkage_for(file, :rpaths) do |bad_name| - # Strip rpaths rooted in the build directory + # Strip duplicate rpaths and rpaths rooted in the build directory next if !bad_name.start_with?(HOMEBREW_TEMP.to_s) && - !bad_name.start_with?(HOMEBREW_TEMP.realpath.to_s) + !bad_name.start_with?(HOMEBREW_TEMP.realpath.to_s) && + (rpath_dupe_count[bad_name] <= 0) + rpath_dupe_count[bad_name] -= 1 delete_rpath(bad_name, file) end end
true
Other
Homebrew
brew
57fae524de41a7e9f149f9c87d6cdfd633d0556c.json
extend/os/mac/keg_relocate: fix duplicate RPATH handling ruby-macho chokes on changing duplicate RPATHs, so we need to strip the duplicates before trying to relocate them. This continues #11405. We need this to unblock Homebrew/homebrew-core#91224. While we're here, let's get rid of `HOMEBREW_RELOCATE_RPATHS`. We've been using it for nearly a year with essentially no problems (barring `pdnsrec`), so I think it is safe to do unconditionally.
Library/Homebrew/formula_installer.rb
@@ -1229,11 +1229,7 @@ def pour keg = Keg.new(formula.prefix) skip_linkage = formula.bottle_specification.skip_relocation? - # TODO: Remove `with_env` when bottles are built with RPATH relocation enabled - # https://github.com/Homebrew/brew/issues/11329 - with_env(HOMEBREW_RELOCATE_RPATHS: "1") do - keg.replace_placeholders_with_locations tab.changed_files, skip_linkage: skip_linkage - end + keg.replace_placeholders_with_locations tab.changed_files, skip_linkage: skip_linkage end sig { params(output: T.nilable(String)).void }
true
Other
Homebrew
brew
e4e3b8ad2d8e021f729a2d2299021acce3085c18.json
Revert "extend/os/mac/keg_relocate: fix relocation of duplicate `RPATH`s" Upon reflection, I realised that this is probably a bug in `ruby-macho`, and should be fixed there instead. Needs https://github.com/Homebrew/ruby-macho/pull/362. This reverts commit e8b5eb7e42c925b7cc10c78a029b8c70e4d7965b.
Library/Homebrew/extend/os/mac/keg_relocate.rb
@@ -94,7 +94,6 @@ def fixed_name(file, bad_name) def each_linkage_for(file, linkage_type, &block) links = file.method(linkage_type) .call - .uniq .grep_v(/^@(loader_|executable_|r)path/) links.each(&block) end
false
Other
Homebrew
brew
8ac70335bdceae2f354f9960991e1e591f62fde5.json
Update RBI files for rubocop-rails.
Library/Homebrew/sorbet/rbi/gems/rubocop-rails@2.13.2.rbi
@@ -109,6 +109,14 @@ class RuboCop::Cop::IndexMethod::Captures < ::Struct end RuboCop::Cop::IndexMethod::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) + +module RuboCop::Cop::MigrationsHelper + extend ::RuboCop::AST::NodePattern::Macros + + def in_migration?(node); end + def migration_class?(param0 = T.unsafe(nil)); end +end + module RuboCop::Cop::Rails; end class RuboCop::Cop::Rails::ActionFilter < ::RuboCop::Cop::Base @@ -398,6 +406,7 @@ class RuboCop::Cop::Rails::CompactBlank < ::RuboCop::Cop::Base def offense_range(node); end def preferred_method(node); end def use_hash_value_block_argument?(arguments, receiver_in_block); end + def use_single_value_block_argument?(arguments, receiver_in_block); end end RuboCop::Cop::Rails::CompactBlank::MSG = T.let(T.unsafe(nil), String) @@ -947,6 +956,7 @@ class RuboCop::Cop::Rails::InverseOf < ::RuboCop::Cop::Base private + def ignore_scopes?; end def message(options); end end @@ -1254,8 +1264,11 @@ class RuboCop::Cop::Rails::ReadWriteAttribute < ::RuboCop::Cop::Base private - def message(node); end + def build_message(node); end + def multi_line_message(node); end + def node_replacement(node); end def read_attribute_replacement(node); end + def single_line_message(node); end def within_shadowing_method?(node); end def write_attribute_replacement(node); end end @@ -1464,6 +1477,8 @@ RuboCop::Cop::Rails::RequireDependency::MSG = T.let(T.unsafe(nil), String) RuboCop::Cop::Rails::RequireDependency::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array) class RuboCop::Cop::Rails::ReversibleMigration < ::RuboCop::Cop::Base + include ::RuboCop::Cop::MigrationsHelper + def change_table_call(param0 = T.unsafe(nil)); end def drop_table_call(param0 = T.unsafe(nil)); end def irreversible_schema_statement_call(param0 = T.unsafe(nil)); end @@ -1494,8 +1509,9 @@ end RuboCop::Cop::Rails::ReversibleMigration::MSG = T.let(T.unsafe(nil), String) class RuboCop::Cop::Rails::ReversibleMigrationMethodDefinition < ::RuboCop::Cop::Base + include ::RuboCop::Cop::MigrationsHelper + def change_method?(param0 = T.unsafe(nil)); end - def migration_class?(param0 = T.unsafe(nil)); end def on_class(node); end def up_and_down_methods?(param0 = T.unsafe(nil)); end end
true
Other
Homebrew
brew
8ac70335bdceae2f354f9960991e1e591f62fde5.json
Update RBI files for rubocop-rails.
Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi
@@ -5099,7 +5099,6 @@ class RuboCop::AST::NodePattern::Parser end module RuboCop::AST::NodePattern::Sets - SET_BLANK_EMPTY = ::T.let(nil, ::T.untyped) SET_BUILD_RECOMMENDED_TEST_OPTIONAL = ::T.let(nil, ::T.untyped) SET_CHANGE_COLUMN_EXECUTE = ::T.let(nil, ::T.untyped) SET_DEPENDS_ON_USES_FROM_MACOS = ::T.let(nil, ::T.untyped)
true
Other
Homebrew
brew
c3beda3ca1780cdbe63fb36bedb3e9a6b61a6dc4.json
Update RBI files for bootsnap.
Library/Homebrew/sorbet/rbi/gems/bootsnap@1.10.1.rbi
@@ -32,6 +32,7 @@ end class Bootsnap::CompileCache::Error < ::StandardError; end class Bootsnap::CompileCache::PermissionError < ::Bootsnap::CompileCache::Error; end +Bootsnap::CompileCache::UNCOMPILABLE = T.let(T.unsafe(nil), BasicObject) module Bootsnap::ExplicitRequire class << self @@ -72,13 +73,13 @@ class Bootsnap::LoadPathCache::Cache def dir_changed?; end def expand_path(feature); end - def maybe_append_extension(f); end + def maybe_append_extension(feature); end def now; end def push_paths_locked(*paths); end - def search_index(f, try_extensions: T.unsafe(nil)); end + def search_index(feature, try_extensions: T.unsafe(nil)); end def stale?; end - def try_ext(f); end - def try_index(f); end + def try_ext(feature); end + def try_index(feature); end def unshift_paths_locked(*paths); end end @@ -134,15 +135,17 @@ class Bootsnap::LoadPathCache::FallbackScan < ::StandardError; end class Bootsnap::LoadPathCache::LoadedFeaturesIndex def initialize; end + def cursor(short); end + def identify(short, cursor); end def key?(feature); end def purge(feature); end def purge_multi(features); end - def register(short, long = T.unsafe(nil)); end + def register(short, long); end private - def extension_elidable?(f); end - def strip_extension_if_elidable(f); end + def extension_elidable?(feature); end + def strip_extension_if_elidable(feature); end end Bootsnap::LoadPathCache::LoadedFeaturesIndex::STRIP_EXTENSION = T.let(T.unsafe(nil), Regexp)
false
Other
Homebrew
brew
753c852eba5ebeb1c0d139a2488cb971198b00c4.json
Adapt DNSimple logo to system appearance
README.md
@@ -84,7 +84,8 @@ Flaky test detection and tracking is provided by [BuildPulse](https://buildpulse <https://brew.sh>'s DNS is [resolving with DNSimple](https://dnsimple.com/resolving/homebrew). -[![DNSimple](https://cdn.dnsimple.com/assets/resolving-with-us/logo-light.png)](https://dnsimple.com/resolving/homebrew) +[![DNSimple](https://cdn.dnsimple.com/assets/resolving-with-us/logo-light.png)](https://dnsimple.com/resolving/homebrew#gh-light-mode-only) +[![DNSimple](https://cdn.dnsimple.com/assets/resolving-with-us/logo-dark.png)](https://dnsimple.com/resolving/homebrew#gh-dark-mode-only) Homebrew is generously supported by [Substack](https://github.com/substackinc), [Randy Reddig](https://github.com/ydnar), [embark-studios](https://github.com/embark-studios), [CodeCrafters](https://github.com/codecrafters-io) and many other users and organisations via [GitHub Sponsors](https://github.com/sponsors/Homebrew).
false
Other
Homebrew
brew
716c0716021fb61f089ce5ee9864f0535ef213cc.json
README: add DNSimple as a sponsor. They've provided our DNS for free for a while so let's give them a shout-out.
README.md
@@ -82,6 +82,10 @@ Flaky test detection and tracking is provided by [BuildPulse](https://buildpulse [![BuildPulse](https://user-images.githubusercontent.com/2988/130445500-96f44c87-e7dd-4da0-9877-7e5b1618e144.png)](https://buildpulse.io) +<https://brew.sh>'s DNS is [resolving with DNSimple](https://dnsimple.com/resolving/homebrew). + +[![DNSimple](https://cdn.dnsimple.com/assets/resolving-with-us/logo-light.png)](https://dnsimple.com/resolving/homebrew) + Homebrew is generously supported by [Substack](https://github.com/substackinc), [Randy Reddig](https://github.com/ydnar), [embark-studios](https://github.com/embark-studios), [CodeCrafters](https://github.com/codecrafters-io) and many other users and organisations via [GitHub Sponsors](https://github.com/sponsors/Homebrew). [![Substack](https://github.com/substackinc.png?size=64)](https://github.com/substackinc)
false
Other
Homebrew
brew
05b4d264f06b5c2e4a336181646a58c0115281b8.json
Fix typo in docs/Manpage.md 595: directores -> directories
docs/Manpage.md
@@ -592,7 +592,7 @@ The search for *`text`* is extended online to `homebrew/core` and `homebrew/cask Print export statements. When run in a shell, this installation of Homebrew will be added to your `PATH`, `MANPATH`, and `INFOPATH`. The variables `HOMEBREW_PREFIX`, `HOMEBREW_CELLAR` and `HOMEBREW_REPOSITORY` are also exported to avoid querying them multiple times. -To help guarantee idempotence, this command produces no output when Homebrew's `bin` and `sbin` directores are first and second +To help guarantee idempotence, this command produces no output when Homebrew's `bin` and `sbin` directories are first and second respectively in your `PATH`. Consider adding evaluation of this command's output to your dotfiles (e.g. `~/.profile`, `~/.bash_profile`, or `~/.zprofile`) with: `eval "$(brew shellenv)"`
false
Other
Homebrew
brew
2ccfd0af519f4b6f5744a0d92f00f361d9737efc.json
Update RBI files for rspec-expectations.
Library/Homebrew/sorbet/rbi/gems/rspec-expectations@3.10.2.rbi
@@ -1,9 +1,9 @@ +# typed: true + # DO NOT EDIT MANUALLY # This is an autogenerated file for types exported from the `rspec-expectations` gem. # Please instead update this file by running `bin/tapioca gem rspec-expectations`. -# typed: true - module RSpec extend ::RSpec::Support::Warnings extend ::RSpec::Core::Warnings @@ -1213,6 +1213,7 @@ class RSpec::Matchers::BuiltIn::RaiseError private + def actual_error_message; end def block_matches?; end def error_and_message_match?; end def eval_block; end
false
Other
Homebrew
brew
9ee6152a3562026bcda739fbeb1881a782aac56b.json
Update RBI files for sorbet.
Library/Homebrew/sorbet/rbi/parlour.rbi
@@ -62,6 +62,9 @@ class FormulaInstaller sig { returns(T::Boolean) } def force?; end + sig { returns(T::Boolean) } + def overwrite?; end + sig { returns(T::Boolean) } def keep_tmp?; end
false
Other
Homebrew
brew
cb758850f5118577ae80ab5e404f7dd60f3406b8.json
Update RBI files for nokogiri.
Library/Homebrew/sorbet/rbi/gems/nokogiri@1.13.1.rbi
@@ -49,59 +49,62 @@ class Nokogiri::CSS::Parser < ::Racc::Parser def initialize(namespaces = T.unsafe(nil)); end def _reduce_1(val, _values, result); end + def _reduce_10(val, _values, result); end def _reduce_11(val, _values, result); end - def _reduce_12(val, _values, result); end def _reduce_13(val, _values, result); end def _reduce_14(val, _values, result); end def _reduce_15(val, _values, result); end - def _reduce_16(val, _values, result); end + def _reduce_17(val, _values, result); end def _reduce_18(val, _values, result); end + def _reduce_19(val, _values, result); end def _reduce_2(val, _values, result); end - def _reduce_20(val, _values, result); end def _reduce_21(val, _values, result); end - def _reduce_22(val, _values, result); end def _reduce_23(val, _values, result); end + def _reduce_24(val, _values, result); end def _reduce_25(val, _values, result); end def _reduce_26(val, _values, result); end - def _reduce_27(val, _values, result); end def _reduce_28(val, _values, result); end def _reduce_29(val, _values, result); end def _reduce_3(val, _values, result); end def _reduce_30(val, _values, result); end def _reduce_31(val, _values, result); end def _reduce_32(val, _values, result); end - def _reduce_33(val, _values, result); end def _reduce_34(val, _values, result); end def _reduce_35(val, _values, result); end def _reduce_36(val, _values, result); end def _reduce_37(val, _values, result); end + def _reduce_38(val, _values, result); end + def _reduce_39(val, _values, result); end def _reduce_4(val, _values, result); end def _reduce_40(val, _values, result); end def _reduce_41(val, _values, result); end def _reduce_42(val, _values, result); end - def _reduce_43(val, _values, result); end - def _reduce_44(val, _values, result); end def _reduce_45(val, _values, result); end + def _reduce_47(val, _values, result); end def _reduce_48(val, _values, result); end def _reduce_49(val, _values, result); end def _reduce_5(val, _values, result); end def _reduce_50(val, _values, result); end def _reduce_51(val, _values, result); end - def _reduce_52(val, _values, result); end + def _reduce_54(val, _values, result); end + def _reduce_55(val, _values, result); end + def _reduce_56(val, _values, result); end + def _reduce_57(val, _values, result); end def _reduce_58(val, _values, result); end - def _reduce_59(val, _values, result); end def _reduce_6(val, _values, result); end - def _reduce_60(val, _values, result); end - def _reduce_61(val, _values, result); end - def _reduce_63(val, _values, result); end def _reduce_64(val, _values, result); end def _reduce_65(val, _values, result); end def _reduce_66(val, _values, result); end def _reduce_67(val, _values, result); end - def _reduce_68(val, _values, result); end def _reduce_69(val, _values, result); end def _reduce_7(val, _values, result); end def _reduce_70(val, _values, result); end + def _reduce_71(val, _values, result); end + def _reduce_72(val, _values, result); end + def _reduce_73(val, _values, result); end + def _reduce_74(val, _values, result); end + def _reduce_75(val, _values, result); end + def _reduce_76(val, _values, result); end def _reduce_8(val, _values, result); end def _reduce_9(val, _values, result); end def _reduce_none(val, _values, result); end @@ -168,6 +171,7 @@ class Nokogiri::CSS::XPathVisitor private def css_class(hay, needle); end + def html5_element_name_needs_namespace_handling(node); end def is_of_type_pseudo_class?(node); end def nth(node, options = T.unsafe(nil)); end def read_a_and_positive_b(values); end
true
Other
Homebrew
brew
cb758850f5118577ae80ab5e404f7dd60f3406b8.json
Update RBI files for nokogiri.
Library/Homebrew/sorbet/rbi/parlour.rbi
@@ -62,6 +62,9 @@ class FormulaInstaller sig { returns(T::Boolean) } def force?; end + sig { returns(T::Boolean) } + def overwrite?; end + sig { returns(T::Boolean) } def keep_tmp?; end
true
Other
Homebrew
brew
c64b15bd3e96d1b852ea2019fdb2bac4e5d494cd.json
Update RBI files for ecma-re-validator.
Library/Homebrew/sorbet/rbi/gems/ecma-re-validator@0.4.0.rbi
@@ -1,9 +1,9 @@ +# typed: true + # DO NOT EDIT MANUALLY # This is an autogenerated file for types exported from the `ecma-re-validator` gem. # Please instead update this file by running `bin/tapioca gem ecma-re-validator`. -# typed: true - module EcmaReValidator class << self def valid?(input); end
false
Other
Homebrew
brew
bb8d9f10bc6c0071be9944a11cc6e6279bb62cb4.json
Update RBI files for ruby-macho.
Library/Homebrew/sorbet/rbi/gems/ruby-macho@3.0.0.rbi
@@ -1,9 +1,9 @@ +# typed: true + # DO NOT EDIT MANUALLY # This is an autogenerated file for types exported from the `ruby-macho` gem. # Please instead update this file by running `bin/tapioca gem ruby-macho`. -# typed: true - module MachO class << self def codesign!(filename); end @@ -20,6 +20,8 @@ class MachO::CPUTypeError < ::MachO::MachOError end class MachO::CodeSigningError < ::MachO::MachOError; end +class MachO::CompressedMachOError < ::MachO::MachOError; end +class MachO::DecompressionError < ::MachO::MachOError; end class MachO::DylibIdMissingError < ::MachO::RecoverableModificationError def initialize; end @@ -104,6 +106,9 @@ class MachO::HeaderPadError < ::MachO::ModificationError end module MachO::Headers; end +MachO::Headers::COMPRESSED_MAGIC = T.let(T.unsafe(nil), Integer) +MachO::Headers::COMP_TYPE_FASTLIB = T.let(T.unsafe(nil), Integer) +MachO::Headers::COMP_TYPE_LZSS = T.let(T.unsafe(nil), Integer) MachO::Headers::CPU_ARCH_ABI32 = T.let(T.unsafe(nil), Integer) MachO::Headers::CPU_ARCH_ABI64 = T.let(T.unsafe(nil), Integer) MachO::Headers::CPU_SUBTYPES = T.let(T.unsafe(nil), Hash) @@ -220,6 +225,7 @@ MachO::Headers::MH_DYLIB = T.let(T.unsafe(nil), Integer) MachO::Headers::MH_DYLIB_STUB = T.let(T.unsafe(nil), Integer) MachO::Headers::MH_DYLINKER = T.let(T.unsafe(nil), Integer) MachO::Headers::MH_EXECUTE = T.let(T.unsafe(nil), Integer) +MachO::Headers::MH_FILESET = T.let(T.unsafe(nil), Integer) MachO::Headers::MH_FILETYPES = T.let(T.unsafe(nil), Hash) MachO::Headers::MH_FLAGS = T.let(T.unsafe(nil), Hash) MachO::Headers::MH_FVMLIB = T.let(T.unsafe(nil), Integer) @@ -242,6 +248,7 @@ class MachO::Headers::MachHeader < ::MachO::MachOStructure def dylib?; end def dylinker?; end def executable?; end + def fileset?; end def filetype; end def flag?(flag); end def flags; end @@ -269,6 +276,27 @@ MachO::Headers::MachHeader64::SIZEOF = T.let(T.unsafe(nil), Integer) MachO::Headers::MachHeader::FORMAT = T.let(T.unsafe(nil), String) MachO::Headers::MachHeader::SIZEOF = T.let(T.unsafe(nil), Integer) +class MachO::Headers::PrelinkedKernelHeader < ::MachO::MachOStructure + def initialize(signature, compress_type, adler32, uncompressed_size, compressed_size, prelink_version, reserved, platform_name, root_path); end + + def adler32; end + def compress_type; end + def compressed_size; end + def kaslr?; end + def lzss?; end + def lzvn?; end + def platform_name; end + def prelink_version; end + def reserved; end + def root_path; end + def signature; end + def to_h; end + def uncompressed_size; end +end + +MachO::Headers::PrelinkedKernelHeader::FORMAT = T.let(T.unsafe(nil), String) +MachO::Headers::PrelinkedKernelHeader::SIZEOF = T.let(T.unsafe(nil), Integer) + class MachO::JavaClassFileError < ::MachO::NotAMachOError def initialize; end end @@ -430,6 +458,19 @@ end MachO::LoadCommands::EntryPointCommand::FORMAT = T.let(T.unsafe(nil), String) MachO::LoadCommands::EntryPointCommand::SIZEOF = T.let(T.unsafe(nil), Integer) +class MachO::LoadCommands::FilesetEntryCommand < ::MachO::LoadCommands::LoadCommand + def initialize(view, cmd, cmdsize, vmaddr, fileoff, entry_id, reserved); end + + def entry_id; end + def fileoff; end + def reserved; end + def to_h; end + def vmaddr; end +end + +MachO::LoadCommands::FilesetEntryCommand::FORMAT = T.let(T.unsafe(nil), String) +MachO::LoadCommands::FilesetEntryCommand::SIZEOF = T.let(T.unsafe(nil), Integer) + class MachO::LoadCommands::FvmfileCommand < ::MachO::LoadCommands::LoadCommand def initialize(view, cmd, cmdsize, name, header_addr); end @@ -762,13 +803,13 @@ class MachO::MachOFile def change_dylib(old_name, new_name, _options = T.unsafe(nil)); end def change_dylib_id(new_id, _options = T.unsafe(nil)); end def change_install_name(old_name, new_name, _options = T.unsafe(nil)); end - def change_rpath(old_path, new_path, _options = T.unsafe(nil)); end + def change_rpath(old_path, new_path, options = T.unsafe(nil)); end def command(name); end def core?(*args, &block); end def cpusubtype; end def cputype; end def delete_command(lc, options = T.unsafe(nil)); end - def delete_rpath(path, _options = T.unsafe(nil)); end + def delete_rpath(path, options = T.unsafe(nil)); end def dsym?(*args, &block); end def dylib?(*args, &block); end def dylib_id; end @@ -812,10 +853,12 @@ class MachO::MachOFile def check_cpusubtype(cputype, cpusubtype); end def check_cputype(cputype); end def check_filetype(filetype); end + def decompress_macho_lzvn; end def low_fileoff; end def populate_and_check_magic; end def populate_load_commands; end def populate_mach_header; end + def populate_prelinked_kernel_header; end def update_ncmds(ncmds); end def update_sizeofcmds(size); end @@ -872,18 +915,22 @@ end module MachO::Sections; end MachO::Sections::MAX_SECT_ALIGN = T.let(T.unsafe(nil), Integer) -MachO::Sections::SECTION_ATTRIBUTES = T.let(T.unsafe(nil), Integer) -MachO::Sections::SECTION_ATTRIBUTES_SYS = T.let(T.unsafe(nil), Integer) -MachO::Sections::SECTION_ATTRIBUTES_USR = T.let(T.unsafe(nil), Integer) +MachO::Sections::SECTION_ATTRIBUTES = T.let(T.unsafe(nil), Hash) +MachO::Sections::SECTION_ATTRIBUTES_MASK = T.let(T.unsafe(nil), Integer) +MachO::Sections::SECTION_ATTRIBUTES_SYS_MASK = T.let(T.unsafe(nil), Integer) +MachO::Sections::SECTION_ATTRIBUTES_USR_MASK = T.let(T.unsafe(nil), Integer) MachO::Sections::SECTION_FLAGS = T.let(T.unsafe(nil), Hash) MachO::Sections::SECTION_NAMES = T.let(T.unsafe(nil), Hash) -MachO::Sections::SECTION_TYPE = T.let(T.unsafe(nil), Integer) +MachO::Sections::SECTION_TYPES = T.let(T.unsafe(nil), Hash) +MachO::Sections::SECTION_TYPE_MASK = T.let(T.unsafe(nil), Integer) class MachO::Sections::Section < ::MachO::MachOStructure def initialize(sectname, segname, addr, size, offset, align, reloff, nreloc, flags, reserved1, reserved2); end def addr; end def align; end + def attribute?(attr_sym); end + def attributes; end def empty?; end def flag?(flag); end def flags; end @@ -898,6 +945,8 @@ class MachO::Sections::Section < ::MachO::MachOStructure def segname; end def size; end def to_h; end + def type; end + def type?(type_sym); end end class MachO::Sections::Section64 < ::MachO::Sections::Section @@ -935,6 +984,7 @@ end module MachO::Utils class << self def big_magic?(num); end + def compressed_magic?(num); end def fat_magic32?(num); end def fat_magic64?(num); end def fat_magic?(num); end
false
Other
Homebrew
brew
af6d995de89a0335c00335e6039cd193e5d79664.json
dev-cmd/bump: add switch to open pull requests. This enables the simplification of https://github.com/Homebrew/actions/blob/master/bump-formulae/main.rb and exposing this workflow to more Homebrew users.
Library/Homebrew/dev-cmd/bump.rb
@@ -25,12 +25,15 @@ def bump_args description: "Check only formulae." switch "--cask", "--casks", description: "Check only casks." + switch "--open-pr", + description: "Open a pull request for the new version if there are none already open." flag "--limit=", description: "Limit number of package results returned." flag "--start-with=", description: "Letter or word that the list of package results should alphabetically follow." conflicts "--cask", "--formula" + conflicts "--no-pull-requests", "--open-pr" named_args [:formula, :cask] end @@ -103,7 +106,7 @@ def bump end package_data = Repology.single_package_query(name, repository: repository) - retrieve_and_display_info( + retrieve_and_display_info_and_open_pr( formula_or_cask, name, package_data&.values&.first, @@ -157,7 +160,13 @@ def bump end puts if i.positive? - retrieve_and_display_info(formula_or_cask, name, repositories, args: args, ambiguous_cask: ambiguous_cask) + retrieve_and_display_info_and_open_pr( + formula_or_cask, + name, + repositories, + args: args, + ambiguous_cask: ambiguous_cask, + ) end end end @@ -205,44 +214,59 @@ def retrieve_pull_requests(formula_or_cask, name) pull_requests = pull_requests.map { |pr| "#{pr["title"]} (#{Formatter.url(pr["html_url"])})" }.join(", ") end - return "none" if pull_requests.blank? - pull_requests end - def retrieve_and_display_info(formula_or_cask, name, repositories, args:, ambiguous_cask: false) - current_version = if formula_or_cask.is_a?(Formula) - formula_or_cask.stable.version + def retrieve_and_display_info_and_open_pr(formula_or_cask, name, repositories, args:, ambiguous_cask: false) + if formula_or_cask.is_a?(Formula) + current_version = formula_or_cask.stable.version + type = :formula + version_name = "formula version" else - Version.new(formula_or_cask.version) + current_version = Version.new(formula_or_cask.version) + type = :cask + version_name = "cask version " end + livecheck_latest = livecheck_result(formula_or_cask) + repology_latest = if repositories.present? Repology.latest_version(repositories) else "not found" end - livecheck_latest = livecheck_result(formula_or_cask) - pull_requests = if !args.no_pull_requests? && (args.named.present? || - (livecheck_latest.is_a?(Version) && livecheck_latest != current_version)) + new_version = if livecheck_latest.is_a?(Version) && livecheck_latest > current_version + livecheck_latest + elsif repology_latest.is_a?(Version) && repology_latest > current_version + repology_latest + end.presence + + pull_requests = if !args.no_pull_requests? && (args.named.present? || new_version) retrieve_pull_requests(formula_or_cask, name) - end + end.presence - name += " (cask)" if ambiguous_cask + title_name = ambiguous_cask ? "#{name} (cask)" : name title = if current_version == repology_latest && current_version == livecheck_latest - "#{name} #{Tty.green}is up to date!#{Tty.reset}" + "#{title_name} #{Tty.green}is up to date!#{Tty.reset}" else - name + title_name end ohai title puts <<~EOS - Current #{formula_or_cask.is_a?(Formula) ? "formula version:" : "cask version: "} #{current_version} + Current #{version_name}: #{current_version} Latest livecheck version: #{livecheck_latest} Latest Repology version: #{repology_latest} + Open pull requests: #{pull_requests || "none"} EOS - puts "Open pull requests: #{pull_requests}" unless pull_requests.nil? + + return unless args.open_pr? + return unless new_version + return if pull_requests + + system HOMEBREW_BREW_FILE, "bump-#{type}-pr", "--no-browse", + "--message=Created by `brew bump`", "--version=#{new_version}", name end end
true
Other
Homebrew
brew
af6d995de89a0335c00335e6039cd193e5d79664.json
dev-cmd/bump: add switch to open pull requests. This enables the simplification of https://github.com/Homebrew/actions/blob/master/bump-formulae/main.rb and exposing this workflow to more Homebrew users.
Library/Homebrew/utils/repology.rb
@@ -99,6 +99,6 @@ def latest_version(repositories) # scheme return "no latest version" if latest_version.blank? - latest_version["version"] + Version.new(latest_version["version"]) end end
true
Other
Homebrew
brew
af6d995de89a0335c00335e6039cd193e5d79664.json
dev-cmd/bump: add switch to open pull requests. This enables the simplification of https://github.com/Homebrew/actions/blob/master/bump-formulae/main.rb and exposing this workflow to more Homebrew users.
completions/bash/brew
@@ -436,6 +436,7 @@ _brew_bump() { --help --limit --no-pull-requests + --open-pr --quiet --start-with --verbose
true
Other
Homebrew
brew
af6d995de89a0335c00335e6039cd193e5d79664.json
dev-cmd/bump: add switch to open pull requests. This enables the simplification of https://github.com/Homebrew/actions/blob/master/bump-formulae/main.rb and exposing this workflow to more Homebrew users.
completions/fish/brew.fish
@@ -388,6 +388,7 @@ __fish_brew_complete_arg 'bump' -l full-name -d 'Print formulae/casks with fully __fish_brew_complete_arg 'bump' -l help -d 'Show this message' __fish_brew_complete_arg 'bump' -l limit -d 'Limit number of package results returned' __fish_brew_complete_arg 'bump' -l no-pull-requests -d 'Do not retrieve pull requests from GitHub' +__fish_brew_complete_arg 'bump' -l open-pr -d 'Open a pull request for the new version if there are none already open' __fish_brew_complete_arg 'bump' -l quiet -d 'Make some output more quiet' __fish_brew_complete_arg 'bump' -l start-with -d 'Letter or word that the list of package results should alphabetically follow' __fish_brew_complete_arg 'bump' -l verbose -d 'Make some output more verbose'
true
Other
Homebrew
brew
af6d995de89a0335c00335e6039cd193e5d79664.json
dev-cmd/bump: add switch to open pull requests. This enables the simplification of https://github.com/Homebrew/actions/blob/master/bump-formulae/main.rb and exposing this workflow to more Homebrew users.
completions/zsh/_brew
@@ -478,6 +478,7 @@ _brew_bump() { '--help[Show this message]' \ '--limit[Limit number of package results returned]' \ '--no-pull-requests[Do not retrieve pull requests from GitHub]' \ + '--open-pr[Open a pull request for the new version if there are none already open]' \ '--quiet[Make some output more quiet]' \ '--start-with[Letter or word that the list of package results should alphabetically follow]' \ '--verbose[Make some output more verbose]' \
true
Other
Homebrew
brew
af6d995de89a0335c00335e6039cd193e5d79664.json
dev-cmd/bump: add switch to open pull requests. This enables the simplification of https://github.com/Homebrew/actions/blob/master/bump-formulae/main.rb and exposing this workflow to more Homebrew users.
docs/Manpage.md
@@ -926,6 +926,8 @@ formulae, also displays whether a pull request has been opened with the URL. Check only formulae. * `--cask`: Check only casks. +* `--open-pr`: + Open a pull request for the new version if there are none already open. * `--limit`: Limit number of package results returned. * `--start-with`:
true
Other
Homebrew
brew
af6d995de89a0335c00335e6039cd193e5d79664.json
dev-cmd/bump: add switch to open pull requests. This enables the simplification of https://github.com/Homebrew/actions/blob/master/bump-formulae/main.rb and exposing this workflow to more Homebrew users.
manpages/brew.1
@@ -1295,6 +1295,10 @@ Check only formulae\. Check only casks\. . .TP +\fB\-\-open\-pr\fR +Open a pull request for the new version if there are none already open\. +. +.TP \fB\-\-limit\fR Limit number of package results returned\. .
true
Other
Homebrew
brew
c4b01e01cd6cef0a9dfccf8298136cdb525ecd1c.json
Update RBI files for rainbow.
Library/Homebrew/sorbet/rbi/gems/rainbow@3.1.1.rbi
@@ -1,9 +1,9 @@ +# typed: true + # DO NOT EDIT MANUALLY # This is an autogenerated file for types exported from the `rainbow` gem. # Please instead update this file by running `bin/tapioca gem rainbow`. -# typed: true - module Rainbow class << self def enabled; end @@ -78,6 +78,7 @@ class Rainbow::NullPresenter < ::String def bold; end def bright; end def color(*_values); end + def cross_out; end def cyan; end def dark; end def faint; end @@ -91,6 +92,7 @@ class Rainbow::NullPresenter < ::String def method_missing(method_name, *args); end def red; end def reset; end + def strike; end def underline; end def white; end def yellow; end @@ -109,6 +111,7 @@ class Rainbow::Presenter < ::String def bold; end def bright; end def color(*values); end + def cross_out; end def cyan; end def dark; end def faint; end @@ -122,6 +125,7 @@ class Rainbow::Presenter < ::String def method_missing(method_name, *args); end def red; end def reset; end + def strike; end def underline; end def white; end def yellow; end
false
Other
Homebrew
brew
48731ebd7f671f74f0d592ab8af8854c2be9e5ac.json
Update RBI files for bootsnap.
Library/Homebrew/sorbet/rbi/gems/bootsnap@1.9.4.rbi
@@ -11,6 +11,7 @@ module Bootsnap class << self def _instrument(event, path); end + def absolute_path?(path); end def default_setup; end def instrumentation=(callback); end def iseq_cache_supported?; end @@ -61,7 +62,6 @@ Bootsnap::LoadPathCache::CACHED_EXTENSIONS = T.let(T.unsafe(nil), Array) class Bootsnap::LoadPathCache::Cache def initialize(store, path_obj, development_mode: T.unsafe(nil)); end - def absolute_path?(path); end def find(feature, try_extensions: T.unsafe(nil)); end def load_dir(dir); end def push_paths(sender, *paths); end @@ -208,10 +208,13 @@ class Bootsnap::LoadPathCache::Store private def commit_transaction; end + def default_data; end def dump_data; end def load_data; end end +Bootsnap::LoadPathCache::Store::CURRENT_VERSION = T.let(T.unsafe(nil), String) class Bootsnap::LoadPathCache::Store::NestedTransactionError < ::StandardError; end class Bootsnap::LoadPathCache::Store::SetOutsideTransactionNotAllowed < ::StandardError; end +Bootsnap::LoadPathCache::Store::VERSION_KEY = T.let(T.unsafe(nil), String) Bootsnap::VERSION = T.let(T.unsafe(nil), String)
false