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 | b6c70e7a31f330130ce64b304fb12240d18413cc.json | Update RBI files for activesupport. | Library/Homebrew/sorbet/rbi/gems/activesupport@6.1.4.4.rbi | @@ -10,16 +10,28 @@ module ActiveSupport
extend ::ActiveSupport::LazyLoadHooks
extend ::ActiveSupport::Autoload
+ def parse_json_times; end
+ def parse_json_times=(val); end
def test_order; end
def test_order=(val); end
class << self
def eager_load!; end
+ def escape_html_entities_in_json(*args, &block); end
+ def escape_html_entities_in_json=(arg); end
def gem_version; end
+ def json_encoder(*args, &block); end
+ def json_encoder=(arg); end
+ def parse_json_times; end
+ def parse_json_times=(val); end
def test_order; end
def test_order=(val); end
+ def time_precision(*args, &block); end
+ def time_precision=(arg); end
def to_time_preserves_timezone; end
def to_time_preserves_timezone=(value); end
+ def use_standard_json_time_format(*args, &block); end
+ def use_standard_json_time_format=(arg); end
def utc_to_local_returns_utc_offset_times; end
def utc_to_local_returns_utc_offset_times=(value); end
def version; end
@@ -3318,14 +3330,14 @@ Numeric::PETABYTE = T.let(T.unsafe(nil), Integer)
Numeric::TERABYTE = T.let(T.unsafe(nil), Integer)
class Object < ::BasicObject
+ include ::ActiveSupport::ToJsonWithActiveSupportEncoder
include ::ActiveSupport::ForkTracker::CoreExt
include ::ActiveSupport::ForkTracker::CoreExtPrivate
- include ::ActiveSupport::ToJsonWithActiveSupportEncoder
include ::Kernel
include ::JSON::Ext::Generator::GeneratorMethods::Object
include ::PP::ObjectMixin
- include ::ActiveSupport::Tryable
include ::ActiveSupport::Dependencies::Loadable
+ include ::ActiveSupport::Tryable
def acts_like?(duck); end
def as_json(options = T.unsafe(nil)); end | true |
Other | Homebrew | brew | b6c70e7a31f330130ce64b304fb12240d18413cc.json | Update RBI files for activesupport. | Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi | @@ -18,12 +18,6 @@ class ActiveRecordColumnTypeHelper
extend ::T::Private::Methods::SingletonMethodHooks
end
-module ActiveSupport
- def parse_json_times(); end
-
- def parse_json_times=(val); end
-end
-
class ActiveSupport::Deprecation
def self.deprecation_warning(*args, &block); end
@@ -36,28 +30,6 @@ module ActiveSupport::ForkTracker::CoreExtPrivate
include ::ActiveSupport::ForkTracker::CoreExt
end
-module ActiveSupport
- def self.escape_html_entities_in_json(*args, &block); end
-
- def self.escape_html_entities_in_json=(arg); end
-
- def self.json_encoder(*args, &block); end
-
- def self.json_encoder=(arg); end
-
- def self.parse_json_times(); end
-
- def self.parse_json_times=(val); end
-
- def self.time_precision(*args, &block); end
-
- def self.time_precision=(arg); end
-
- def self.use_standard_json_time_format(*args, &block); end
-
- def self.use_standard_json_time_format=(arg); end
-end
-
class Addrinfo
def connect_internal(local_addrinfo, timeout=T.unsafe(nil)); end
end | true |
Other | Homebrew | brew | 19b23dfd1137efd76a88c24fcb2b7f4404653409.json | Update RBI files for rubocop-rails. | Library/Homebrew/sorbet/rbi/gems/rubocop-rails@2.13.1.rbi | @@ -1256,6 +1256,7 @@ class RuboCop::Cop::Rails::ReadWriteAttribute < ::RuboCop::Cop::Base
def message(node); end
def read_attribute_replacement(node); end
+ def within_shadowing_method?(node); end
def write_attribute_replacement(node); end
end
@@ -1313,8 +1314,15 @@ class RuboCop::Cop::Rails::RedundantPresenceValidationOnBelongsTo < ::RuboCop::C
private
+ def add_offense_and_correct(node, all_keys, keys, options, presence); end
def belongs_to_for(model_class_node, key); end
- def remove_presence_validation(corrector, node, options, presence); end
+ def extract_validation_for_keys(corrector, node, keys, options); end
+ def message_for(keys); end
+ def non_optional_belongs_to(node, keys); end
+ def remove_keys_from_validation(corrector, node, keys); end
+ def remove_presence_option(corrector, presence); end
+ def remove_validation(corrector, node); end
+ def validation_range(node); end
end
RuboCop::Cop::Rails::RedundantPresenceValidationOnBelongsTo::MSG = T.let(T.unsafe(nil), String) | true |
Other | Homebrew | brew | 19b23dfd1137efd76a88c24fcb2b7f4404653409.json | Update RBI files for rubocop-rails. | Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi | @@ -5132,7 +5132,7 @@ 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_REMOVE_BELONGS_TO_REMOVE_REFERENCE = ::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) | true |
Other | Homebrew | brew | c5c9d2a433767297e7b090a958a4eeed6463b848.json | Update RBI files for sorbet. | Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi | @@ -4154,9 +4154,6 @@ end
class Pathname
include ::ELFShim
include ::MachOShim
- def fnmatch?(*arg); end
-
- def make_symlink(arg); end
end
class Pathname | false |
Other | Homebrew | brew | 22d68fb99b02b1b41afd3f7e109d0cb6af099005.json | fix style offences | Library/Homebrew/rubocops/cask/url_legacy_comma_separators.rb | @@ -12,11 +12,12 @@ class UrlLegacyCommaSeparators < Base
include OnUrlStanza
extend AutoCorrector
- MSG_CSV = "Use 'version.csv.first' instead of 'version.before_comma' and 'version.csv.second' instead of 'version.after_comma'."
+ MSG_CSV = "Use 'version.csv.first' instead of 'version.before_comma'"\
+ "and 'version.csv.second' instead of 'version.after_comma'."
- def on_url_stanza(stanza)
+ def on_url_stanza(stanza)
return if stanza.stanza_node.type == :block
-
+
url_node = stanza.stanza_node.first_argument
legacy_comma_separator_pattern = /version.(before|after)_comma/ | false |
Other | Homebrew | brew | 33b8e0faa0fed21ef8428da8d2709e99843b19f5.json | docs: integrate suggested changes | docs/Updating-Software-in-Homebrew.md | @@ -2,10 +2,7 @@
Did you find something in Homebrew that wasn't the latest version? You can help yourself and others by submitting a pull request to update the formula.
-If you want to update software that is either closed source, or a GUI only program you want to follow the guide for Casks. Otherwise follow the guide for Formulae.
-See also: [Homebrew Terminology](https://docs.brew.sh/Formula-Cookbook#homebrew-terminology)
-
-First, check the pull requests in the [homebrew-core](https://github.com/Homebrew/homebrew-core/pulls) or [homebrew-cask](https://github.com/Homebrew/homebrew-cask/pulls) repositories to make sure there isn't already an open PR. You may also want to look through closed pull requests in the repositories, as sometimes packages run into problems preventing them from being updated and it's better to be aware of any issues before putting significant effort into an update.
+First, check the pull requests in the Homebrew tap repositories to make sure a PR isn't already open. If you're submitting a [formula](https://docs.brew.sh/Formula-Cookbook#homebrew-terminology), check [homebrew-core](https://github.com/Homebrew/homebrew-core/pulls). If you're submitting a [cask](https://docs.brew.sh/Formula-Cookbook#homebrew-terminology), check [homebrew-cask](https://github.com/Homebrew/homebrew-cask/pulls). You may also want to look through closed pull requests in the repositories, as sometimes packages run into problems preventing them from being updated and it's better to be aware of any issues before putting significant effort into an update.
The [How To Open a Homebrew Pull Request](How-To-Open-a-Homebrew-Pull-Request.md) documentation should explain most everything you need to know about the process of creating a PR for a version update. For simple updates, this typically involves changing the URL and sha256.
| false |
Other | Homebrew | brew | ea61dcf36ef48024b372faccc8ed77b6ba5d8aa9.json | Update RBI files for nokogiri. | Library/Homebrew/sorbet/rbi/gems/mini_portile2@2.7.1.rbi | @@ -1,11 +1,11 @@
+# typed: true
+
# DO NOT EDIT MANUALLY
# This is an autogenerated file for types exported from the `mini_portile2` gem.
# Please instead update this file by running `bin/tapioca gem mini_portile2`.
-# typed: true
-
class MiniPortile
- def initialize(name, version); end
+ def initialize(name, version, **kwargs); end
def activate; end
def apply_patch(patch_file); end
@@ -20,12 +20,14 @@ class MiniPortile
def extract; end
def files; end
def files=(_arg0); end
+ def gcc_cmd; end
def host; end
def host=(_arg0); end
def install; end
def installed?; end
def logger; end
def logger=(_arg0); end
+ def make_cmd; end
def name; end
def original_host; end
def patch; end
@@ -53,9 +55,7 @@ class MiniPortile
def execute(action, command, command_opts = T.unsafe(nil)); end
def extract_file(file, target); end
def files_hashs; end
- def gcc_cmd; end
def log_file(action); end
- def make_cmd; end
def message(text); end
def newer?(target, checkpoint); end
def output(text = T.unsafe(nil)); end
@@ -80,6 +80,9 @@ MiniPortile::TAR_EXECUTABLES = T.let(T.unsafe(nil), Array)
MiniPortile::VERSION = T.let(T.unsafe(nil), String)
class MiniPortileCMake < ::MiniPortile
+ def initialize(name, version, **kwargs); end
+
+ def cmake_cmd; end
def configure; end
def configure_defaults; end
def configure_prefix; end | true |
Other | Homebrew | brew | ea61dcf36ef48024b372faccc8ed77b6ba5d8aa9.json | Update RBI files for nokogiri. | Library/Homebrew/sorbet/rbi/gems/nokogiri@1.13.0.rbi | @@ -1,9 +1,9 @@
+# typed: true
+
# DO NOT EDIT MANUALLY
# This is an autogenerated file for types exported from the `nokogiri` gem.
# Please instead update this file by running `bin/tapioca gem nokogiri`.
-# typed: true
-
module Nokogiri
class << self
def HTML(input, url = T.unsafe(nil), encoding = T.unsafe(nil), options = T.unsafe(nil), &block); end
@@ -14,6 +14,7 @@ module Nokogiri
def XSLT(stylesheet, modules = T.unsafe(nil)); end
def install_default_aliases; end
def jruby?; end
+ def libxml2_patches; end
def make(input = T.unsafe(nil), opts = T.unsafe(nil), &blk); end
def parse(string, url = T.unsafe(nil), encoding = T.unsafe(nil), options = T.unsafe(nil)); end
def uses_gumbo?; end
@@ -35,7 +36,7 @@ class Nokogiri::CSS::Node
def find_by_type(types); end
def to_a; end
def to_type; end
- def to_xpath(prefix = T.unsafe(nil), visitor = T.unsafe(nil)); end
+ def to_xpath(prefix, visitor); end
def type; end
def type=(_arg0); end
def value; end
@@ -104,12 +105,13 @@ class Nokogiri::CSS::Parser < ::Racc::Parser
def _reduce_8(val, _values, result); end
def _reduce_9(val, _values, result); end
def _reduce_none(val, _values, result); end
+ def cache_key(query, prefix, visitor); end
def next_token; end
def on_error(error_token_id, error_value, value_stack); end
def parse(string); end
def unescape_css_identifier(identifier); end
def unescape_css_string(str); end
- def xpath_for(string, options = T.unsafe(nil)); end
+ def xpath_for(string, prefix, visitor); end
class << self
def [](string); end
@@ -144,7 +146,11 @@ end
class Nokogiri::CSS::Tokenizer::ScanError < ::StandardError; end
class Nokogiri::CSS::XPathVisitor
+ def initialize(builtins: T.unsafe(nil), doctype: T.unsafe(nil)); end
+
def accept(node); end
+ def config; end
+ def visit_attrib_name(node); end
def visit_attribute_condition(node); end
def visit_child_selector(node); end
def visit_class_condition(node); end
@@ -162,25 +168,40 @@ class Nokogiri::CSS::XPathVisitor
private
def css_class(hay, needle); end
- def css_class_builtin(hay, needle); end
- def css_class_standard(hay, needle); 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
end
-class Nokogiri::CSS::XPathVisitorAlwaysUseBuiltins < ::Nokogiri::CSS::XPathVisitor
- private
+module Nokogiri::CSS::XPathVisitor::BuiltinsConfig; end
+Nokogiri::CSS::XPathVisitor::BuiltinsConfig::ALWAYS = T.let(T.unsafe(nil), Symbol)
+Nokogiri::CSS::XPathVisitor::BuiltinsConfig::NEVER = T.let(T.unsafe(nil), Symbol)
+Nokogiri::CSS::XPathVisitor::BuiltinsConfig::OPTIMAL = T.let(T.unsafe(nil), Symbol)
+Nokogiri::CSS::XPathVisitor::BuiltinsConfig::VALUES = T.let(T.unsafe(nil), Array)
+module Nokogiri::CSS::XPathVisitor::DoctypeConfig; end
+Nokogiri::CSS::XPathVisitor::DoctypeConfig::HTML4 = T.let(T.unsafe(nil), Symbol)
+Nokogiri::CSS::XPathVisitor::DoctypeConfig::HTML5 = T.let(T.unsafe(nil), Symbol)
+Nokogiri::CSS::XPathVisitor::DoctypeConfig::VALUES = T.let(T.unsafe(nil), Array)
+Nokogiri::CSS::XPathVisitor::DoctypeConfig::XML = T.let(T.unsafe(nil), Symbol)
+Nokogiri::CSS::XPathVisitor::WILDCARD_NAMESPACES = T.let(T.unsafe(nil), TrueClass)
- def css_class(hay, needle); end
+module Nokogiri::CSS::XPathVisitorAlwaysUseBuiltins
+ class << self
+ def new; end
+ end
end
-class Nokogiri::CSS::XPathVisitorOptimallyUseBuiltins < ::Nokogiri::CSS::XPathVisitor
- private
+module Nokogiri::CSS::XPathVisitorOptimallyUseBuiltins
+ class << self
+ def new; end
+ end
+end
- def css_class(hay, needle); end
+module Nokogiri::ClassResolver
+ def related_class(class_name); end
end
+Nokogiri::ClassResolver::VALID_NAMESPACES = T.let(T.unsafe(nil), Set)
module Nokogiri::Decorators; end
module Nokogiri::Decorators::Slop
@@ -218,7 +239,7 @@ Nokogiri::HTML = Nokogiri::HTML4
module Nokogiri::HTML4
class << self
- def fragment(string, encoding = T.unsafe(nil)); end
+ def fragment(string, encoding = T.unsafe(nil), options = T.unsafe(nil), &block); end
def parse(input, url = T.unsafe(nil), encoding = T.unsafe(nil), options = T.unsafe(nil), &block); end
end
end
@@ -238,6 +259,7 @@ class Nokogiri::HTML4::Document < ::Nokogiri::XML::Document
def title; end
def title=(text); end
def type; end
+ def xpath_doctype; end
private
@@ -284,10 +306,10 @@ class Nokogiri::HTML4::Document::EncodingReader::SAXHandler < ::Nokogiri::XML::S
end
class Nokogiri::HTML4::DocumentFragment < ::Nokogiri::XML::DocumentFragment
- def initialize(document, tags = T.unsafe(nil), ctx = T.unsafe(nil)); end
+ def initialize(document, tags = T.unsafe(nil), ctx = T.unsafe(nil), options = T.unsafe(nil)); end
class << self
- def parse(tags, encoding = T.unsafe(nil)); end
+ def parse(tags, encoding = T.unsafe(nil), options = T.unsafe(nil), &block); end
end
end
@@ -485,6 +507,7 @@ end
class Nokogiri::HTML5::Document < ::Nokogiri::HTML4::Document
def fragment(tags = T.unsafe(nil)); end
def to_xml(options = T.unsafe(nil), &block); end
+ def xpath_doctype; end
class << self
def do_parse(string_or_io, url, encoding, options); end
@@ -581,7 +604,7 @@ module Nokogiri::XML
def Reader(string_or_io, url = T.unsafe(nil), encoding = T.unsafe(nil), options = T.unsafe(nil)); end
def RelaxNG(string_or_io, options = T.unsafe(nil)); end
def Schema(string_or_io, options = T.unsafe(nil)); end
- def fragment(string); end
+ def fragment(string, options = T.unsafe(nil), &block); end
def parse(thing, url = T.unsafe(nil), encoding = T.unsafe(nil), options = T.unsafe(nil), &block); end
end
end
@@ -609,6 +632,8 @@ class Nokogiri::XML::AttributeDecl < ::Nokogiri::XML::Node
end
class Nokogiri::XML::Builder
+ include ::Nokogiri::ClassResolver
+
def initialize(options = T.unsafe(nil), root = T.unsafe(nil), &block); end
def <<(string); end
@@ -712,6 +737,7 @@ class Nokogiri::XML::Document < ::Nokogiri::XML::Node
def url; end
def validate; end
def version; end
+ def xpath_doctype; end
private
@@ -732,7 +758,7 @@ Nokogiri::XML::Document::NCNAME_RE = T.let(T.unsafe(nil), Regexp)
Nokogiri::XML::Document::NCNAME_START_CHAR = T.let(T.unsafe(nil), String)
class Nokogiri::XML::DocumentFragment < ::Nokogiri::XML::Node
- def initialize(document, tags = T.unsafe(nil), ctx = T.unsafe(nil)); end
+ def initialize(document, tags = T.unsafe(nil), ctx = T.unsafe(nil), options = T.unsafe(nil)); end
def css(*args); end
def dup; end
@@ -753,7 +779,7 @@ class Nokogiri::XML::DocumentFragment < ::Nokogiri::XML::Node
class << self
def new(*_arg0); end
- def parse(tags); end
+ def parse(tags, options = T.unsafe(nil), &block); end
end
end
@@ -834,14 +860,14 @@ class Nokogiri::XML::Node
include ::Nokogiri::HTML5::Node
include ::Nokogiri::XML::PP::Node
include ::Nokogiri::XML::Searchable
+ include ::Nokogiri::ClassResolver
include ::Enumerable
def initialize(name, document); end
def <<(node_or_tags); end
def <=>(other); end
def ==(other); end
- def >(selector); end
def [](name); end
def []=(name, value); end
def accept(visitor); end
@@ -1064,7 +1090,6 @@ class Nokogiri::XML::NodeSet
def -(_arg0); end
def <<(_arg0); end
def ==(other); end
- def >(selector); end
def [](*_arg0); end
def add_class(name); end
def after(datum); end
@@ -1133,6 +1158,8 @@ class Nokogiri::XML::ParseOptions
def initialize(options = T.unsafe(nil)); end
def ==(other); end
+ def big_lines; end
+ def big_lines?; end
def compact; end
def compact?; end
def default_html; end
@@ -1154,6 +1181,7 @@ class Nokogiri::XML::ParseOptions
def inspect; end
def nobasefix; end
def nobasefix?; end
+ def nobig_lines; end
def noblanks; end
def noblanks?; end
def nocdata; end
@@ -1213,6 +1241,7 @@ class Nokogiri::XML::ParseOptions
def xinclude?; end
end
+Nokogiri::XML::ParseOptions::BIG_LINES = T.let(T.unsafe(nil), Integer)
Nokogiri::XML::ParseOptions::COMPACT = T.let(T.unsafe(nil), Integer)
Nokogiri::XML::ParseOptions::DEFAULT_HTML = T.let(T.unsafe(nil), Integer)
Nokogiri::XML::ParseOptions::DEFAULT_SCHEMA = T.let(T.unsafe(nil), Integer)
@@ -1416,6 +1445,7 @@ end
module Nokogiri::XML::Searchable
def %(*args); end
def /(*args); end
+ def >(selector); end
def at(*args); end
def at_css(*args); end
def at_xpath(*args); end
@@ -1471,6 +1501,10 @@ Nokogiri::XML::XML_C14N_1_0 = T.let(T.unsafe(nil), Integer)
Nokogiri::XML::XML_C14N_1_1 = T.let(T.unsafe(nil), Integer)
Nokogiri::XML::XML_C14N_EXCLUSIVE_1_0 = T.let(T.unsafe(nil), Integer)
module Nokogiri::XML::XPath; end
+Nokogiri::XML::XPath::CURRENT_SEARCH_PREFIX = T.let(T.unsafe(nil), String)
+Nokogiri::XML::XPath::GLOBAL_SEARCH_PREFIX = T.let(T.unsafe(nil), String)
+Nokogiri::XML::XPath::ROOT_SEARCH_PREFIX = T.let(T.unsafe(nil), String)
+Nokogiri::XML::XPath::SUBTREE_SEARCH_PREFIX = T.let(T.unsafe(nil), String)
class Nokogiri::XML::XPath::SyntaxError < ::Nokogiri::XML::SyntaxError
def to_s; end | true |
Other | Homebrew | brew | d891ade8321284edd3da6bf9382755e16b6d17ca.json | Update RBI files for mini_portile2. | Library/Homebrew/sorbet/rbi/gems/mini_portile2@2.7.1.rbi | @@ -1,11 +1,11 @@
+# typed: true
+
# DO NOT EDIT MANUALLY
# This is an autogenerated file for types exported from the `mini_portile2` gem.
# Please instead update this file by running `bin/tapioca gem mini_portile2`.
-# typed: true
-
class MiniPortile
- def initialize(name, version); end
+ def initialize(name, version, **kwargs); end
def activate; end
def apply_patch(patch_file); end
@@ -20,12 +20,14 @@ class MiniPortile
def extract; end
def files; end
def files=(_arg0); end
+ def gcc_cmd; end
def host; end
def host=(_arg0); end
def install; end
def installed?; end
def logger; end
def logger=(_arg0); end
+ def make_cmd; end
def name; end
def original_host; end
def patch; end
@@ -53,9 +55,7 @@ class MiniPortile
def execute(action, command, command_opts = T.unsafe(nil)); end
def extract_file(file, target); end
def files_hashs; end
- def gcc_cmd; end
def log_file(action); end
- def make_cmd; end
def message(text); end
def newer?(target, checkpoint); end
def output(text = T.unsafe(nil)); end
@@ -80,6 +80,9 @@ MiniPortile::TAR_EXECUTABLES = T.let(T.unsafe(nil), Array)
MiniPortile::VERSION = T.let(T.unsafe(nil), String)
class MiniPortileCMake < ::MiniPortile
+ def initialize(name, version, **kwargs); end
+
+ def cmake_cmd; end
def configure; end
def configure_defaults; end
def configure_prefix; end | true |
Other | Homebrew | brew | d891ade8321284edd3da6bf9382755e16b6d17ca.json | Update RBI files for mini_portile2. | Library/Homebrew/sorbet/rbi/gems/nokogiri@1.13.0.rbi | @@ -1,9 +1,9 @@
+# typed: true
+
# DO NOT EDIT MANUALLY
# This is an autogenerated file for types exported from the `nokogiri` gem.
# Please instead update this file by running `bin/tapioca gem nokogiri`.
-# typed: true
-
module Nokogiri
class << self
def HTML(input, url = T.unsafe(nil), encoding = T.unsafe(nil), options = T.unsafe(nil), &block); end
@@ -14,6 +14,7 @@ module Nokogiri
def XSLT(stylesheet, modules = T.unsafe(nil)); end
def install_default_aliases; end
def jruby?; end
+ def libxml2_patches; end
def make(input = T.unsafe(nil), opts = T.unsafe(nil), &blk); end
def parse(string, url = T.unsafe(nil), encoding = T.unsafe(nil), options = T.unsafe(nil)); end
def uses_gumbo?; end
@@ -35,7 +36,7 @@ class Nokogiri::CSS::Node
def find_by_type(types); end
def to_a; end
def to_type; end
- def to_xpath(prefix = T.unsafe(nil), visitor = T.unsafe(nil)); end
+ def to_xpath(prefix, visitor); end
def type; end
def type=(_arg0); end
def value; end
@@ -104,12 +105,13 @@ class Nokogiri::CSS::Parser < ::Racc::Parser
def _reduce_8(val, _values, result); end
def _reduce_9(val, _values, result); end
def _reduce_none(val, _values, result); end
+ def cache_key(query, prefix, visitor); end
def next_token; end
def on_error(error_token_id, error_value, value_stack); end
def parse(string); end
def unescape_css_identifier(identifier); end
def unescape_css_string(str); end
- def xpath_for(string, options = T.unsafe(nil)); end
+ def xpath_for(string, prefix, visitor); end
class << self
def [](string); end
@@ -144,7 +146,11 @@ end
class Nokogiri::CSS::Tokenizer::ScanError < ::StandardError; end
class Nokogiri::CSS::XPathVisitor
+ def initialize(builtins: T.unsafe(nil), doctype: T.unsafe(nil)); end
+
def accept(node); end
+ def config; end
+ def visit_attrib_name(node); end
def visit_attribute_condition(node); end
def visit_child_selector(node); end
def visit_class_condition(node); end
@@ -162,25 +168,40 @@ class Nokogiri::CSS::XPathVisitor
private
def css_class(hay, needle); end
- def css_class_builtin(hay, needle); end
- def css_class_standard(hay, needle); 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
end
-class Nokogiri::CSS::XPathVisitorAlwaysUseBuiltins < ::Nokogiri::CSS::XPathVisitor
- private
+module Nokogiri::CSS::XPathVisitor::BuiltinsConfig; end
+Nokogiri::CSS::XPathVisitor::BuiltinsConfig::ALWAYS = T.let(T.unsafe(nil), Symbol)
+Nokogiri::CSS::XPathVisitor::BuiltinsConfig::NEVER = T.let(T.unsafe(nil), Symbol)
+Nokogiri::CSS::XPathVisitor::BuiltinsConfig::OPTIMAL = T.let(T.unsafe(nil), Symbol)
+Nokogiri::CSS::XPathVisitor::BuiltinsConfig::VALUES = T.let(T.unsafe(nil), Array)
+module Nokogiri::CSS::XPathVisitor::DoctypeConfig; end
+Nokogiri::CSS::XPathVisitor::DoctypeConfig::HTML4 = T.let(T.unsafe(nil), Symbol)
+Nokogiri::CSS::XPathVisitor::DoctypeConfig::HTML5 = T.let(T.unsafe(nil), Symbol)
+Nokogiri::CSS::XPathVisitor::DoctypeConfig::VALUES = T.let(T.unsafe(nil), Array)
+Nokogiri::CSS::XPathVisitor::DoctypeConfig::XML = T.let(T.unsafe(nil), Symbol)
+Nokogiri::CSS::XPathVisitor::WILDCARD_NAMESPACES = T.let(T.unsafe(nil), TrueClass)
- def css_class(hay, needle); end
+module Nokogiri::CSS::XPathVisitorAlwaysUseBuiltins
+ class << self
+ def new; end
+ end
end
-class Nokogiri::CSS::XPathVisitorOptimallyUseBuiltins < ::Nokogiri::CSS::XPathVisitor
- private
+module Nokogiri::CSS::XPathVisitorOptimallyUseBuiltins
+ class << self
+ def new; end
+ end
+end
- def css_class(hay, needle); end
+module Nokogiri::ClassResolver
+ def related_class(class_name); end
end
+Nokogiri::ClassResolver::VALID_NAMESPACES = T.let(T.unsafe(nil), Set)
module Nokogiri::Decorators; end
module Nokogiri::Decorators::Slop
@@ -218,7 +239,7 @@ Nokogiri::HTML = Nokogiri::HTML4
module Nokogiri::HTML4
class << self
- def fragment(string, encoding = T.unsafe(nil)); end
+ def fragment(string, encoding = T.unsafe(nil), options = T.unsafe(nil), &block); end
def parse(input, url = T.unsafe(nil), encoding = T.unsafe(nil), options = T.unsafe(nil), &block); end
end
end
@@ -238,6 +259,7 @@ class Nokogiri::HTML4::Document < ::Nokogiri::XML::Document
def title; end
def title=(text); end
def type; end
+ def xpath_doctype; end
private
@@ -284,10 +306,10 @@ class Nokogiri::HTML4::Document::EncodingReader::SAXHandler < ::Nokogiri::XML::S
end
class Nokogiri::HTML4::DocumentFragment < ::Nokogiri::XML::DocumentFragment
- def initialize(document, tags = T.unsafe(nil), ctx = T.unsafe(nil)); end
+ def initialize(document, tags = T.unsafe(nil), ctx = T.unsafe(nil), options = T.unsafe(nil)); end
class << self
- def parse(tags, encoding = T.unsafe(nil)); end
+ def parse(tags, encoding = T.unsafe(nil), options = T.unsafe(nil), &block); end
end
end
@@ -485,6 +507,7 @@ end
class Nokogiri::HTML5::Document < ::Nokogiri::HTML4::Document
def fragment(tags = T.unsafe(nil)); end
def to_xml(options = T.unsafe(nil), &block); end
+ def xpath_doctype; end
class << self
def do_parse(string_or_io, url, encoding, options); end
@@ -581,7 +604,7 @@ module Nokogiri::XML
def Reader(string_or_io, url = T.unsafe(nil), encoding = T.unsafe(nil), options = T.unsafe(nil)); end
def RelaxNG(string_or_io, options = T.unsafe(nil)); end
def Schema(string_or_io, options = T.unsafe(nil)); end
- def fragment(string); end
+ def fragment(string, options = T.unsafe(nil), &block); end
def parse(thing, url = T.unsafe(nil), encoding = T.unsafe(nil), options = T.unsafe(nil), &block); end
end
end
@@ -609,6 +632,8 @@ class Nokogiri::XML::AttributeDecl < ::Nokogiri::XML::Node
end
class Nokogiri::XML::Builder
+ include ::Nokogiri::ClassResolver
+
def initialize(options = T.unsafe(nil), root = T.unsafe(nil), &block); end
def <<(string); end
@@ -712,6 +737,7 @@ class Nokogiri::XML::Document < ::Nokogiri::XML::Node
def url; end
def validate; end
def version; end
+ def xpath_doctype; end
private
@@ -732,7 +758,7 @@ Nokogiri::XML::Document::NCNAME_RE = T.let(T.unsafe(nil), Regexp)
Nokogiri::XML::Document::NCNAME_START_CHAR = T.let(T.unsafe(nil), String)
class Nokogiri::XML::DocumentFragment < ::Nokogiri::XML::Node
- def initialize(document, tags = T.unsafe(nil), ctx = T.unsafe(nil)); end
+ def initialize(document, tags = T.unsafe(nil), ctx = T.unsafe(nil), options = T.unsafe(nil)); end
def css(*args); end
def dup; end
@@ -753,7 +779,7 @@ class Nokogiri::XML::DocumentFragment < ::Nokogiri::XML::Node
class << self
def new(*_arg0); end
- def parse(tags); end
+ def parse(tags, options = T.unsafe(nil), &block); end
end
end
@@ -834,14 +860,14 @@ class Nokogiri::XML::Node
include ::Nokogiri::HTML5::Node
include ::Nokogiri::XML::PP::Node
include ::Nokogiri::XML::Searchable
+ include ::Nokogiri::ClassResolver
include ::Enumerable
def initialize(name, document); end
def <<(node_or_tags); end
def <=>(other); end
def ==(other); end
- def >(selector); end
def [](name); end
def []=(name, value); end
def accept(visitor); end
@@ -1064,7 +1090,6 @@ class Nokogiri::XML::NodeSet
def -(_arg0); end
def <<(_arg0); end
def ==(other); end
- def >(selector); end
def [](*_arg0); end
def add_class(name); end
def after(datum); end
@@ -1133,6 +1158,8 @@ class Nokogiri::XML::ParseOptions
def initialize(options = T.unsafe(nil)); end
def ==(other); end
+ def big_lines; end
+ def big_lines?; end
def compact; end
def compact?; end
def default_html; end
@@ -1154,6 +1181,7 @@ class Nokogiri::XML::ParseOptions
def inspect; end
def nobasefix; end
def nobasefix?; end
+ def nobig_lines; end
def noblanks; end
def noblanks?; end
def nocdata; end
@@ -1213,6 +1241,7 @@ class Nokogiri::XML::ParseOptions
def xinclude?; end
end
+Nokogiri::XML::ParseOptions::BIG_LINES = T.let(T.unsafe(nil), Integer)
Nokogiri::XML::ParseOptions::COMPACT = T.let(T.unsafe(nil), Integer)
Nokogiri::XML::ParseOptions::DEFAULT_HTML = T.let(T.unsafe(nil), Integer)
Nokogiri::XML::ParseOptions::DEFAULT_SCHEMA = T.let(T.unsafe(nil), Integer)
@@ -1416,6 +1445,7 @@ end
module Nokogiri::XML::Searchable
def %(*args); end
def /(*args); end
+ def >(selector); end
def at(*args); end
def at_css(*args); end
def at_xpath(*args); end
@@ -1471,6 +1501,10 @@ Nokogiri::XML::XML_C14N_1_0 = T.let(T.unsafe(nil), Integer)
Nokogiri::XML::XML_C14N_1_1 = T.let(T.unsafe(nil), Integer)
Nokogiri::XML::XML_C14N_EXCLUSIVE_1_0 = T.let(T.unsafe(nil), Integer)
module Nokogiri::XML::XPath; end
+Nokogiri::XML::XPath::CURRENT_SEARCH_PREFIX = T.let(T.unsafe(nil), String)
+Nokogiri::XML::XPath::GLOBAL_SEARCH_PREFIX = T.let(T.unsafe(nil), String)
+Nokogiri::XML::XPath::ROOT_SEARCH_PREFIX = T.let(T.unsafe(nil), String)
+Nokogiri::XML::XPath::SUBTREE_SEARCH_PREFIX = T.let(T.unsafe(nil), String)
class Nokogiri::XML::XPath::SyntaxError < ::Nokogiri::XML::SyntaxError
def to_s; end | true |
Other | Homebrew | brew | 3f834dee6d2fb2fe7e255995d12a14dbaad7ad53.json | Update RBI files for sorbet. | Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi | @@ -2620,10 +2620,10 @@ module Homebrew::EnvConfig
def self.display_install_times?(); end
- def self.docker_registry_token(); end
-
def self.docker_registry_basic_auth_token(); end
+ def self.docker_registry_token(); end
+
def self.editor(); end
def self.fail_log_lines(); end | false |
Other | Homebrew | brew | 83d4e339bf843cd57e60211664efc122ae09df81.json | Update RBI files for thor. | Library/Homebrew/sorbet/rbi/gems/thor@1.2.1.rbi | @@ -1,9 +1,9 @@
+# typed: true
+
# DO NOT EDIT MANUALLY
# This is an autogenerated file for types exported from the `thor` gem.
# Please instead update this file by running `bin/tapioca gem thor`.
-# typed: true
-
class Thor
include ::Thor::Base
include ::Thor::Invocation
@@ -388,6 +388,7 @@ class Thor::CoreExt::HashWithIndifferentAccess < ::Hash
def [](key); end
def []=(key, value); end
def delete(key); end
+ def except(*keys); end
def fetch(key, *args); end
def key?(key); end
def merge(other); end
@@ -600,6 +601,8 @@ class Thor::Options < ::Thor::Arguments
def parse(args); end
def peek; end
def remaining; end
+ def shift; end
+ def unshift(arg, is_value: T.unsafe(nil)); end
protected
@@ -639,6 +642,7 @@ module Thor::Shell
def print_table(*args, &block); end
def print_wrapped(*args, &block); end
def say(*args, &block); end
+ def say_error(*args, &block); end
def say_status(*args, &block); end
def set_color(*args, &block); end
def shell; end
@@ -670,6 +674,7 @@ class Thor::Shell::Basic
def print_table(array, options = T.unsafe(nil)); end
def print_wrapped(message, options = T.unsafe(nil)); end
def say(message = T.unsafe(nil), color = T.unsafe(nil), force_new_line = T.unsafe(nil)); end
+ def say_error(message = T.unsafe(nil), color = T.unsafe(nil), force_new_line = T.unsafe(nil)); end
def say_status(status, message, log_status = T.unsafe(nil)); end
def set_color(string, *_arg1); end
def terminal_width; end | false |
Other | Homebrew | brew | 01959eb01924b02198246a346f94402d03676396.json | Update RBI files for rspec_junit_formatter. | Library/Homebrew/sorbet/rbi/gems/rspec_junit_formatter@0.5.0.rbi | @@ -1,9 +1,9 @@
+# typed: true
+
# DO NOT EDIT MANUALLY
# This is an autogenerated file for types exported from the `rspec_junit_formatter` gem.
# Please instead update this file by running `bin/tapioca gem rspec_junit_formatter`.
-# typed: true
-
class RSpecJUnitFormatter < ::RSpec::Core::Formatters::BaseFormatter
def dump_summary(notification); end
def start(notification); end
@@ -15,6 +15,7 @@ class RSpecJUnitFormatter < ::RSpec::Core::Formatters::BaseFormatter
def description_for(notification); end
def duration; end
def duration_for(notification); end
+ def error_count; end
def escape(text); end
def example_count; end
def example_group_file_path_for(notification); end | false |
Other | Homebrew | brew | 2c193d7796d54fe6adc2eb9cf33ff14fc36a4b7a.json | Update RBI files for parser. | Library/Homebrew/sorbet/rbi/gems/parser@3.1.0.0.rbi | @@ -407,22 +407,26 @@ class Parser::ClobberingError < ::RuntimeError; end
class Parser::Context
def initialize; end
- def class_definition_allowed?; end
- def dynamic_const_definition_allowed?; end
- def empty?; end
- def in_block?; end
- def in_class?; end
- def in_def_open_args?; end
+ def in_argdef; end
+ def in_argdef=(_arg0); end
+ def in_block; end
+ def in_block=(_arg0); end
+ def in_class; end
+ def in_class=(_arg0); end
+ def in_def; end
+ def in_def=(_arg0); end
+ def in_defined; end
+ def in_defined=(_arg0); end
def in_dynamic_block?; end
- def in_lambda?; end
- def indirectly_in_def?; end
- def module_definition_allowed?; end
- def pop; end
- def push(state); end
+ def in_kwarg; end
+ def in_kwarg=(_arg0); end
+ def in_lambda; end
+ def in_lambda=(_arg0); end
def reset; end
- def stack; end
end
+Parser::Context::FLAGS = T.let(T.unsafe(nil), Array)
+
class Parser::CurrentArgStack
def initialize; end
@@ -501,8 +505,6 @@ class Parser::Lexer
def encoding; end
def force_utf32; end
def force_utf32=(_arg0); end
- def in_kwarg; end
- def in_kwarg=(_arg0); end
def lambda_stack; end
def paren_nest; end
def pop_cmdarg; end
@@ -693,7 +695,7 @@ class Parser::MaxNumparamStack
def has_ordinary_params!; end
def has_ordinary_params?; end
def pop; end
- def push; end
+ def push(static:); end
def register(numparam); end
def stack; end
def top; end
@@ -887,17 +889,17 @@ class Parser::Ruby26 < ::Parser::Base
def _reduce_334(val, _values, result); end
def _reduce_335(val, _values, result); end
def _reduce_337(val, _values, result); end
+ def _reduce_338(val, _values, result); end
+ def _reduce_339(val, _values, result); end
def _reduce_340(val, _values, result); end
- def _reduce_344(val, _values, result); end
- def _reduce_346(val, _values, result); end
+ def _reduce_343(val, _values, result); end
+ def _reduce_347(val, _values, result); end
def _reduce_349(val, _values, result); end
def _reduce_35(val, _values, result); end
- def _reduce_350(val, _values, result); end
- def _reduce_351(val, _values, result); end
def _reduce_352(val, _values, result); end
+ def _reduce_353(val, _values, result); end
def _reduce_354(val, _values, result); end
def _reduce_355(val, _values, result); end
- def _reduce_356(val, _values, result); end
def _reduce_357(val, _values, result); end
def _reduce_358(val, _values, result); end
def _reduce_359(val, _values, result); end
@@ -916,18 +918,18 @@ class Parser::Ruby26 < ::Parser::Base
def _reduce_370(val, _values, result); end
def _reduce_371(val, _values, result); end
def _reduce_372(val, _values, result); end
+ def _reduce_373(val, _values, result); end
def _reduce_374(val, _values, result); end
def _reduce_375(val, _values, result); end
- def _reduce_376(val, _values, result); end
def _reduce_377(val, _values, result); end
def _reduce_378(val, _values, result); end
def _reduce_379(val, _values, result); end
def _reduce_38(val, _values, result); end
def _reduce_380(val, _values, result); end
def _reduce_381(val, _values, result); end
+ def _reduce_382(val, _values, result); end
def _reduce_383(val, _values, result); end
def _reduce_384(val, _values, result); end
- def _reduce_385(val, _values, result); end
def _reduce_386(val, _values, result); end
def _reduce_387(val, _values, result); end
def _reduce_388(val, _values, result); end
@@ -936,9 +938,9 @@ class Parser::Ruby26 < ::Parser::Base
def _reduce_390(val, _values, result); end
def _reduce_391(val, _values, result); end
def _reduce_392(val, _values, result); end
+ def _reduce_393(val, _values, result); end
def _reduce_394(val, _values, result); end
def _reduce_395(val, _values, result); end
- def _reduce_396(val, _values, result); end
def _reduce_397(val, _values, result); end
def _reduce_398(val, _values, result); end
def _reduce_399(val, _values, result); end
@@ -975,15 +977,15 @@ class Parser::Ruby26 < ::Parser::Base
def _reduce_426(val, _values, result); end
def _reduce_427(val, _values, result); end
def _reduce_428(val, _values, result); end
+ def _reduce_429(val, _values, result); end
def _reduce_430(val, _values, result); end
def _reduce_431(val, _values, result); end
- def _reduce_432(val, _values, result); end
+ def _reduce_433(val, _values, result); end
+ def _reduce_434(val, _values, result); end
def _reduce_435(val, _values, result); end
- def _reduce_437(val, _values, result); end
+ def _reduce_438(val, _values, result); end
def _reduce_44(val, _values, result); end
- def _reduce_442(val, _values, result); end
- def _reduce_443(val, _values, result); end
- def _reduce_444(val, _values, result); end
+ def _reduce_440(val, _values, result); end
def _reduce_445(val, _values, result); end
def _reduce_446(val, _values, result); end
def _reduce_447(val, _values, result); end
@@ -1017,10 +1019,10 @@ class Parser::Ruby26 < ::Parser::Base
def _reduce_474(val, _values, result); end
def _reduce_475(val, _values, result); end
def _reduce_476(val, _values, result); end
+ def _reduce_477(val, _values, result); end
def _reduce_478(val, _values, result); end
def _reduce_479(val, _values, result); end
def _reduce_48(val, _values, result); end
- def _reduce_480(val, _values, result); end
def _reduce_481(val, _values, result); end
def _reduce_482(val, _values, result); end
def _reduce_483(val, _values, result); end
@@ -1079,9 +1081,9 @@ class Parser::Ruby26 < ::Parser::Base
def _reduce_532(val, _values, result); end
def _reduce_533(val, _values, result); end
def _reduce_534(val, _values, result); end
+ def _reduce_535(val, _values, result); end
def _reduce_536(val, _values, result); end
def _reduce_537(val, _values, result); end
- def _reduce_538(val, _values, result); end
def _reduce_539(val, _values, result); end
def _reduce_54(val, _values, result); end
def _reduce_540(val, _values, result); end
@@ -1095,37 +1097,40 @@ class Parser::Ruby26 < ::Parser::Base
def _reduce_548(val, _values, result); end
def _reduce_549(val, _values, result); end
def _reduce_550(val, _values, result); end
+ def _reduce_551(val, _values, result); end
+ def _reduce_552(val, _values, result); end
def _reduce_553(val, _values, result); end
- def _reduce_554(val, _values, result); end
- def _reduce_555(val, _values, result); end
def _reduce_556(val, _values, result); end
def _reduce_557(val, _values, result); end
def _reduce_558(val, _values, result); end
def _reduce_559(val, _values, result); end
def _reduce_560(val, _values, result); end
+ def _reduce_561(val, _values, result); end
+ def _reduce_562(val, _values, result); end
def _reduce_563(val, _values, result); end
- def _reduce_564(val, _values, result); end
+ def _reduce_566(val, _values, result); end
def _reduce_567(val, _values, result); end
- def _reduce_568(val, _values, result); end
- def _reduce_569(val, _values, result); end
+ def _reduce_570(val, _values, result); end
def _reduce_571(val, _values, result); end
def _reduce_572(val, _values, result); end
def _reduce_574(val, _values, result); end
def _reduce_575(val, _values, result); end
- def _reduce_576(val, _values, result); end
def _reduce_577(val, _values, result); end
def _reduce_578(val, _values, result); end
def _reduce_579(val, _values, result); end
def _reduce_58(val, _values, result); end
+ def _reduce_580(val, _values, result); end
+ def _reduce_581(val, _values, result); end
+ def _reduce_582(val, _values, result); end
def _reduce_59(val, _values, result); end
- def _reduce_592(val, _values, result); end
- def _reduce_593(val, _values, result); end
- def _reduce_598(val, _values, result); end
- def _reduce_599(val, _values, result); end
+ def _reduce_595(val, _values, result); end
+ def _reduce_596(val, _values, result); end
def _reduce_6(val, _values, result); end
def _reduce_60(val, _values, result); end
- def _reduce_603(val, _values, result); end
- def _reduce_607(val, _values, result); end
+ def _reduce_601(val, _values, result); end
+ def _reduce_602(val, _values, result); end
+ def _reduce_606(val, _values, result); end
+ def _reduce_610(val, _values, result); end
def _reduce_62(val, _values, result); end
def _reduce_63(val, _values, result); end
def _reduce_64(val, _values, result); end
@@ -1166,6 +1171,8 @@ class Parser::Ruby26 < ::Parser::Base
def _reduce_99(val, _values, result); end
def _reduce_none(val, _values, result); end
def default_encoding; end
+ def local_pop; end
+ def local_push; end
def version; end
end
| false |
Other | Homebrew | brew | 2ad3f0a089716048fe5b7bc0984d2835181c8327.json | Patch neither glibc nor glibc@* using patchelf
Patching the dynamic linker of glibc breaks it. | Library/Homebrew/extend/os/linux/keg_relocate.rb | @@ -6,7 +6,7 @@
class Keg
def relocate_dynamic_linkage(relocation)
# Patching the dynamic linker of glibc breaks it.
- return if name == "glibc"
+ return if name == "glibc" || name.start_with?("glibc@")
# Patching patchelf fails with "Text file busy" or SIGBUS.
return if name == "patchelf" | false |
Other | Homebrew | brew | 4e68a7b5bc11c26d92f15bca1bb1cd301d04dcb2.json | Allow linkage to libnss_files.so.2 on Linux
libnss_nis.so.2 in glibc@2.13 has linkage to libnss_files.so.2. | Library/Homebrew/extend/os/linux/linkage_checker.rb | @@ -15,6 +15,7 @@ class LinkageChecker
libm.so.6
libmvec.so.1
libnsl.so.1
+ libnss_files.so.2
libpthread.so.0
libresolv.so.2
librt.so.1 | false |
Other | Homebrew | brew | f60421f20ab8c73f8c236d75dea1318625327d77.json | Update RBI files for rubocop. | Library/Homebrew/sorbet/rbi/gems/rubocop@1.24.1.rbi | @@ -1572,7 +1572,7 @@ class RuboCop::Cop::Gemspec::RequireMFA < ::RuboCop::Cop::Base
def autocorrect(corrector, node, block_var, metadata); end
def change_value(corrector, value); end
def correct_metadata(corrector, metadata); end
- def correct_missing_metadata(corrector, node, block_var); end
+ def insert_mfa_required(corrector, node, block_var); end
def mfa_value(metadata_value); end
end
@@ -5116,10 +5116,11 @@ class RuboCop::Cop::Lint::ParenthesesAsGroupedExpression < ::RuboCop::Cop::Base
def chained_calls?(node); end
def first_argument_starts_with_left_parenthesis?(node); end
- def operator_keyword?(node); end
def space_range(expr, space_length); end
def spaces_before_left_parenthesis(node); end
+ def ternary_expression?(node); end
def valid_context?(node); end
+ def valid_first_argument?(first_arg); end
end
RuboCop::Cop::Lint::ParenthesesAsGroupedExpression::MSG = T.let(T.unsafe(nil), String)
@@ -6518,6 +6519,7 @@ RuboCop::Cop::Naming::BinaryOperatorParameterName::OP_LIKE_METHODS = T.let(T.uns
class RuboCop::Cop::Naming::BlockForwarding < ::RuboCop::Cop::Base
include ::RuboCop::Cop::ConfigurableEnforcedStyle
+ include ::RuboCop::Cop::RangeHelp
extend ::RuboCop::Cop::AutoCorrector
extend ::RuboCop::Cop::TargetRubyVersion
@@ -8610,6 +8612,9 @@ class RuboCop::Cop::Style::FileWrite < ::RuboCop::Cop::Base
private
def file_open_write?(node); end
+ def heredoc?(write_node); end
+ def heredoc_range(first_argument); end
+ def replacement(mode, filename, content, write_node); end
def write_method(mode); end
end
@@ -9341,6 +9346,7 @@ module RuboCop::Cop::Style::MethodCallWithArgsParentheses::OmitParentheses
def omit_parentheses(node); end
def parentheses_at_the_end_of_multiline_call?(node); end
def regexp_slash_literal?(node); end
+ def require_parentheses_for_hash_value_omission?(node); end
def splat?(node); end
def super_call_without_arguments?(node); end
def syntax_like_method_call?(node); end
@@ -9402,9 +9408,9 @@ class RuboCop::Cop::Style::MethodDefParentheses < ::RuboCop::Cop::Base
private
+ def anonymous_block_arg?(node); end
def arguments_without_parentheses?(node); end
def correct_arguments(arg_node, corrector); end
- def correct_definition(def_node, corrector); end
def forced_parentheses?(node); end
def missing_parentheses(node); end
def require_parentheses?(args); end | false |
Other | Homebrew | brew | 442af3772a0aa05801d9f380a3b8e27b3e427d2b.json | Update RBI files for rubocop-performance. | Library/Homebrew/sorbet/rbi/gems/rubocop-performance@1.13.0.rbi | @@ -46,10 +46,7 @@ class RuboCop::Cop::Performance::BigDecimalWithNumericArgument < ::RuboCop::Cop:
def big_decimal_with_numeric_argument?(param0 = T.unsafe(nil)); end
def on_send(node); end
-
- private
-
- def specifies_precision?(node); end
+ def to_d?(param0 = T.unsafe(nil)); end
end
RuboCop::Cop::Performance::BigDecimalWithNumericArgument::MSG = T.let(T.unsafe(nil), String)
@@ -406,8 +403,10 @@ class RuboCop::Cop::Performance::MapCompact < ::RuboCop::Cop::Base
private
+ def compact_method_with_final_newline_range(compact_method_range); end
def invoke_method_after_map_compact_on_same_line?(compact_node, chained_method); end
- def remove_compact_method(corrector, compact_node); end
+ def map_method_and_compact_method_on_same_line?(compact_node); end
+ def remove_compact_method(corrector, compact_node, chained_method); end
end
RuboCop::Cop::Performance::MapCompact::MSG = T.let(T.unsafe(nil), String)
@@ -586,6 +585,7 @@ class RuboCop::Cop::Performance::RedundantStringChars < ::RuboCop::Cop::Base
def build_bad_method(method, args); end
def build_call_args(call_args_node); end
def build_good_method(method, args); end
+ def build_good_method_for_brackets_or_first_method(method, args); end
def build_message(method, args); end
def correction_range(receiver, node); end
def offense_range(receiver, node); end
@@ -734,6 +734,15 @@ end
RuboCop::Cop::Performance::StartWith::MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::Performance::StartWith::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
+class RuboCop::Cop::Performance::StringIdentifierArgument < ::RuboCop::Cop::Base
+ extend ::RuboCop::Cop::AutoCorrector
+
+ def on_send(node); end
+end
+
+RuboCop::Cop::Performance::StringIdentifierArgument::MSG = T.let(T.unsafe(nil), String)
+RuboCop::Cop::Performance::StringIdentifierArgument::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
+
class RuboCop::Cop::Performance::StringInclude < ::RuboCop::Cop::Base
extend ::RuboCop::Cop::AutoCorrector
| false |
Other | Homebrew | brew | a57c3b06a1aa4a7b2bc0bd6832a776123e2b6bf0.json | Update RBI files for rubocop-rails. | Library/Homebrew/sorbet/rbi/gems/rubocop-rails@2.13.0.rbi | @@ -1,9 +1,9 @@
+# typed: true
+
# DO NOT EDIT MANUALLY
# This is an autogenerated file for types exported from the `rubocop-rails` gem.
# Please instead update this file by running `bin/tapioca gem rubocop-rails`.
-# typed: true
-
module RuboCop; end
module RuboCop::Cop; end
@@ -25,6 +25,17 @@ end
RuboCop::Cop::ActiveRecordHelper::WHERE_METHODS = T.let(T.unsafe(nil), Array)
+module RuboCop::Cop::ActiveRecordMigrationsHelper
+ extend ::RuboCop::AST::NodePattern::Macros
+
+ def create_table_with_block?(param0 = T.unsafe(nil)); end
+end
+
+RuboCop::Cop::ActiveRecordMigrationsHelper::MYSQL_SCHEMA_DEFINITIONS = T.let(T.unsafe(nil), Array)
+RuboCop::Cop::ActiveRecordMigrationsHelper::POSTGRES_SCHEMA_DEFINITIONS = T.let(T.unsafe(nil), Array)
+RuboCop::Cop::ActiveRecordMigrationsHelper::RAILS_ABSTRACT_SCHEMA_DEFINITIONS = T.let(T.unsafe(nil), Array)
+RuboCop::Cop::ActiveRecordMigrationsHelper::RAILS_ABSTRACT_SCHEMA_DEFINITIONS_HELPERS = T.let(T.unsafe(nil), Array)
+
module RuboCop::Cop::EnforceSuperclass
def on_class(node); end
def on_send(node); end
@@ -372,6 +383,26 @@ RuboCop::Cop::Rails::BulkChangeTable::POSTGRESQL = T.let(T.unsafe(nil), String)
RuboCop::Cop::Rails::BulkChangeTable::POSTGRESQL_COMBINABLE_ALTER_METHODS = T.let(T.unsafe(nil), Array)
RuboCop::Cop::Rails::BulkChangeTable::POSTGRESQL_COMBINABLE_TRANSFORMATIONS = T.let(T.unsafe(nil), Array)
+class RuboCop::Cop::Rails::CompactBlank < ::RuboCop::Cop::Base
+ include ::RuboCop::Cop::RangeHelp
+ extend ::RuboCop::Cop::AutoCorrector
+ extend ::RuboCop::Cop::TargetRailsVersion
+
+ def on_send(node); end
+ def reject_with_block?(param0 = T.unsafe(nil)); end
+ def reject_with_block_pass?(param0 = T.unsafe(nil)); end
+
+ private
+
+ def bad_method?(node); end
+ def offense_range(node); end
+ def preferred_method(node); end
+ def use_hash_value_block_argument?(arguments, receiver_in_block); end
+end
+
+RuboCop::Cop::Rails::CompactBlank::MSG = T.let(T.unsafe(nil), String)
+RuboCop::Cop::Rails::CompactBlank::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
+
class RuboCop::Cop::Rails::ContentTag < ::RuboCop::Cop::Base
include ::RuboCop::Cop::RangeHelp
extend ::RuboCop::Cop::AutoCorrector
@@ -394,7 +425,8 @@ RuboCop::Cop::Rails::ContentTag::MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::Rails::ContentTag::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
class RuboCop::Cop::Rails::CreateTableWithTimestamps < ::RuboCop::Cop::Base
- def create_table_with_block?(param0 = T.unsafe(nil)); end
+ include ::RuboCop::Cop::ActiveRecordMigrationsHelper
+
def create_table_with_timestamps_proc?(param0 = T.unsafe(nil)); end
def created_at_or_updated_at_included?(param0); end
def on_send(node); end
@@ -480,6 +512,23 @@ end
RuboCop::Cop::Rails::DelegateAllowBlank::MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::Rails::DelegateAllowBlank::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
+class RuboCop::Cop::Rails::DurationArithmetic < ::RuboCop::Cop::Base
+ extend ::RuboCop::Cop::AutoCorrector
+
+ def duration?(param0 = T.unsafe(nil)); end
+ def duration_arithmetic_argument?(param0 = T.unsafe(nil)); end
+ def on_send(node); end
+ def time_current?(param0 = T.unsafe(nil)); end
+
+ private
+
+ def corrected_source(operator, duration); end
+end
+
+RuboCop::Cop::Rails::DurationArithmetic::DURATIONS = T.let(T.unsafe(nil), Set)
+RuboCop::Cop::Rails::DurationArithmetic::MSG = T.let(T.unsafe(nil), String)
+RuboCop::Cop::Rails::DurationArithmetic::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
+
class RuboCop::Cop::Rails::DynamicFindBy < ::RuboCop::Cop::Base
include ::RuboCop::Cop::ActiveRecordHelper
extend ::RuboCop::Cop::AutoCorrector
@@ -1248,6 +1297,29 @@ end
RuboCop::Cop::Rails::RedundantForeignKey::MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::Rails::RedundantForeignKey::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
+class RuboCop::Cop::Rails::RedundantPresenceValidationOnBelongsTo < ::RuboCop::Cop::Base
+ include ::RuboCop::Cop::RangeHelp
+ extend ::RuboCop::Cop::AutoCorrector
+ extend ::RuboCop::Cop::TargetRailsVersion
+
+ def any_belongs_to?(param0 = T.unsafe(nil), association:); end
+ def belongs_to?(param0 = T.unsafe(nil), key:, fk:); end
+ def belongs_to_with_a_matching_fk?(param0 = T.unsafe(nil), param1); end
+ def belongs_to_without_fk?(param0 = T.unsafe(nil), param1); end
+ def on_send(node); end
+ def optional?(param0 = T.unsafe(nil)); end
+ def optional_option?(param0 = T.unsafe(nil)); end
+ def presence_validation?(param0 = T.unsafe(nil)); end
+
+ private
+
+ def belongs_to_for(model_class_node, key); end
+ def remove_presence_validation(corrector, node, options, presence); end
+end
+
+RuboCop::Cop::Rails::RedundantPresenceValidationOnBelongsTo::MSG = T.let(T.unsafe(nil), String)
+RuboCop::Cop::Rails::RedundantPresenceValidationOnBelongsTo::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
+
class RuboCop::Cop::Rails::RedundantReceiverInWithOptions < ::RuboCop::Cop::Base
include ::RuboCop::Cop::RangeHelp
extend ::RuboCop::Cop::AutoCorrector
@@ -1422,6 +1494,22 @@ end
RuboCop::Cop::Rails::ReversibleMigrationMethodDefinition::MSG = T.let(T.unsafe(nil), String)
+class RuboCop::Cop::Rails::RootJoinChain < ::RuboCop::Cop::Base
+ include ::RuboCop::Cop::RangeHelp
+ extend ::RuboCop::Cop::AutoCorrector
+
+ def join?(param0 = T.unsafe(nil)); end
+ def on_send(node); end
+ def rails_root?(param0 = T.unsafe(nil)); end
+
+ private
+
+ def evidence(node); end
+end
+
+RuboCop::Cop::Rails::RootJoinChain::MSG = T.let(T.unsafe(nil), String)
+RuboCop::Cop::Rails::RootJoinChain::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Set)
+
class RuboCop::Cop::Rails::SafeNavigation < ::RuboCop::Cop::Base
include ::RuboCop::Cop::RangeHelp
extend ::RuboCop::Cop::AutoCorrector
@@ -1497,6 +1585,30 @@ RuboCop::Cop::Rails::SaveBang::MODIFY_PERSIST_METHODS = T.let(T.unsafe(nil), Arr
RuboCop::Cop::Rails::SaveBang::MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::Rails::SaveBang::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
+class RuboCop::Cop::Rails::SchemaComment < ::RuboCop::Cop::Base
+ include ::RuboCop::Cop::ActiveRecordMigrationsHelper
+
+ def add_column?(param0 = T.unsafe(nil)); end
+ def add_column_with_comment?(param0 = T.unsafe(nil)); end
+ def comment_present?(param0 = T.unsafe(nil)); end
+ def create_table?(param0 = T.unsafe(nil)); end
+ def create_table_with_comment?(param0 = T.unsafe(nil)); end
+ def on_send(node); end
+ def t_column?(param0 = T.unsafe(nil)); end
+ def t_column_with_comment?(param0 = T.unsafe(nil)); end
+
+ private
+
+ def add_column_without_comment?(node); end
+ def create_table_column_call_without_comment?(node); end
+ def create_table_without_comment?(node); end
+end
+
+RuboCop::Cop::Rails::SchemaComment::COLUMN_MSG = T.let(T.unsafe(nil), String)
+RuboCop::Cop::Rails::SchemaComment::CREATE_TABLE_COLUMN_METHODS = T.let(T.unsafe(nil), Set)
+RuboCop::Cop::Rails::SchemaComment::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
+RuboCop::Cop::Rails::SchemaComment::TABLE_MSG = T.let(T.unsafe(nil), String)
+
class RuboCop::Cop::Rails::ScopeArgs < ::RuboCop::Cop::Base
extend ::RuboCop::Cop::AutoCorrector
@@ -1613,7 +1725,6 @@ class RuboCop::Cop::Rails::UniqBeforePluck < ::RuboCop::Cop::Base
def dot_method_begin_pos(method, node); end
def dot_method_with_whitespace(method, node); end
- def style_parameter_name; end
end
RuboCop::Cop::Rails::UniqBeforePluck::MSG = T.let(T.unsafe(nil), String) | true |
Other | Homebrew | brew | a57c3b06a1aa4a7b2bc0bd6832a776123e2b6bf0.json | Update RBI files for rubocop-rails. | Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi | @@ -5128,9 +5128,12 @@ 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_REMOVE_BELONGS_TO_REMOVE_REFERENCE = ::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 | 9141c883c27b099e505665f89ce62dc135bbf772.json | Update RBI files for zeitwerk. | Library/Homebrew/sorbet/rbi/gems/zeitwerk@2.5.2.rbi | @@ -1,9 +1,9 @@
+# typed: true
+
# DO NOT EDIT MANUALLY
# This is an autogenerated file for types exported from the `zeitwerk` gem.
# Please instead update this file by running `bin/tapioca gem zeitwerk`.
-# typed: true
-
module Kernel
extend ::Forwardable
| false |
Other | Homebrew | brew | eb640ffd44f3a96ffd39a9918510653751be84bd.json | Update RBI files for rubocop-rspec. | Library/Homebrew/sorbet/rbi/gems/rubocop-rspec@2.7.0.rbi | @@ -151,21 +151,18 @@ RuboCop::Cop::RSpec::Capybara::CurrentPathExpectation::MSG = T.let(T.unsafe(nil)
RuboCop::Cop::RSpec::Capybara::CurrentPathExpectation::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
class RuboCop::Cop::RSpec::Capybara::FeatureMethods < ::RuboCop::Cop::RSpec::Base
+ include ::RuboCop::Cop::RSpec::InsideExampleGroup
extend ::RuboCop::Cop::AutoCorrector
def capybara_speak(param0 = T.unsafe(nil)); end
def feature_method(param0 = T.unsafe(nil)); end
def message(range); end
def on_block(node); end
- def spec?(param0 = T.unsafe(nil)); end
private
def enabled?(method_name); end
def enabled_methods; end
- def inside_spec?(node); end
- def root_node?(node); end
- def root_with_siblings?(node); end
end
RuboCop::Cop::RSpec::Capybara::FeatureMethods::MAP = T.let(T.unsafe(nil), Hash)
@@ -573,6 +570,7 @@ RuboCop::Cop::RSpec::FactoryBot::AttributeDefinedStatically::MSG = T.let(T.unsaf
class RuboCop::Cop::RSpec::FactoryBot::CreateList < ::RuboCop::Cop::RSpec::Base
include ::RuboCop::Cop::ConfigurableEnforcedStyle
+ include ::RuboCop::RSpec::FactoryBot::Language
extend ::RuboCop::Cop::AutoCorrector
def factory_call(param0 = T.unsafe(nil)); end
@@ -644,6 +642,23 @@ RuboCop::Cop::RSpec::FactoryBot::FactoryClassName::ALLOWED_CONSTANTS = T.let(T.u
RuboCop::Cop::RSpec::FactoryBot::FactoryClassName::MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::RSpec::FactoryBot::FactoryClassName::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
+class RuboCop::Cop::RSpec::FactoryBot::SyntaxMethods < ::RuboCop::Cop::RSpec::Base
+ include ::RuboCop::Cop::RSpec::InsideExampleGroup
+ include ::RuboCop::Cop::RangeHelp
+ include ::RuboCop::RSpec::FactoryBot::Language
+ extend ::RuboCop::Cop::AutoCorrector
+
+ def on_send(node); end
+
+ private
+
+ def crime_scene(node); end
+ def offense(node); end
+end
+
+RuboCop::Cop::RSpec::FactoryBot::SyntaxMethods::MSG = T.let(T.unsafe(nil), String)
+RuboCop::Cop::RSpec::FactoryBot::SyntaxMethods::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Set)
+
class RuboCop::Cop::RSpec::FilePath < ::RuboCop::Cop::RSpec::Base
include ::RuboCop::Cop::RSpec::TopLevelGroup
@@ -808,6 +823,14 @@ end
RuboCop::Cop::RSpec::InflectedHelper::MSG_INFLECTED = T.let(T.unsafe(nil), String)
+module RuboCop::Cop::RSpec::InsideExampleGroup
+ private
+
+ def example_group_root?(node); end
+ def example_group_root_with_siblings?(node); end
+ def inside_example_group?(node); end
+end
+
class RuboCop::Cop::RSpec::InstanceSpy < ::RuboCop::Cop::RSpec::Base
extend ::RuboCop::Cop::AutoCorrector
@@ -1677,6 +1700,13 @@ end
RuboCop::RSpec::FactoryBot::ATTRIBUTE_DEFINING_METHODS = T.let(T.unsafe(nil), Array)
RuboCop::RSpec::FactoryBot::DEFINITION_PROXY_METHODS = T.let(T.unsafe(nil), Array)
+
+module RuboCop::RSpec::FactoryBot::Language
+ extend ::RuboCop::AST::NodePattern::Macros
+
+ def factory_bot?(param0 = T.unsafe(nil)); end
+end
+
RuboCop::RSpec::FactoryBot::RESERVED_METHODS = T.let(T.unsafe(nil), Array)
RuboCop::RSpec::FactoryBot::UNPROXIED_METHODS = T.let(T.unsafe(nil), Array)
| false |
Other | Homebrew | brew | 07e813a3b3e05121e4d17b9bbb77ed7db5d3d907.json | docs/Common-Issues.md: fix variable notation | docs/Common-Issues.md | @@ -127,7 +127,7 @@ If, however, you do not have a `.curlrc` or removing it did not work, let’s se
The cask is outdated. Let’s fix it:
1. Look around the app’s website and find out what the latest version is. It will likely be expressed in the URL used to download it.
-2. Take a look at the cask’s version (`brew cat {{cask_name}}`) and verify it is indeed outdated. If the app’s version is `:latest`, it means the `url` itself is outdated. It will need to be changed to the new one.
+2. Take a look at the cask’s version (`brew cat <cask_name>`) and verify it is indeed outdated. If the app’s version is `:latest`, it means the `url` itself is outdated. It will need to be changed to the new one.
Help us by [submitting a fix](https://github.com/Homebrew/homebrew-cask/blob/HEAD/CONTRIBUTING.md#updating-a-cask). If you get stumped, [open an issue](https://github.com/Homebrew/homebrew-cask/issues/new?template=01_bug_report.md) explaining your steps so far and where you’re having trouble.
| false |
Other | Homebrew | brew | c0b745e46b5e0b8bd66a97e97eb5d6c1911ccb95.json | Update RBI files for rubocop. | Library/Homebrew/sorbet/rbi/gems/rubocop@1.24.0.rbi | @@ -115,6 +115,18 @@ class RuboCop::CLI::Command::ShowCops < ::RuboCop::CLI::Command::Base
def selected_cops_of_department(cops, department); end
end
+class RuboCop::CLI::Command::ShowDocsUrl < ::RuboCop::CLI::Command::Base
+ def initialize(env); end
+
+ def run; end
+
+ private
+
+ def cops_array; end
+ def print_documentation_url; end
+ def registry_hash; end
+end
+
class RuboCop::CLI::Command::SuggestExtensions < ::RuboCop::CLI::Command::Base
def run; end
@@ -1321,12 +1333,16 @@ RuboCop::Cop::DefNode::NON_PUBLIC_MODIFIERS = T.let(T.unsafe(nil), Array)
module RuboCop::Cop::Documentation
private
+ def base_url_for(cop_class, config); end
+ def default_base_url; end
def department_to_basename(department); end
- def url_for(cop_class); end
+ def url_for(cop_class, config = T.unsafe(nil)); end
class << self
+ def base_url_for(cop_class, config); end
+ def default_base_url; end
def department_to_basename(department); end
- def url_for(cop_class); end
+ def url_for(cop_class, config = T.unsafe(nil)); end
end
end
@@ -1720,6 +1736,19 @@ module RuboCop::Cop::HashAlignmentStyles::ValueAlignment
def separator_delta(first_pair, current_pair, key_delta); end
end
+module RuboCop::Cop::HashShorthandSyntax
+ def on_pair(node); end
+
+ private
+
+ def enforced_shorthand_syntax; end
+ def require_hash_value?(hash_key_source, node); end
+ def without_parentheses_call_expr_follows?(node); end
+end
+
+RuboCop::Cop::HashShorthandSyntax::EXPLICIT_HASH_VALUE_MSG = T.let(T.unsafe(nil), String)
+RuboCop::Cop::HashShorthandSyntax::OMIT_HASH_VALUE_MSG = T.let(T.unsafe(nil), String)
+
module RuboCop::Cop::HashTransformMethod
extend ::RuboCop::AST::NodePattern::Macros
@@ -1802,6 +1831,22 @@ end
RuboCop::Cop::Heredoc::OPENING_DELIMITER = T.let(T.unsafe(nil), Regexp)
+class RuboCop::Cop::IfThenCorrector
+ def initialize(if_node, indentation: T.unsafe(nil)); end
+
+ def call(corrector); end
+
+ private
+
+ def branch_body_indentation; end
+ def if_node; end
+ def indentation; end
+ def replacement(node = T.unsafe(nil), indentation = T.unsafe(nil)); end
+ def rewrite_else_branch(else_branch, indentation); end
+end
+
+RuboCop::Cop::IfThenCorrector::DEFAULT_INDENTATION_WIDTH = T.let(T.unsafe(nil), Integer)
+
module RuboCop::Cop::IgnoredMethods
mixes_in_class_methods ::RuboCop::Cop::IgnoredMethods::Config
@@ -2138,8 +2183,9 @@ class RuboCop::Cop::Layout::CommentIndentation < ::RuboCop::Cop::Base
def autocorrect(corrector, comment); end
def autocorrect_one(corrector, comment); end
def autocorrect_preceding_comments(corrector, comment); end
- def check(comment); end
+ def check(comment, comment_index); end
def correct_indentation(next_line); end
+ def correctly_aligned_with_preceding_comment?(comment_index, column); end
def less_indented?(line); end
def line_after_comment(comment); end
def message(column, correct_comment_indentation); end
@@ -2204,6 +2250,10 @@ class RuboCop::Cop::Layout::DotPosition < ::RuboCop::Cop::Base
def proper_dot_position?(node); end
def receiver_end_line(node); end
def selector_range(node); end
+
+ class << self
+ def autocorrect_incompatible_with; end
+ end
end
class RuboCop::Cop::Layout::ElseAlignment < ::RuboCop::Cop::Base
@@ -3685,6 +3735,10 @@ class RuboCop::Cop::Layout::SpaceBeforeFirstArg < ::RuboCop::Cop::Base
def expect_params_after_method_name?(node); end
def no_space_between_method_name_and_first_argument?(node); end
def regular_method_call_with_arguments?(node); end
+
+ class << self
+ def autocorrect_incompatible_with; end
+ end
end
RuboCop::Cop::Layout::SpaceBeforeFirstArg::MSG = T.let(T.unsafe(nil), String)
@@ -4283,6 +4337,7 @@ class RuboCop::Cop::Lint::DeprecatedOpenSSLConstant < ::RuboCop::Cop::Base
extend ::RuboCop::Cop::AutoCorrector
def algorithm_const(param0 = T.unsafe(nil)); end
+ def digest_const?(param0 = T.unsafe(nil)); end
def on_send(node); end
private
@@ -6080,6 +6135,7 @@ class RuboCop::Cop::Metrics::BlockLength < ::RuboCop::Cop::Base
extend ::RuboCop::Cop::IgnoredMethods::Config
def on_block(node); end
+ def on_numblock(node); end
private
@@ -6123,7 +6179,6 @@ class RuboCop::Cop::Metrics::CyclomaticComplexity < ::RuboCop::Cop::Base
private
- def block_method(node); end
def complexity_score_for(node); end
def count_block?(block); end
end
@@ -6139,6 +6194,7 @@ class RuboCop::Cop::Metrics::MethodLength < ::RuboCop::Cop::Base
def on_block(node); end
def on_def(node); end
def on_defs(node); end
+ def on_numblock(node); end
private
@@ -6460,6 +6516,26 @@ RuboCop::Cop::Naming::BinaryOperatorParameterName::EXCLUDED = T.let(T.unsafe(nil
RuboCop::Cop::Naming::BinaryOperatorParameterName::MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::Naming::BinaryOperatorParameterName::OP_LIKE_METHODS = T.let(T.unsafe(nil), Array)
+class RuboCop::Cop::Naming::BlockForwarding < ::RuboCop::Cop::Base
+ include ::RuboCop::Cop::ConfigurableEnforcedStyle
+ extend ::RuboCop::Cop::AutoCorrector
+ extend ::RuboCop::Cop::TargetRubyVersion
+
+ def on_def(node); end
+ def on_defs(node); end
+
+ private
+
+ def anonymous_block_argument?(node); end
+ def expected_block_forwarding_style?(node, last_argument); end
+ def explicit_block_argument?(node); end
+ def register_offense(block_argument); end
+ def use_block_argument_as_local_variable?(node, last_argument); end
+ def use_kwarg_in_method_definition?(node); end
+end
+
+RuboCop::Cop::Naming::BlockForwarding::MSG = T.let(T.unsafe(nil), String)
+
class RuboCop::Cop::Naming::BlockParameterName < ::RuboCop::Cop::Base
include ::RuboCop::Cop::UncommunicativeName
@@ -7783,12 +7859,14 @@ class RuboCop::Cop::Style::CollectionCompact < ::RuboCop::Cop::Base
def on_send(node); end
def reject_method?(param0 = T.unsafe(nil)); end
+ def reject_method_with_block_pass?(param0 = T.unsafe(nil)); end
def select_method?(param0 = T.unsafe(nil)); end
private
def good_method_name(method_name); end
- def offense_range(send_node, block_node); end
+ def offense_range(node); end
+ def range(begin_pos_node, end_pos_node); end
end
RuboCop::Cop::Style::CollectionCompact::MSG = T.let(T.unsafe(nil), String)
@@ -8242,6 +8320,7 @@ class RuboCop::Cop::Style::EmptyCaseCondition < ::RuboCop::Cop::Base
def correct_case_when(corrector, case_node, when_nodes); end
def correct_when_conditions(corrector, when_nodes); end
def keep_first_when_comment(case_range, corrector); end
+ def replace_then_with_line_break(corrector, conditions, when_node); end
end
RuboCop::Cop::Style::EmptyCaseCondition::MSG = T.let(T.unsafe(nil), String)
@@ -8497,6 +8576,47 @@ end
RuboCop::Cop::Style::ExponentialNotation::MESSAGES = T.let(T.unsafe(nil), Hash)
+class RuboCop::Cop::Style::FileRead < ::RuboCop::Cop::Base
+ include ::RuboCop::Cop::RangeHelp
+ extend ::RuboCop::Cop::AutoCorrector
+
+ def block_read?(param0 = T.unsafe(nil)); end
+ def file_open?(param0 = T.unsafe(nil)); end
+ def on_send(node); end
+ def send_read?(param0 = T.unsafe(nil)); end
+
+ private
+
+ def evidence(node); end
+ def file_open_read?(node); end
+ def read_method(mode); end
+ def read_node?(node, block_pass); end
+end
+
+RuboCop::Cop::Style::FileRead::MSG = T.let(T.unsafe(nil), String)
+RuboCop::Cop::Style::FileRead::READ_FILE_START_TO_FINISH_MODES = T.let(T.unsafe(nil), Set)
+RuboCop::Cop::Style::FileRead::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
+
+class RuboCop::Cop::Style::FileWrite < ::RuboCop::Cop::Base
+ include ::RuboCop::Cop::RangeHelp
+ extend ::RuboCop::Cop::AutoCorrector
+
+ def block_write?(param0 = T.unsafe(nil)); end
+ def evidence(node); end
+ def file_open?(param0 = T.unsafe(nil)); end
+ def on_send(node); end
+ def send_write?(param0 = T.unsafe(nil)); end
+
+ private
+
+ def file_open_write?(node); end
+ def write_method(mode); end
+end
+
+RuboCop::Cop::Style::FileWrite::MSG = T.let(T.unsafe(nil), String)
+RuboCop::Cop::Style::FileWrite::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Set)
+RuboCop::Cop::Style::FileWrite::TRUNCATING_WRITE_MODES = T.let(T.unsafe(nil), Set)
+
class RuboCop::Cop::Style::FloatDivision < ::RuboCop::Cop::Base
include ::RuboCop::Cop::ConfigurableEnforcedStyle
extend ::RuboCop::Cop::AutoCorrector
@@ -8759,6 +8879,7 @@ RuboCop::Cop::Style::HashLikeCase::MSG = T.let(T.unsafe(nil), String)
class RuboCop::Cop::Style::HashSyntax < ::RuboCop::Cop::Base
include ::RuboCop::Cop::ConfigurableEnforcedStyle
+ include ::RuboCop::Cop::HashShorthandSyntax
include ::RuboCop::Cop::RangeHelp
extend ::RuboCop::Cop::AutoCorrector
@@ -8869,6 +8990,7 @@ class RuboCop::Cop::Style::IfInsideElse < ::RuboCop::Cop::Base
def correct_to_elsif_from_modifier_form(corrector, node); end
def find_end_range(node); end
def if_condition_range(node, condition); end
+ def then?(node); end
end
RuboCop::Cop::Style::IfInsideElse::MSG = T.let(T.unsafe(nil), String)
@@ -9151,6 +9273,22 @@ RuboCop::Cop::Style::LineEndConcatenation::MSG = T.let(T.unsafe(nil), String)
RuboCop::Cop::Style::LineEndConcatenation::QUOTE_DELIMITERS = T.let(T.unsafe(nil), Array)
RuboCop::Cop::Style::LineEndConcatenation::SIMPLE_STRING_TOKEN_TYPE = T.let(T.unsafe(nil), Symbol)
+class RuboCop::Cop::Style::MapToHash < ::RuboCop::Cop::Base
+ include ::RuboCop::Cop::RangeHelp
+ extend ::RuboCop::Cop::AutoCorrector
+ extend ::RuboCop::Cop::TargetRubyVersion
+
+ def map_to_h?(param0 = T.unsafe(nil)); end
+ def on_send(node); end
+
+ private
+
+ def autocorrect(corrector, to_h, map); end
+end
+
+RuboCop::Cop::Style::MapToHash::MSG = T.let(T.unsafe(nil), String)
+RuboCop::Cop::Style::MapToHash::RESTRICT_ON_SEND = T.let(T.unsafe(nil), Array)
+
class RuboCop::Cop::Style::MethodCallWithArgsParentheses < ::RuboCop::Cop::Base
include ::RuboCop::Cop::ConfigurableEnforcedStyle
include ::RuboCop::Cop::IgnoredMethods
@@ -9872,6 +10010,7 @@ class RuboCop::Cop::Style::NumericLiterals < ::RuboCop::Cop::Base
private
+ def allowed_numbers; end
def check(node); end
def format_int_part(int_part); end
def format_number(node); end
@@ -9917,16 +10056,15 @@ class RuboCop::Cop::Style::OneLineConditional < ::RuboCop::Cop::Base
private
def always_multiline?; end
- def branch_body_indentation; end
+ def autocorrect(corrector, node); end
def cannot_replace_to_ternary?(node); end
- def else_branch_to_multiline(else_branch, indentation); end
def expr_replacement(node); end
+ def indentation_width; end
def keyword_with_changed_precedence?(node); end
def message(node); end
def method_call_with_changed_precedence?(node); end
- def multiline_replacement(node, indentation = T.unsafe(nil)); end
- def replacement(node); end
def requires_parentheses?(node); end
+ def ternary_correction(node); end
def ternary_replacement(node); end
end
@@ -10457,6 +10595,7 @@ class RuboCop::Cop::Style::RedundantInterpolation < ::RuboCop::Cop::Base
def embedded_in_percent_array?(node); end
def implicit_concatenation?(node); end
def interpolation?(node); end
+ def require_parentheses?(node); end
def single_interpolation?(node); end
def single_variable_interpolation?(node); end
def variable_interpolation?(node); end | false |
Other | Homebrew | brew | c6b18e369d8eed632352c8b5a68e5e9d7aad7419.json | Update RBI files for diff-lcs. | Library/Homebrew/sorbet/rbi/gems/diff-lcs@1.5.0.rbi | @@ -1,9 +1,9 @@
+# typed: true
+
# DO NOT EDIT MANUALLY
# This is an autogenerated file for types exported from the `diff-lcs` gem.
# Please instead update this file by running `bin/tapioca gem diff-lcs`.
-# typed: true
-
module Diff; end
module Diff::LCS | false |
Other | Homebrew | brew | 61b068cd7c0f04631ef6ff6fafc499c0f7ffaa88.json | Update RBI files for did_you_mean. | Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi | @@ -1197,6 +1197,14 @@ module DidYouMean::Correctable
def to_s(); end
end
+class DidYouMean::Formatter
+ def message_for(corrections); end
+end
+
+class DidYouMean::Formatter
+ def self.message_for(corrections); end
+end
+
module DidYouMean::Jaro
def self.distance(str1, str2); end
end
@@ -1241,13 +1249,17 @@ class DidYouMean::NullChecker
def initialize(*arg); end
end
-class DidYouMean::PlainFormatter
- def message_for(corrections); end
+class DidYouMean::PatternKeyNameChecker
+ def corrections(); end
+
+ def initialize(no_matching_pattern_key_error); end
end
-class DidYouMean::PlainFormatter
+class DidYouMean::PatternKeyNameChecker
end
+DidYouMean::PlainFormatter = DidYouMean::Formatter
+
class DidYouMean::RequirePathChecker
def corrections(); end
@@ -1310,6 +1322,8 @@ module DidYouMean
def self.formatter(); end
def self.formatter=(formatter); end
+
+ def self.spell_checkers(); end
end
class Dir | false |
Other | Homebrew | brew | 820e8303dfca47644b53467baba1c7bd7caa86b1.json | docs: add common cask issues | docs/Common-Issues.md | @@ -113,6 +113,90 @@ xcode-select --install
brew upgrade
```
+## Cask - cURL error
+
+First, let's tackle a common problem: do you have a `.curlrc` file? Check with `ls -A ~ | grep .curlrc` (if you get a result, the file exists). Those are a frequent cause of issues of this nature. Before anything else, remove that file and try again. If it now works, do not open an issue. Incompatible `.curlrc` configurations must be fixed on your side.
+
+If, however, you do not have a `.curlrc` or removing it did not work, let’s see if the issue is upstream:
+
+1. Go to the vendor’s website (`brew home <cask_name>`).
+2. Find the download link for the app and click on it.
+
+### If the download works
+
+The cask is outdated. Let’s fix it:
+
+1. Look around the app’s website and find out what the latest version is. It will likely be expressed in the URL used to download it.
+2. Take a look at the cask’s version (`brew cat {{cask_name}}`) and verify it is indeed outdated. If the app’s version is `:latest`, it means the `url` itself is outdated. It will need to be changed to the new one.
+
+Help us by [submitting a fix](https://github.com/Homebrew/homebrew-cask/blob/HEAD/CONTRIBUTING.md#updating-a-cask). If you get stumped, [open an issue](https://github.com/Homebrew/homebrew-cask/issues/new?template=01_bug_report.md) explaining your steps so far and where you’re having trouble.
+
+### If the download does not work
+
+The issue isn’t in any way related to Homebrew Cask, but with the vendor or your connection.
+
+Start by diagnosing your connection (try to download other casks, go around the web). If the problem is with your connection, try a website like [Ask Different](https://apple.stackexchange.com/) to ask for advice.
+
+If you’re sure the issue is not with your connection, contact the app’s vendor and let them know their link is down, so they can fix it.
+
+**Do not open an issue.**
+
+## Cask - checksum does not match
+
+First, check if the problem was with your download. Delete the downloaded file (its location will be pointed out in the error message) and try again.
+
+If the problem persists, the cask must be outdated. It’ll likely need a new version, but it’s possible the version has remained the same (happens occasionally when the vendor updates the app in place).
+
+1. Go to the vendor’s website (`brew home <cask_name>`).
+2. Find out what the latest version is. It may be expressed in the URL used to download it.
+3. Take a look at the cask’s version (`brew info <cask_name>`) and verify it is indeed outdated. If it is:
+
+Help us by [submitting a fix](https://github.com/Homebrew/homebrew-cask/blob/HEAD/CONTRIBUTING.md#updating-a-cask). If you get stumped, [open an issue](https://github.com/Homebrew/homebrew-cask/issues/new?template=01_bug_report.md) explaining your steps so far and where you’re having trouble.
+
+## Cask - permission denied
+
+In this case, it’s likely your user account has no admin rights so you don’t have permissions to write to `/Applications` (which is the default). You can use [`--appdir`](https://github.com/Homebrew/homebrew-cask/blob/HEAD/USAGE.md#options) to choose where to install your applications.
+
+If `--appdir` doesn’t fix the issue or you do have write permissions to `/Applications`, verify you’re the owner of the `Caskroom` directory by running `ls -dl "$(brew --prefix)/Caskroom"` and checking the third field. If you are not the owner, fix it with `sudo chown -R "$(whoami)" "$(brew --prefix)/Caskroom"`. If you are, the problem may lie in the app bundle itself.
+
+Some app bundles don’t have certain permissions that are necessary for us to move them to the appropriate location. You may check such permissions with `ls -ls <path_to_app_bundle>`. If you see something like `dr-xr-xr-x` at the start of the output, that may be the cause. To fix it, we change the app bundle’s permission to allow us to move it, and then set it back to what it was (in case the developer set those permissions deliberately). See [`litecoin`](https://github.com/Homebrew/homebrew-cask/blob/0cde71f1fea8ad62d6ec4732fcf35ac0c52d8792/Casks/litecoin.rb#L14L20) for an example of such a cask.
+
+Help us by [submitting a fix](https://github.com/Homebrew/homebrew-cask/blob/HEAD/CONTRIBUTING.md#updating-a-cask). If you get stumped, [open an issue](https://github.com/Homebrew/homebrew-cask/issues/new?template=01_bug_report.md) explaining your steps so far and where you’re having trouble.
+
+## Cask - source is not there
+
+First, you need to identify which artifact is not being handled correctly anymore. It’s explicit in the error message: if it says `It seems the App source…'` the problem is [`app`](https://docs.brew.sh/Cask-Cookbook#stanza-app). The pattern is the same across [all artifacts](https://docs.brew.sh/Cask-Cookbook#at-least-one-artifact-stanza-is-also-required).
+
+Fixing this error is typically easy, and requires only a bit of time on your part. Start by downloading the package for the cask: `brew fetch <cask_name>`. The last line of output will inform you of the location of the download. Navigate there and manually unpack it. As an example, lets say the structure inside the archive is as follows:
+
+```
+.
+├─ Files/SomeApp.app
+├─ Files/script.sh
+└─ README.md
+```
+
+Now, let's look at the cask (`brew cat <cask_name>`):
+
+```
+(…)
+app "SomeApp.app"
+(…)
+```
+
+The cask was expecting `SomeApp.app` to be in the top directory of the archive (see how it says simply `SomeApp.app`) but the developer changed it to inside a `Files` directory. All we have to do is update that line of the cask to follow the new structure: `app 'Files/SomeApp.app'`.
+
+Note that occasionally the app’s name changes completely (from `SomeApp.app` to `OtherApp.app`, let's say). In these instances, the filename of the cask itself, as well as its token, must also change. Consult the [`token reference`](https://docs.brew.sh/Cask-Cookbook#token-reference) for complete instructions on the new name.
+
+Help us by [submitting a fix](https://github.com/Homebrew/homebrew-cask/blob/HEAD/CONTRIBUTING.md#updating-a-cask). If you get stumped, [open an issue](https://github.com/Homebrew/homebrew-cask/issues/new?template=01_bug_report.md) explaining your steps so far and where you’re having trouble.
+
+## Cask - wrong number of arguments
+
+Make sure the issue really lies with your macOS version. To do so, try to install the software manually. If it is incompatible with your macOS version, it will tell you. In that case, there is nothing we can do to help you install the software, but we can add a [`depends_on macos:`](https://docs.brew.sh/Cask-Cookbook#depends_on-macos) stanza to prevent the cask from trying to install on incompatible macOS versions.
+
+Help us by [submitting a fix](https://github.com/Homebrew/homebrew-cask/blob/HEAD/CONTRIBUTING.md#updating-a-cask). If you get stumped, [open an issue](https://github.com/Homebrew/homebrew-cask/issues/new?template=01_bug_report.md) explaining your steps so far and where you’re having trouble.
+
+
## Other local issues
If your Homebrew installation gets messed up (and fixing the issues found by `brew doctor` doesn't solve the problem), reinstalling Homebrew may help to reset to a normal state. To easily reinstall Homebrew, use [Homebrew Bundle](https://github.com/Homebrew/homebrew-bundle) to automatically restore your installed formulae and casks. To do so, run `brew bundle dump`, [uninstall](https://docs.brew.sh/FAQ#how-do-i-uninstall-homebrew), [reinstall](https://docs.brew.sh/Installation) and run `brew bundle install`. | false |
Other | Homebrew | brew | 2efe117e6049e873a748b33e69342482c403c1b6.json | Update RBI files for tapioca. | Library/Homebrew/sorbet/rbi/gems/tapioca@0.6.0.rbi | @@ -57,6 +57,15 @@ class DynamicMixinCompiler
def instance_attribute_writers; 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
@@ -122,7 +131,7 @@ class RBI::Tree < ::RBI::NodeWithComments
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)).void }
+ 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 }
@@ -134,13 +143,13 @@ class RBI::Tree < ::RBI::NodeWithComments
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).void }
- def create_method(name, parameters: T.unsafe(nil), return_type: T.unsafe(nil), class_method: T.unsafe(nil)); 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)).void }
+ 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 }
@@ -220,12 +229,17 @@ 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
@@ -237,16 +251,24 @@ class Tapioca::Cli < ::Thor
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 { void }
- def initialize; end
+ sig { params(compiler: Tapioca::Compilers::DslCompiler).void }
+ def initialize(compiler); end
sig { params(error: String).void }
def add_error(error); end
@@ -260,6 +282,9 @@ class Tapioca::Compilers::Dsl::Base
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
@@ -280,6 +305,21 @@ class Tapioca::Compilers::Dsl::Base
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
+
+ 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
@@ -292,9 +332,6 @@ class Tapioca::Compilers::Dsl::Base
sig { params(name: String, type: String).returns(RBI::TypedParam) }
def create_kw_rest_param(name, type:); 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(name: String, type: String, default: String).returns(RBI::TypedParam) }
def create_opt_param(name, type:, default:); end
@@ -306,27 +343,25 @@ class Tapioca::Compilers::Dsl::Base
sig { params(param: RBI::Param, type: String).returns(RBI::TypedParam) }
def create_typed_param(param, type); 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
end
-Tapioca::Compilers::Dsl::COMPILERS_PATH = T.let(T.unsafe(nil), String)
-
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.nilable(T.proc.params(error: String).void)).void }
- def initialize(requested_constants:, requested_generators: T.unsafe(nil), excluded_generators: T.unsafe(nil), error_handler: T.unsafe(nil)); end
+ 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 { params(blk: T.proc.params(constant: Module, rbi: RBI::File).void).void }
+ 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
@@ -405,6 +440,9 @@ class Tapioca::Compilers::SymbolTable::SymbolGenerator
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
@@ -504,15 +542,15 @@ class Tapioca::Compilers::SymbolTable::SymbolGenerator
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(symbol: String, inherit: T::Boolean, namespace: Module).returns(BasicObject) }
- def resolve_constant(symbol, inherit: T.unsafe(nil), namespace: T.unsafe(nil)); end
-
sig { params(sig_string: String).returns(String) }
def sanitize_signature_types(sig_string); end
@@ -576,67 +614,50 @@ class Tapioca::Compilers::TodosCompiler
def list_todos; end
end
-class Tapioca::Config < ::T::Struct
- const :doc, T::Boolean, default: T.unsafe(nil)
- const :exclude, T::Array[String]
- const :exclude_generators, T::Array[String]
- const :file_header, T::Boolean, default: T.unsafe(nil)
- const :generators, T::Array[String]
- const :outdir, String
- const :postrequire, String
- const :prerequire, T.nilable(String)
- const :todos_path, String
- const :typed_overrides, T::Hash[String, String]
+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(Pathname) }
- def outpath; end
+ sig { returns(String) }
+ def command_name; end
- class << self
- def inherited(s); end
- end
-end
+ sig { returns(Thor::CoreExt::HashWithIndifferentAccess) }
+ def defaults; end
-Tapioca::Config::DEFAULT_COMMAND = T.let(T.unsafe(nil), String)
-Tapioca::Config::DEFAULT_DSLDIR = T.let(T.unsafe(nil), String)
-Tapioca::Config::DEFAULT_GEMDIR = T.let(T.unsafe(nil), String)
-Tapioca::Config::DEFAULT_OVERRIDES = T.let(T.unsafe(nil), Hash)
-Tapioca::Config::DEFAULT_POSTREQUIRE = T.let(T.unsafe(nil), String)
-Tapioca::Config::DEFAULT_RBIDIR = T.let(T.unsafe(nil), String)
-Tapioca::Config::DEFAULT_TODOSPATH = T.let(T.unsafe(nil), String)
-Tapioca::Config::SORBET_CONFIG = T.let(T.unsafe(nil), String)
-Tapioca::Config::SORBET_PATH = T.let(T.unsafe(nil), String)
-Tapioca::Config::TAPIOCA_CONFIG = T.let(T.unsafe(nil), String)
-Tapioca::Config::TAPIOCA_PATH = T.let(T.unsafe(nil), String)
-
-class Tapioca::ConfigBuilder
- class << self
- sig { params(command: Symbol, options: T::Hash[String, T.untyped]).returns(Tapioca::Config) }
- def from_options(command, options); end
+ sig { returns(Thor::CoreExt::HashWithIndifferentAccess) }
+ def options; end
- private
+ private
- sig { returns(T::Hash[String, T.untyped]) }
- def config_options; end
+ sig { params(options: Thor::CoreExt::HashWithIndifferentAccess).returns(Thor::CoreExt::HashWithIndifferentAccess) }
+ def config_options(options); end
- sig { params(command: Symbol).returns(T::Hash[String, T.untyped]) }
- def default_options(command); end
+ sig { params(options: T::Hash[Symbol, Thor::Option]).void }
+ def filter_defaults(options); end
- sig { params(options: T::Hash[String, T.untyped]).returns(T::Hash[String, T.untyped]) }
- def merge_options(*options); end
- end
+ sig { params(options: T.nilable(Thor::CoreExt::HashWithIndifferentAccess)).returns(Thor::CoreExt::HashWithIndifferentAccess) }
+ def merge_options(*options); end
end
-Tapioca::ConfigBuilder::DEFAULT_OPTIONS = T.let(T.unsafe(nil), Hash)
+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
-module Tapioca::ConstantLocator
- extend ::Tapioca::Reflection
+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
- class << self
- def files_for(klass); end
- 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
-class Tapioca::Error < ::StandardError; end
+Tapioca::Executor::MINIMUM_ITEMS_PER_WORKER = T.let(T.unsafe(nil), Integer)
class Tapioca::Gemfile
sig { void }
@@ -687,6 +708,15 @@ class Tapioca::Gemfile::GemSpec
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
@@ -739,6 +769,7 @@ 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
@@ -758,8 +789,8 @@ class Tapioca::Generators::Base
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(message: String, color: T.any(Symbol, T::Array[Symbol])).void }
- def say_error(message = T.unsafe(nil), *color); 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
@@ -768,8 +799,8 @@ class Tapioca::Generators::Base::FileWriter < ::Thor
end
class Tapioca::Generators::Dsl < ::Tapioca::Generators::Base
- sig { params(requested_constants: T::Array[String], outpath: Pathname, generators: T::Array[String], exclude_generators: 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).void }
- def initialize(requested_constants:, outpath:, generators:, exclude_generators:, 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)); end
+ 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
@@ -803,6 +834,9 @@ class Tapioca::Generators::Dsl < ::Tapioca::Generators::Base
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
@@ -821,9 +855,6 @@ class Tapioca::Generators::Dsl < ::Tapioca::Generators::Base
sig { params(path: Pathname).returns(T::Array[Pathname]) }
def rbi_files_in(path); end
- sig { params(filename: Pathname).void }
- def remove(filename); end
-
sig { params(diff: T::Hash[String, Symbol], command: String).void }
def report_diff_and_exit_if_out_of_date(diff, command); end
@@ -835,8 +866,8 @@ class Tapioca::Generators::Dsl < ::Tapioca::Generators::Base
end
class Tapioca::Generators::Gem < ::Tapioca::Generators::Base
- sig { params(gem_names: T::Array[String], gem_excludes: 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, file_writer: Thor::Actions).void }
- def initialize(gem_names:, gem_excludes:, prerequire:, postrequire:, typed_overrides:, default_command:, outpath:, file_header:, doc:, file_writer: T.unsafe(nil)); end
+ 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
@@ -885,6 +916,9 @@ class Tapioca::Generators::Gem < ::Tapioca::Generators::Base
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
@@ -897,9 +931,6 @@ class Tapioca::Generators::Gem < ::Tapioca::Generators::Base
sig { void }
def perform_sync_verification; end
- sig { params(filename: Pathname).void }
- def remove(filename); end
-
sig { returns(T::Array[String]) }
def removed_rbis; end
@@ -911,25 +942,25 @@ class Tapioca::Generators::Gem < ::Tapioca::Generators::Base
end
class Tapioca::Generators::Init < ::Tapioca::Generators::Base
- sig { params(sorbet_config: String, default_postrequire: String, default_command: String, file_writer: Thor::Actions).void }
- def initialize(sorbet_config:, default_postrequire:, default_command:, file_writer: T.unsafe(nil)); end
+ 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_config; end
+ def create_binstub; end
sig { void }
def create_post_require; end
sig { void }
- def generate_binstub; end
+ def create_sorbet_config; end
sig { void }
- def generate_binstub!; end
+ def create_tapioca_config; end
sig { returns(Bundler::Installer) }
def installer; end
@@ -947,8 +978,8 @@ class Tapioca::Generators::Require < ::Tapioca::Generators::Base
end
class Tapioca::Generators::Todo < ::Tapioca::Generators::Base
- sig { params(todos_path: String, file_header: T::Boolean, default_command: String, file_writer: Thor::Actions).void }
- def initialize(todos_path:, file_header:, default_command:, file_writer: T.unsafe(nil)); end
+ 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
@@ -1023,6 +1054,9 @@ module Tapioca::Reflection
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
@@ -1078,6 +1112,52 @@ Tapioca::Reflection::PROTECTED_INSTANCE_METHODS_METHOD = T.let(T.unsafe(nil), Un
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::TypeMember < ::T::Types::TypeMember
sig { params(variance: Symbol, fixed: T.untyped, lower: T.untyped, upper: T.untyped).void } | true |
Other | Homebrew | brew | 2efe117e6049e873a748b33e69342482c403c1b6.json | Update RBI files for tapioca. | Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi | @@ -3190,6 +3190,8 @@ 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
@@ -3469,6 +3471,8 @@ class MockExpectationError
end
class Module
+ def autoload_without_tapioca(arg, arg1); end
+
def context(*a, &b); end
def describe(*a, &b); end
@@ -6848,12 +6852,41 @@ class Tapioca::Compilers::Dsl::Base
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
+ extend ::T::Private::Methods::SingletonMethodHooks
+end
+
class Tempfile
def _close(); end
end | true |
Other | Homebrew | brew | caf310038f1dda4f8efd37fa1b095844b2664102.json | linkage: display executables with missing rpath
An executable that links against @rpath-prefixed dylibs must include at least
one runtime path. This will prevent issues like the one resolved in #91485.
Caveats:
1. This won't find executables that have only recursive dylib dependencies with
@rpath prefixes.
2. This makes no attempt to resolve @rpath, @executable_path or @loader_path
dylibs, or to verify the correctness of any LC_RPATH entries, or to
otherwise simulate dlopen logic.
3. Weakly-linked dylibs are still excluded from the search for broken linkage.
The scope is narrow in order to focus on this particular problem. It is meant
only as a sanity check. | Library/Homebrew/extend/pathname.rb | @@ -451,6 +451,11 @@ def mach_o_bundle?
def dylib?
false
end
+
+ sig { returns(T::Array[String]) }
+ def rpaths
+ []
+ end
end
require "extend/os/pathname" | true |
Other | Homebrew | brew | caf310038f1dda4f8efd37fa1b095844b2664102.json | linkage: display executables with missing rpath
An executable that links against @rpath-prefixed dylibs must include at least
one runtime path. This will prevent issues like the one resolved in #91485.
Caveats:
1. This won't find executables that have only recursive dylib dependencies with
@rpath prefixes.
2. This makes no attempt to resolve @rpath, @executable_path or @loader_path
dylibs, or to verify the correctness of any LC_RPATH entries, or to
otherwise simulate dlopen logic.
3. Weakly-linked dylibs are still excluded from the search for broken linkage.
The scope is narrow in order to focus on this particular problem. It is meant
only as a sanity check. | Library/Homebrew/linkage_checker.rb | @@ -32,6 +32,7 @@ def initialize(keg, formula = nil, cache_db:, rebuild_cache: false)
@unnecessary_deps = []
@unwanted_system_dylibs = []
@version_conflict_deps = []
+ @executables_missing_rpaths = []
check_dylibs(rebuild_cache: rebuild_cache)
end
@@ -46,6 +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
end
def display_reverse_output
@@ -69,11 +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
end
sig { params(strict: T::Boolean).returns(T::Boolean) }
def broken_library_linkage?(strict: false)
- issues = [@broken_deps, @unwanted_system_dylibs, @version_conflict_deps]
+ issues = [@broken_deps, @unwanted_system_dylibs, @version_conflict_deps, @executables_missing_rpaths]
issues << @undeclared_deps if strict
[issues, unexpected_broken_dylibs, unexpected_present_dylibs].flatten.any?(&:present?)
end
@@ -152,9 +155,18 @@ def check_dylibs(rebuild_cache:)
checked_dylibs = Set.new
keg_files_dylibs.each do |file, dylibs|
+ file_has_any_rpath_dylibs = T.let(false, T::Boolean)
dylibs.each do |dylib|
@reverse_links[dylib] << file
+ # Binary executables 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?
+ end
+
next if checked_dylibs.include? dylib
checked_dylibs << dylib | true |
Other | Homebrew | brew | caf310038f1dda4f8efd37fa1b095844b2664102.json | linkage: display executables with missing rpath
An executable that links against @rpath-prefixed dylibs must include at least
one runtime path. This will prevent issues like the one resolved in #91485.
Caveats:
1. This won't find executables that have only recursive dylib dependencies with
@rpath prefixes.
2. This makes no attempt to resolve @rpath, @executable_path or @loader_path
dylibs, or to verify the correctness of any LC_RPATH entries, or to
otherwise simulate dlopen logic.
3. Weakly-linked dylibs are still excluded from the search for broken linkage.
The scope is narrow in order to focus on this particular problem. It is meant
only as a sanity check. | Library/Homebrew/os/linux/elf.rb | @@ -86,12 +86,20 @@ def binary_executable?
elf_type == :executable
end
+ # The runtime search path, such as:
+ # "/lib:/usr/lib:/usr/local/lib"
def rpath
return @rpath if defined? @rpath
@rpath = rpath_using_patchelf_rb
end
+ # An array of runtime search path entries, such as:
+ # ["/lib", "/usr/lib", "/usr/local/lib"]
+ def rpaths
+ rpath.split(":")
+ end
+
def interpreter
return @interpreter if defined? @interpreter
| true |
Other | Homebrew | brew | 48f772c58527b13a09fd790eceb472513363542e.json | Add new CPUs to test | Library/Homebrew/test/hardware/cpu_spec.rb | @@ -28,6 +28,7 @@
:amd_k10,
:amd_k12,
:arm,
+ :arm_blizzard_avalanche,
:arm_firestorm_icestorm,
:arm_hurricane_zephyr,
:arm_lightning_thunder,
@@ -40,6 +41,7 @@
:broadwell,
:bulldozer,
:cannonlake,
+ :cometlake,
:core,
:core2,
:dothan, | false |
Other | Homebrew | brew | 405aeac2d8a3a7c4aaa929b06492df3a77b6a4f1.json | Add latest CPUs | Library/Homebrew/extend/os/mac/hardware/cpu.rb | @@ -107,6 +107,8 @@ def arm_family
:arm_lightning_thunder
when 0x573b5eec, 0x1b588bb3 # ARMv8.4-A (Firestorm, Icestorm)
:arm_firestorm_icestorm
+ when 0xda33d83d # ARMv8.4-A (Blizzard, Avalanche)
+ :arm_blizzard_avalanche
else
:dunno
end
@@ -138,6 +140,8 @@ def intel_family
:kabylake
when 0x38435547 # Ice Lake
:icelake
+ when 0x1cf8a03e # Comet Lake
+ :cometlake
else
:dunno
end | false |
Other | Homebrew | brew | 98427176cf6f796738dee755317c19318986a59a.json | sorbet/rbi/upstream.rbi: remove old workaround | Library/Homebrew/sorbet/rbi/upstream.rbi | @@ -21,14 +21,3 @@ class Module
end
def define_method(arg0, arg1=T.unsafe(nil), &blk); end
end
-
-class Pathname
- # https://github.com/sorbet/sorbet/pull/4660
- sig do
- params(
- consider_symlink: T::Boolean,
- )
- .returns(Pathname)
- end
- def cleanpath(consider_symlink=T.unsafe(nil)); end
-end | false |
Other | Homebrew | brew | 091c1777f07682d78824a41048e0a19913b978a2.json | Update RBI files for simplecov-cobertura. | Library/Homebrew/sorbet/rbi/gems/simplecov-cobertura@2.1.0.rbi | @@ -61,6 +61,8 @@ module SimpleCov::Formatter
end
class SimpleCov::Formatter::CoberturaFormatter
+ def initialize(result_file_name: T.unsafe(nil)); end
+
def format(result); end
private | false |
Other | Homebrew | brew | cef23046ed151cf36ab3d21d959709ccd08794d8.json | Update RBI files for minitest. | Library/Homebrew/sorbet/rbi/gems/minitest@5.15.0.rbi | @@ -1,9 +1,9 @@
+# typed: true
+
# DO NOT EDIT MANUALLY
# This is an autogenerated file for types exported from the `minitest` gem.
# Please instead update this file by running `bin/tapioca gem minitest`.
-# typed: true
-
module Minitest
class << self
def __run(reporter, options); end
@@ -292,6 +292,7 @@ class Minitest::Test < ::Minitest::Runnable
def capture_exceptions; end
def class_name; end
def run; end
+ def sanitize_exception(e); end
def with_info_handler(&block); end
class << self | false |
Other | Homebrew | brew | 6cd41d5d3ebe15c175da4365e9b1f015c55460b0.json | Update RBI files for activesupport. | Library/Homebrew/sorbet/rbi/gems/activesupport@6.1.4.3.rbi | @@ -1,8 +1,10 @@
+# typed: false
+
# DO NOT EDIT MANUALLY
# This is an autogenerated file for types exported from the `activesupport` gem.
# Please instead update this file by running `bin/tapioca gem activesupport`.
-# typed: false
+::RUBY19 = T.let(T.unsafe(nil), TrueClass)
module ActiveSupport
extend ::ActiveSupport::LazyLoadHooks
@@ -26,13 +28,27 @@ end
module ActiveSupport::ActionableError
extend ::ActiveSupport::Concern
+ include GeneratedInstanceMethods
+ mixes_in_class_methods GeneratedClassMethods
mixes_in_class_methods ::ActiveSupport::ActionableError::ClassMethods
class << self
def actions(error); end
def dispatch(error, name); end
end
+
+ module GeneratedClassMethods
+ def _actions; end
+ def _actions=(value); end
+ def _actions?; end
+ end
+
+ module GeneratedInstanceMethods
+ def _actions; end
+ def _actions=(value); end
+ def _actions?; end
+ end
end
module ActiveSupport::ActionableError::ClassMethods
@@ -333,7 +349,9 @@ end
module ActiveSupport::Callbacks
extend ::ActiveSupport::Concern
+ include GeneratedInstanceMethods
+ mixes_in_class_methods GeneratedClassMethods
mixes_in_class_methods ::ActiveSupport::Callbacks::ClassMethods
mixes_in_class_methods ::ActiveSupport::DescendantsTracker
@@ -342,6 +360,17 @@ module ActiveSupport::Callbacks
private
def halted_callback_hook(filter, name); end
+
+ module GeneratedClassMethods
+ def __callbacks; end
+ def __callbacks=(value); end
+ def __callbacks?; end
+ end
+
+ module GeneratedInstanceMethods
+ def __callbacks; end
+ def __callbacks?; end
+ end
end
ActiveSupport::Callbacks::CALLBACK_FILTER_TYPES = T.let(T.unsafe(nil), Array)
@@ -2108,11 +2137,25 @@ end
module ActiveSupport::Rescuable
extend ::ActiveSupport::Concern
+ include GeneratedInstanceMethods
+ mixes_in_class_methods GeneratedClassMethods
mixes_in_class_methods ::ActiveSupport::Rescuable::ClassMethods
def handler_for_rescue(exception); end
def rescue_with_handler(exception); end
+
+ module GeneratedClassMethods
+ def rescue_handlers; end
+ def rescue_handlers=(value); end
+ def rescue_handlers?; end
+ end
+
+ module GeneratedInstanceMethods
+ def rescue_handlers; end
+ def rescue_handlers=(value); end
+ def rescue_handlers?; end
+ end
end
module ActiveSupport::Rescuable::ClassMethods
@@ -2402,8 +2445,22 @@ end
module ActiveSupport::Testing::FileFixtures
extend ::ActiveSupport::Concern
+ include GeneratedInstanceMethods
+
+ mixes_in_class_methods GeneratedClassMethods
def file_fixture(fixture_name); end
+
+ module GeneratedClassMethods
+ def file_fixture_path; end
+ def file_fixture_path=(value); end
+ def file_fixture_path?; end
+ end
+
+ module GeneratedInstanceMethods
+ def file_fixture_path; end
+ def file_fixture_path?; end
+ end
end
module ActiveSupport::Testing::Isolation
@@ -3337,10 +3394,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
def acts_like_string?; end | false |
Other | Homebrew | brew | bd4124c10fc5a281fe38cb7566b14dee14cb6368.json | Livecheck: Avoid duplicate URLs
Some formulae/casks contain duplicate checkable URLs or contain
URLs that become duplicates after `#preprocess_url` is used. With
the former, a formula's `stable` and `head` URLs can be the same if
they both use the Git repository. With the latter, a formula's
`homepage` and `stable` URLs are different but `#preprocess_url` can
return the same Git repository URL for each (which can also be
a duplicate of the `head` URL).
The `fabric-completion` formula is a worst case scenario, as it
contains both of these conditions but the repository has no tags.
By default, livecheck would needlessly check the repository three
times (i.e., no versions are found so livecheck tries the next URL,
which happens to be the same URL).
This commit avoids duplicate URLs in `#checkable_urls` and keeps
track of checked URLs in `#latest_version` to avoid a duplicate
caused by `#preprocess_url`. This should effectively resolve the
issue of checking the same URL more than once for a given
formula/cask. Checking the same URL only once across all the
formulae/casks in a given livecheck run will be handled in a later
commit (though I've done most of the groundwork already in previous
PRs). | Library/Homebrew/livecheck/livecheck.rb | @@ -484,7 +484,7 @@ def checkable_urls(formula_or_cask)
T.absurd(formula_or_cask)
end
- urls.compact
+ urls.compact.uniq
end
# Preprocesses and returns the URL used by livecheck.
@@ -609,24 +609,16 @@ def latest_version(
end
end
+ checked_urls = []
# rubocop:disable Metrics/BlockLength
urls.each_with_index do |original_url, i|
- if debug
- puts
- if livecheck_url.is_a?(Symbol)
- # This assumes the URL symbol will fit within the available space
- puts "URL (#{livecheck_url}):".ljust(18, " ") + original_url
- else
- puts "URL: #{original_url}"
- end
- end
-
# Only preprocess the URL when it's appropriate
url = if STRATEGY_SYMBOLS_TO_SKIP_PREPROCESS_URL.include?(livecheck_strategy)
original_url
else
preprocess_url(original_url)
end
+ next if checked_urls.include?(url)
strategies = Strategy.from_url(
url,
@@ -639,6 +631,13 @@ def latest_version(
strategy_name = livecheck_strategy_names[strategy]
if debug
+ puts
+ if livecheck_url.is_a?(Symbol)
+ # This assumes the URL symbol will fit within the available space
+ puts "URL (#{livecheck_url}):".ljust(18, " ") + original_url
+ else
+ puts "URL: #{original_url}"
+ end
puts "URL (processed): #{url}" if url != original_url
if strategies.present? && verbose
puts "Strategies: #{strategies.map { |s| livecheck_strategy_names[s] }.join(", ")}"
@@ -674,6 +673,7 @@ def latest_version(
match_version_map = strategy_data[:matches]
regex = strategy_data[:regex]
messages = strategy_data[:messages]
+ checked_urls << url
if messages.is_a?(Array) && match_version_map.blank?
puts messages unless json | true |
Other | Homebrew | brew | bd4124c10fc5a281fe38cb7566b14dee14cb6368.json | Livecheck: Avoid duplicate URLs
Some formulae/casks contain duplicate checkable URLs or contain
URLs that become duplicates after `#preprocess_url` is used. With
the former, a formula's `stable` and `head` URLs can be the same if
they both use the Git repository. With the latter, a formula's
`homepage` and `stable` URLs are different but `#preprocess_url` can
return the same Git repository URL for each (which can also be
a duplicate of the `head` URL).
The `fabric-completion` formula is a worst case scenario, as it
contains both of these conditions but the repository has no tags.
By default, livecheck would needlessly check the repository three
times (i.e., no versions are found so livecheck tries the next URL,
which happens to be the same URL).
This commit avoids duplicate URLs in `#checkable_urls` and keeps
track of checked URLs in `#latest_version` to avoid a duplicate
caused by `#preprocess_url`. This should effectively resolve the
issue of checking the same URL more than once for a given
formula/cask. Checking the same URL only once across all the
formulae/casks in a given livecheck run will be handled in a later
commit (though I've done most of the groundwork already in previous
PRs). | Library/Homebrew/test/livecheck/livecheck_spec.rb | @@ -44,6 +44,15 @@
RUBY
end
+ let(:f_duplicate_urls) do
+ formula("test_duplicate_urls") do
+ desc "Test formula with a duplicate URL"
+ homepage "https://github.com/Homebrew/brew.git"
+ url "https://brew.sh/test-0.0.1.tgz"
+ head "https://github.com/Homebrew/brew.git"
+ end
+ end
+
describe "::resolve_livecheck_reference" do
context "when a formula/cask has a livecheck block without formula/cask methods" do
it "returns [nil, []]" do
@@ -144,6 +153,7 @@
it "returns the list of URLs to check" do
expect(livecheck.checkable_urls(f)).to eq([stable_url, head_url, homepage_url])
expect(livecheck.checkable_urls(c)).to eq([cask_url, homepage_url])
+ expect(livecheck.checkable_urls(f_duplicate_urls)).to eq([stable_url, head_url])
end
end
| true |
Other | Homebrew | brew | 15b601d6578796ce650e5cbbe78018622d2ec410.json | Update RBI files for rubocop-ast. | Library/Homebrew/sorbet/rbi/gems/rubocop-ast@1.15.0.rbi | @@ -1551,6 +1551,7 @@ class RuboCop::AST::PairNode < ::RuboCop::AST::Node
def delimiter(*deprecated, with_spacing: T.unsafe(nil)); end
def hash_rocket?; end
def inverse_delimiter(*deprecated, with_spacing: T.unsafe(nil)); end
+ def value_omission?; end
def value_on_new_line?; end
end
| false |
Other | Homebrew | brew | 8ab9465ad2ac9b8d4b2d72180d6000b755478a9d.json | formula_auditor: fix error with formulae without taps | Library/Homebrew/formula_auditor.rb | @@ -121,6 +121,8 @@ def self.aliases
SYNCED_VERSIONS_FORMULAE_FILE = "synced_versions_formulae.json"
def audit_synced_versions_formulae
+ return unless formula.tap
+
synced_versions_formulae_file = formula.tap.path/SYNCED_VERSIONS_FORMULAE_FILE
return unless synced_versions_formulae_file.file?
| false |
Other | Homebrew | brew | 00b588068fb8c2ae26cfd739968207a3259d43bc.json | formula: add keg_only_reason to formula hash | Library/Homebrew/formula.rb | @@ -1942,6 +1942,7 @@ def to_hash
"version_scheme" => version_scheme,
"bottle" => {},
"keg_only" => keg_only?,
+ "keg_only_reason" => keg_only_reason&.to_hash,
"bottle_disabled" => bottle_disabled?,
"options" => [],
"build_dependencies" => dependencies.select(&:build?) | true |
Other | Homebrew | brew | 00b588068fb8c2ae26cfd739968207a3259d43bc.json | formula: add keg_only_reason to formula hash | Library/Homebrew/formula_support.rb | @@ -60,6 +60,19 @@ def to_s
@reason
end.strip
end
+
+ def to_hash
+ reason_string = if @reason.is_a?(Symbol)
+ @reason.inspect
+ else
+ @reason.to_s
+ end
+
+ {
+ "reason" => reason_string,
+ "explanation" => @explanation,
+ }
+ end
end
# Used to annotate formulae that don't require compiling or cannot build a bottle. | true |
Other | Homebrew | brew | dc16cba751fadc796e28c00c43563e518854d349.json | Update RBI files for spoom. | Library/Homebrew/sorbet/rbi/gems/spoom@1.1.7.rbi | @@ -1121,6 +1121,8 @@ module Spoom::Sorbet::Errors
end
end
+Spoom::Sorbet::Errors::DEFAULT_ERROR_URL_BASE = T.let(T.unsafe(nil), String)
+
class Spoom::Sorbet::Errors::Error
include ::Comparable
@@ -1148,8 +1150,8 @@ class Spoom::Sorbet::Errors::Error
end
class Spoom::Sorbet::Errors::Parser
- sig { void }
- def initialize; end
+ sig { params(error_url_base: String).void }
+ def initialize(error_url_base: T.unsafe(nil)); end
sig { params(output: String).returns(T::Array[Spoom::Sorbet::Errors::Error]) }
def parse(output); end
@@ -1162,19 +1164,21 @@ class Spoom::Sorbet::Errors::Parser
sig { void }
def close_error; end
+ sig { params(error_url_base: String).returns(Regexp) }
+ def error_line_match_regexp(error_url_base); end
+
sig { params(line: String).returns(T.nilable(Spoom::Sorbet::Errors::Error)) }
def match_error_line(line); end
sig { params(error: Spoom::Sorbet::Errors::Error).void }
def open_error(error); end
class << self
- sig { params(output: String).returns(T::Array[Spoom::Sorbet::Errors::Error]) }
- def parse_string(output); end
+ sig { params(output: String, error_url_base: String).returns(T::Array[Spoom::Sorbet::Errors::Error]) }
+ def parse_string(output, error_url_base: T.unsafe(nil)); end
end
end
-Spoom::Sorbet::Errors::Parser::ERROR_LINE_MATCH_REGEX = T.let(T.unsafe(nil), Regexp)
Spoom::Sorbet::Errors::Parser::HEADER = T.let(T.unsafe(nil), Array)
Spoom::Sorbet::GEM_PATH = T.let(T.unsafe(nil), String)
| false |
Other | Homebrew | brew | e7c84d9e99cdc59e8afb54f7477c7fd23e06c18a.json | Update RBI files for spoom. | Library/Homebrew/sorbet/rbi/gems/spoom@1.1.6.rbi | @@ -1,12 +1,12 @@
+# typed: true
+
# DO NOT EDIT MANUALLY
# This is an autogenerated file for types exported from the `spoom` gem.
# Please instead update this file by running `bin/tapioca gem spoom`.
-# typed: true
-
module Spoom
class << self
- sig { params(cmd: String, arg: String, path: String, capture_err: T::Boolean).returns([String, T::Boolean]) }
+ sig { params(cmd: String, arg: String, path: String, capture_err: T::Boolean).returns([String, T::Boolean, Integer]) }
def exec(cmd, *arg, path: T.unsafe(nil), capture_err: T.unsafe(nil)); end
end
end
@@ -56,12 +56,18 @@ module Spoom::Cli::Helper
sig { params(string: String).returns(String) }
def blue(string); end
+ sig { params(exit_code: Integer, block: T.nilable(T.proc.void)).void }
+ def check_sorbet_segfault(exit_code, &block); end
+
sig { returns(T::Boolean) }
def color?; end
sig { params(string: String, color: Spoom::Color).returns(String) }
def colorize(string, *color); end
+ sig { params(string: String).returns(String) }
+ def cyan(string); end
+
sig { returns(String) }
def exec_path; end
@@ -1049,7 +1055,7 @@ Spoom::SPOOM_PATH = T.let(T.unsafe(nil), String)
module Spoom::Sorbet
class << self
- sig { params(arg: String, path: String, capture_err: T::Boolean, sorbet_bin: T.nilable(String)).returns([String, T::Boolean]) }
+ sig { params(arg: String, path: String, capture_err: T::Boolean, sorbet_bin: T.nilable(String)).returns([String, T::Boolean, Integer]) }
def srb(*arg, path: T.unsafe(nil), capture_err: T.unsafe(nil), sorbet_bin: T.unsafe(nil)); end
sig { params(config: Spoom::Sorbet::Config, path: String).returns(T::Array[String]) }
@@ -1058,7 +1064,7 @@ module Spoom::Sorbet
sig { params(arg: String, path: String, capture_err: T::Boolean, sorbet_bin: T.nilable(String)).returns(T.nilable(T::Hash[String, Integer])) }
def srb_metrics(*arg, path: T.unsafe(nil), capture_err: T.unsafe(nil), sorbet_bin: T.unsafe(nil)); end
- sig { params(arg: String, path: String, capture_err: T::Boolean, sorbet_bin: T.nilable(String)).returns([String, T::Boolean]) }
+ sig { params(arg: String, path: String, capture_err: T::Boolean, sorbet_bin: T.nilable(String)).returns([String, T::Boolean, Integer]) }
def srb_tc(*arg, path: T.unsafe(nil), capture_err: T.unsafe(nil), sorbet_bin: T.unsafe(nil)); end
sig { params(arg: String, path: String, capture_err: T::Boolean, sorbet_bin: T.nilable(String)).returns(T.nilable(String)) }
@@ -1186,6 +1192,7 @@ module Spoom::Sorbet::MetricsParser
end
Spoom::Sorbet::MetricsParser::DEFAULT_PREFIX = T.let(T.unsafe(nil), String)
+Spoom::Sorbet::SEGFAULT_CODE = T.let(T.unsafe(nil), Integer)
module Spoom::Sorbet::Sigils
class << self | false |
Other | Homebrew | brew | c510d0401955138fd634f6b2a922e75098b66b5b.json | Update RBI files for rubocop-sorbet. | Library/Homebrew/sorbet/rbi/gems/rubocop-sorbet@0.6.4.rbi | @@ -151,7 +151,6 @@ class RuboCop::Cop::Sorbet::ForbidRBIOutsideOfAllowedPaths < ::RuboCop::Cop::Cop
private
def allowed_paths; end
- def message; end
end
class RuboCop::Cop::Sorbet::ForbidSuperclassConstLiteral < ::RuboCop::Cop::Cop | false |
Other | Homebrew | brew | ac74f15f0d155e2487ca8bfb80650c2335f1812a.json | Remove some SFC references.
We're moving to OpenCollective currently. | README.md | @@ -38,19 +38,7 @@ Good luck!
Homebrew is a non-profit project run entirely by unpaid volunteers. We need your funds to pay for software, hardware and hosting around continuous integration and future improvements to the project. Every donation will be spent on making Homebrew better for our users.
-Please consider a regular donation through [GitHub Sponsors](https://github.com/sponsors/Homebrew) or [Patreon](https://www.patreon.com/homebrew).
-
-Alternatively, if you'd rather make a one-off payment:
-
-- [Donate with PayPal](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=V6ZE57MJRYC8L)
-- Donate by USA $ check from a USA bank:
- - Make check payable to "Software Freedom Conservancy, Inc." and place "Directed donation: Homebrew" in the memo field. Checks should then be mailed to:
- - Software Freedom Conservancy, Inc.
- 137 Montague ST STE 380
- BROOKLYN, NY 11201 USA
-- Donate by wire transfer: contact accounting@sfconservancy.org for wire transfer details.
-
-Homebrew is a member of the [Software Freedom Conservancy](https://sfconservancy.org) which provides us with an ability to receive tax-deductible, Homebrew earmarked donations (and [many other services](https://sfconservancy.org/members/services/)). Software Freedom Conservancy, Inc. is a 501(c)(3) organization incorporated in New York, and donations made to it are fully tax-deductible to the extent permitted by law.
+Please consider a regular donation through [GitHub Sponsors](https://github.com/sponsors/Homebrew), [Open Collective](https://opencollective.com/homebrew) or [Patreon](https://www.patreon.com/homebrew). Homebrew is fiscally hosted by the [Open Source Collective](https://opencollective.com/opensource).
## Security
@@ -94,10 +82,6 @@ Flaky test detection and tracking is provided by [BuildPulse](https://buildpulse
[](https://buildpulse.io)
-Homebrew is a member of the [Software Freedom Conservancy](https://sfconservancy.org).
-
-[](https://sfconservancy.org)
-
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).
[](https://github.com/substackinc) | true |
Other | Homebrew | brew | ac74f15f0d155e2487ca8bfb80650c2335f1812a.json | Remove some SFC references.
We're moving to OpenCollective currently. | docs/New-Maintainer-Checklist.md | @@ -65,7 +65,6 @@ If they are interested in doing system administration work:
If they are elected to the Homebrew's [Project Leadership Committee](https://docs.brew.sh/Homebrew-Governance#4-project-leadership-committee):
-- Email their name, email and employer to the [Software Freedom Conservancy](https://sfconservancy.org) at homebrew@sfconservancy.org
- Make them [owners on the Homebrew GitHub organisation](https://github.com/orgs/Homebrew/people)
- Invite them to the [**@Homebrew/plc** team](https://github.com/orgs/Homebrew/teams/plc/members)
- Invite them to [Google Analytics](https://analytics.google.com/analytics/web/#management/Settings/a76679469w115400090p120682403/%3Fm.page%3DAccountUsers/). | true |
Other | Homebrew | brew | a32d513a8a69d725a842484f4dcc56e65fda40be.json | Update RBI files for regexp_parser. | Library/Homebrew/sorbet/rbi/gems/regexp_parser@2.2.0.rbi | @@ -1,9 +1,9 @@
+# typed: true
+
# DO NOT EDIT MANUALLY
# This is an autogenerated file for types exported from the `regexp_parser` gem.
# Please instead update this file by running `bin/tapioca gem regexp_parser`.
-# typed: true
-
module Regexp::Expression; end
class Regexp::Expression::Alternation < ::Regexp::Expression::SequenceOperation
@@ -603,6 +603,7 @@ class Regexp::Lexer
end
Regexp::Lexer::CLOSING_TOKENS = T.let(T.unsafe(nil), Array)
+Regexp::Lexer::CONDITION_TOKENS = T.let(T.unsafe(nil), Array)
Regexp::Lexer::OPENING_TOKENS = T.let(T.unsafe(nil), Array)
class Regexp::MatchLength
@@ -878,6 +879,7 @@ 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::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)
module Regexp::Syntax::Token::CharacterSet; end
@@ -967,6 +969,7 @@ Regexp::Syntax::Token::UnicodeProperty::Age_V2_5_0 = T.let(T.unsafe(nil), Array)
Regexp::Syntax::Token::UnicodeProperty::Age_V2_6_0 = T.let(T.unsafe(nil), Array)
Regexp::Syntax::Token::UnicodeProperty::Age_V2_6_2 = T.let(T.unsafe(nil), Array)
Regexp::Syntax::Token::UnicodeProperty::Age_V2_6_3 = T.let(T.unsafe(nil), Array)
+Regexp::Syntax::Token::UnicodeProperty::Age_V3_1_0 = T.let(T.unsafe(nil), Array)
Regexp::Syntax::Token::UnicodeProperty::All = T.let(T.unsafe(nil), Array)
module Regexp::Syntax::Token::UnicodeProperty::Category; end
Regexp::Syntax::Token::UnicodeProperty::Category::All = T.let(T.unsafe(nil), Array)
@@ -998,6 +1001,7 @@ Regexp::Syntax::Token::UnicodeProperty::Script_V2_4_0 = T.let(T.unsafe(nil), Arr
Regexp::Syntax::Token::UnicodeProperty::Script_V2_5_0 = T.let(T.unsafe(nil), Array)
Regexp::Syntax::Token::UnicodeProperty::Script_V2_6_0 = T.let(T.unsafe(nil), Array)
Regexp::Syntax::Token::UnicodeProperty::Script_V2_6_2 = T.let(T.unsafe(nil), Array)
+Regexp::Syntax::Token::UnicodeProperty::Script_V3_1_0 = T.let(T.unsafe(nil), Array)
Regexp::Syntax::Token::UnicodeProperty::Type = T.let(T.unsafe(nil), Symbol)
Regexp::Syntax::Token::UnicodeProperty::UnicodeBlock = T.let(T.unsafe(nil), Array)
Regexp::Syntax::Token::UnicodeProperty::UnicodeBlock_V1_9_0 = T.let(T.unsafe(nil), Array)
@@ -1008,6 +1012,7 @@ Regexp::Syntax::Token::UnicodeProperty::UnicodeBlock_V2_4_0 = T.let(T.unsafe(nil
Regexp::Syntax::Token::UnicodeProperty::UnicodeBlock_V2_5_0 = T.let(T.unsafe(nil), Array)
Regexp::Syntax::Token::UnicodeProperty::UnicodeBlock_V2_6_0 = T.let(T.unsafe(nil), Array)
Regexp::Syntax::Token::UnicodeProperty::UnicodeBlock_V2_6_2 = T.let(T.unsafe(nil), Array)
+Regexp::Syntax::Token::UnicodeProperty::UnicodeBlock_V3_1_0 = T.let(T.unsafe(nil), Array)
Regexp::Syntax::Token::UnicodeProperty::V1_9_0 = T.let(T.unsafe(nil), Array)
Regexp::Syntax::Token::UnicodeProperty::V1_9_3 = T.let(T.unsafe(nil), Array)
Regexp::Syntax::Token::UnicodeProperty::V2_0_0 = T.let(T.unsafe(nil), Array)
@@ -1018,6 +1023,7 @@ Regexp::Syntax::Token::UnicodeProperty::V2_5_0 = T.let(T.unsafe(nil), Array)
Regexp::Syntax::Token::UnicodeProperty::V2_6_0 = T.let(T.unsafe(nil), Array)
Regexp::Syntax::Token::UnicodeProperty::V2_6_2 = T.let(T.unsafe(nil), Array)
Regexp::Syntax::Token::UnicodeProperty::V2_6_3 = T.let(T.unsafe(nil), Array)
+Regexp::Syntax::Token::UnicodeProperty::V3_1_0 = T.let(T.unsafe(nil), Array)
class Regexp::Syntax::UnknownSyntaxNameError < ::Regexp::Syntax::SyntaxError
def initialize(name); end
@@ -1082,6 +1088,10 @@ class Regexp::Syntax::V2_6_3 < ::Regexp::Syntax::V2_6_2
def initialize; end
end
+class Regexp::Syntax::V3_1_0 < ::Regexp::Syntax::V2_6_3
+ def initialize; end
+end
+
Regexp::Syntax::VERSION_CONST_REGEXP = T.let(T.unsafe(nil), Regexp)
Regexp::Syntax::VERSION_FORMAT = T.let(T.unsafe(nil), String)
Regexp::Syntax::VERSION_REGEXP = T.let(T.unsafe(nil), Regexp) | false |
Other | Homebrew | brew | f7185f14545b79d4a3d860603e464e2becbc7463.json | workflows: remove outdated Xcode switch | .github/workflows/tests.yml | @@ -267,9 +267,6 @@ jobs:
id: set-up-homebrew
uses: Homebrew/actions/setup-homebrew@master
- - name: Set up Xcode
- run: sudo xcode-select --switch /Applications/Xcode_12.2.app/Contents/Developer
-
- run: brew test-bot --only-cleanup-before
- run: brew config | true |
Other | Homebrew | brew | f7185f14545b79d4a3d860603e464e2becbc7463.json | workflows: remove outdated Xcode switch | .github/workflows/vendor-gems.yml | @@ -26,16 +26,17 @@ jobs:
- name: Set up Homebrew
id: set-up-homebrew
uses: Homebrew/actions/setup-homebrew@master
- - name: Set up Xcode
- run: sudo xcode-select --switch /Applications/Xcode_12.2.app/Contents/Developer
+
- name: Configure Git user
uses: Homebrew/actions/git-user-config@master
with:
username: BrewTestBot
+
- name: Set up commit signing
uses: Homebrew/actions/setup-commit-signing@master
with:
signing_key: ${{ secrets.BREWTESTBOT_GPG_SIGNING_SUBKEY }}
+
- name: Check out pull request
id: checkout
run: |
@@ -48,6 +49,7 @@ jobs:
echo "::set-output name=gem_name::${gem_name}"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+
- name: Vendor Gems
env:
GEM_NAME: ${{ steps.checkout.outputs.gem_name }}
@@ -61,6 +63,7 @@ jobs:
else
brew vendor-gems
fi
+
- name: Update RBI files
env:
GEM_NAME: ${{ steps.checkout.outputs.gem_name }}
@@ -77,6 +80,7 @@ jobs:
git reset --hard
fi
+
- name: Push to pull request
uses: Homebrew/actions/git-try-push@master
with: | true |
Other | Homebrew | brew | 30c4663066b2b95b54fb0bbece8cb13fd8545735.json | Fix analytics string to test for CI | Library/Homebrew/test/utils/analytics_spec.rb | @@ -11,27 +11,29 @@
described_class.clear_os_arch_prefix_ci
end
+ ci = ", CI" if ENV["CI"]
+
it "returns OS_VERSION and prefix when HOMEBREW_PREFIX is a custom prefix on intel" do
allow(Hardware::CPU).to receive(:type).and_return(:intel)
allow(Hardware::CPU).to receive(:in_rosetta2?).and_return(false)
allow(Homebrew).to receive(:default_prefix?).and_return(false)
- expected = "#{OS_VERSION}, #{described_class.custom_prefix_label}"
+ expected = "#{OS_VERSION}, #{described_class.custom_prefix_label}#{ci}"
expect(described_class.os_arch_prefix_ci).to eq expected
end
it 'returns OS_VERSION, "ARM" and prefix when HOMEBREW_PREFIX is a custom prefix on arm' do
allow(Hardware::CPU).to receive(:type).and_return(:arm)
allow(Hardware::CPU).to receive(:in_rosetta2?).and_return(false)
allow(Homebrew).to receive(:default_prefix?).and_return(false)
- expected = "#{OS_VERSION}, ARM, #{described_class.custom_prefix_label}"
+ expected = "#{OS_VERSION}, ARM, #{described_class.custom_prefix_label}#{ci}"
expect(described_class.os_arch_prefix_ci).to eq expected
end
it 'returns OS_VERSION, "Rosetta" and prefix when HOMEBREW_PREFIX is a custom prefix using Rosetta' do
allow(Hardware::CPU).to receive(:type).and_return(:intel)
allow(Hardware::CPU).to receive(:in_rosetta2?).and_return(true)
allow(Homebrew).to receive(:default_prefix?).and_return(false)
- expected = "#{OS_VERSION}, Rosetta, #{described_class.custom_prefix_label}"
+ expected = "#{OS_VERSION}, Rosetta, #{described_class.custom_prefix_label}#{ci}"
expect(described_class.os_arch_prefix_ci).to eq expected
end
| false |
Other | Homebrew | brew | d55a8804e6d1c9a402d776fe53fb0ffb304dfa82.json | Update RBI files for rubocop-sorbet. | Library/Homebrew/sorbet/rbi/gems/rubocop-sorbet@0.6.3.rbi | @@ -1,9 +1,9 @@
+# typed: true
+
# DO NOT EDIT MANUALLY
# This is an autogenerated file for types exported from the `rubocop-sorbet` gem.
# Please instead update this file by running `bin/tapioca gem rubocop-sorbet`.
-# typed: true
-
module RuboCop; end
module RuboCop::Cop; end
module RuboCop::Cop::Sorbet; end
@@ -76,10 +76,10 @@ class RuboCop::Cop::Sorbet::EnforceSignatures < ::RuboCop::Cop::Sorbet::Signatur
def accessor?(param0 = T.unsafe(nil)); end
def autocorrect(node); end
- def on_block(node); end
def on_def(node); end
def on_defs(node); end
def on_send(node); end
+ def on_signature(node); end
def scope(node); end
private
@@ -104,6 +104,17 @@ class RuboCop::Cop::Sorbet::EnforceSignatures::SigSuggestion
def generate_return; end
end
+class RuboCop::Cop::Sorbet::EnforceSingleSigil < ::RuboCop::Cop::Sorbet::ValidSigil
+ include ::RuboCop::Cop::RangeHelp
+
+ def autocorrect(_node); end
+ def investigate(processed_source); end
+
+ protected
+
+ def extract_all_sigils(processed_source); end
+end
+
class RuboCop::Cop::Sorbet::FalseSigil < ::RuboCop::Cop::Sorbet::HasSigil
def minimum_strictness; end
end
@@ -123,6 +134,7 @@ RuboCop::Cop::Sorbet::ForbidExtendTSigHelpersInShims::RESTRICT_ON_SEND = T.let(T
class RuboCop::Cop::Sorbet::ForbidIncludeConstLiteral < ::RuboCop::Cop::Cop
def initialize(*_arg0); end
+ def autocorrect(node); end
def not_lit_const_include?(param0 = T.unsafe(nil)); end
def on_send(node); end
def used_names; end
@@ -131,13 +143,16 @@ end
RuboCop::Cop::Sorbet::ForbidIncludeConstLiteral::MSG = T.let(T.unsafe(nil), String)
-class RuboCop::Cop::Sorbet::ForbidRBIOutsideOfSorbetDir < ::RuboCop::Cop::Cop
+class RuboCop::Cop::Sorbet::ForbidRBIOutsideOfAllowedPaths < ::RuboCop::Cop::Cop
include ::RuboCop::Cop::RangeHelp
def investigate(processed_source); end
-end
-RuboCop::Cop::Sorbet::ForbidRBIOutsideOfSorbetDir::PATH_REGEXP = T.let(T.unsafe(nil), Regexp)
+ private
+
+ def allowed_paths; end
+ def message; end
+end
class RuboCop::Cop::Sorbet::ForbidSuperclassConstLiteral < ::RuboCop::Cop::Cop
def not_lit_const_superclass?(param0 = T.unsafe(nil)); end
@@ -194,16 +209,6 @@ end
RuboCop::Cop::Sorbet::OneAncestorPerLine::MSG = T.let(T.unsafe(nil), String)
-class RuboCop::Cop::Sorbet::ParametersOrderingInSignature < ::RuboCop::Cop::Sorbet::SignatureCop
- def on_signature(node); end
- def signature_params(param0); end
-
- private
-
- def check_for_inconsistent_param_ordering(sig_params_order, parameters); end
- def extract_parameters(sig_params); end
-end
-
class RuboCop::Cop::Sorbet::SignatureBuildOrder < ::RuboCop::Cop::Sorbet::SignatureCop
def autocorrect(node); end
def on_signature(node); end
@@ -220,9 +225,12 @@ class RuboCop::Cop::Sorbet::SignatureBuildOrder::ModernBuilder < ::RuboCop::AST:
RuboCop::Cop::Sorbet::SignatureBuildOrder::ORDER = T.let(T.unsafe(nil), Hash)
class RuboCop::Cop::Sorbet::SignatureCop < ::RuboCop::Cop::Cop
+ def allowed_recv(recv); end
def on_block(node); end
def on_signature(_); end
def signature?(param0 = T.unsafe(nil)); end
+ def with_runtime?(param0 = T.unsafe(nil)); end
+ def without_runtime?(param0 = T.unsafe(nil)); end
end
class RuboCop::Cop::Sorbet::SingleLineRbiClassModuleDefinitions < ::RuboCop::Cop::Cop | false |
Other | Homebrew | brew | 43aa5316c2f3f93761b5bd90aa511f7f40f090c9.json | Update RBI files for sorbet. | Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi | @@ -6856,8 +6856,6 @@ end
class Tempfile
def _close(); end
-
- def inspect(); end
end
class Tempfile::Remover | false |
Other | Homebrew | brew | 45bf8b011800130f296af761be87edcc50e64e0c.json | docs: add mdl for Markdown linting
Run with `mdl -c docs/.mdlrc docs/*.md`. | docs/.mdl_ruleset.rb | @@ -0,0 +1,7 @@
+rule 'HB034', 'Bare unstyled URL used' do
+ tags :links, :url
+ aliases 'no-bare-unstyled-urls'
+ check do |doc|
+ doc.matching_text_element_lines(%r{(?<=\s)https?://})
+ end
+end | true |
Other | Homebrew | brew | 45bf8b011800130f296af761be87edcc50e64e0c.json | docs: add mdl for Markdown linting
Run with `mdl -c docs/.mdlrc docs/*.md`. | docs/.mdl_style.rb | @@ -0,0 +1,7 @@
+all
+rule 'MD026', punctuation: ',;:' # Trailing punctuation in header
+exclude_rule 'MD013' # Line length
+exclude_rule 'MD029' # Ordered list item prefix
+exclude_rule 'MD033' # Inline HTML
+exclude_rule 'MD034' # Bare URL used (replaced by HB034)
+exclude_rule 'MD046' # Code block style | true |
Other | Homebrew | brew | 45bf8b011800130f296af761be87edcc50e64e0c.json | docs: add mdl for Markdown linting
Run with `mdl -c docs/.mdlrc docs/*.md`. | docs/.mdlrc | @@ -0,0 +1,4 @@
+git_recurse true
+ignore_front_matter true
+style "#{File.dirname(__FILE__)}/.mdl_style.rb"
+rulesets ["#{File.dirname(__FILE__)}/.mdl_ruleset.rb"] | true |
Other | Homebrew | brew | 45bf8b011800130f296af761be87edcc50e64e0c.json | docs: add mdl for Markdown linting
Run with `mdl -c docs/.mdlrc docs/*.md`. | docs/Gemfile | @@ -4,5 +4,6 @@ gem "github-pages", group: :jekyll_plugins
group :test do
gem "html-proofer"
+ gem "mdl"
gem "rake"
end | true |
Other | Homebrew | brew | 45bf8b011800130f296af761be87edcc50e64e0c.json | docs: add mdl for Markdown linting
Run with `mdl -c docs/.mdlrc docs/*.md`. | docs/Gemfile.lock | @@ -9,6 +9,8 @@ GEM
zeitwerk (~> 2.2, >= 2.2.2)
addressable (2.8.0)
public_suffix (>= 2.0.2, < 5.0)
+ chef-utils (17.8.25)
+ concurrent-ruby
coffee-script (2.4.1)
coffee-script-source
execjs
@@ -226,13 +228,24 @@ GEM
listen (3.7.0)
rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10)
+ mdl (0.11.0)
+ kramdown (~> 2.3)
+ kramdown-parser-gfm (~> 1.1)
+ mixlib-cli (~> 2.1, >= 2.1.1)
+ mixlib-config (>= 2.2.1, < 4)
+ mixlib-shellout
mercenary (0.3.6)
mini_portile2 (2.6.1)
minima (2.5.1)
jekyll (>= 3.5, < 5.0)
jekyll-feed (~> 0.9)
jekyll-seo-tag (~> 2.1)
minitest (5.14.4)
+ mixlib-cli (2.1.8)
+ mixlib-config (3.0.9)
+ tomlrb
+ mixlib-shellout (3.2.5)
+ chef-utils
multipart-post (2.1.1)
nokogiri (1.12.5)
mini_portile2 (~> 2.6.1)
@@ -272,6 +285,7 @@ GEM
terminal-table (1.8.0)
unicode-display_width (~> 1.1, >= 1.1.1)
thread_safe (0.3.6)
+ tomlrb (2.0.1)
typhoeus (1.4.0)
ethon (>= 0.9.0)
tzinfo (1.2.9)
@@ -289,7 +303,8 @@ PLATFORMS
DEPENDENCIES
github-pages
html-proofer
+ mdl
rake
BUNDLED WITH
- 1.17.2
+ 1.17.3 | true |
Other | Homebrew | brew | 45bf8b011800130f296af761be87edcc50e64e0c.json | docs: add mdl for Markdown linting
Run with `mdl -c docs/.mdlrc docs/*.md`. | docs/Rakefile | @@ -7,7 +7,12 @@ task :build do
sh "jekyll", "build"
end
-desc "Run html proofer to validate the HTML output."
+desc "Run Markdownlint to validate the Markdown style."
+task lint: :build do
+ sh "mdl", "."
+end
+
+desc "Run HTMLProofer to validate the HTML output."
task test: :build do
require "html-proofer"
HTMLProofer.check_directory( | true |
Other | Homebrew | brew | 7b9d50217ef18442dbe89794f3c21bf1f97d26ad.json | Update RBI files for rubocop-ast. | Library/Homebrew/sorbet/rbi/gems/rubocop-ast@1.14.0.rbi | @@ -1450,6 +1450,7 @@ RuboCop::AST::NodePattern::Sets::SET_LOAD_RESTORE = T.let(T.unsafe(nil), Set)
RuboCop::AST::NodePattern::Sets::SET_MAP_COLLECT = T.let(T.unsafe(nil), Set)
RuboCop::AST::NodePattern::Sets::SET_MATCH_MATCH = T.let(T.unsafe(nil), Set)
RuboCop::AST::NodePattern::Sets::SET_MATCH__MATCH = T.let(T.unsafe(nil), Set)
+RuboCop::AST::NodePattern::Sets::SET_NEW_ = T.let(T.unsafe(nil), Set)
RuboCop::AST::NodePattern::Sets::SET_NEW_COMPILE = T.let(T.unsafe(nil), Set)
RuboCop::AST::NodePattern::Sets::SET_NEW_OPEN = T.let(T.unsafe(nil), Set)
RuboCop::AST::NodePattern::Sets::SET_NIL_ = T.let(T.unsafe(nil), Set)
@@ -1490,7 +1491,8 @@ RuboCop::AST::NodePattern::Sets::SET_STRUCT_CLASS = T.let(T.unsafe(nil), Set)
RuboCop::AST::NodePattern::Sets::SET_SUCC_PRED_NEXT = T.let(T.unsafe(nil), Set)
RuboCop::AST::NodePattern::Sets::SET_TEMPFILE_STRINGIO = T.let(T.unsafe(nil), Set)
RuboCop::AST::NodePattern::Sets::SET_TO_ENUM_ENUM_FOR = T.let(T.unsafe(nil), Set)
-RuboCop::AST::NodePattern::Sets::SET_TO_I_TO_F_TO_C = T.let(T.unsafe(nil), Set)
+RuboCop::AST::NodePattern::Sets::SET_TO_H_TO_HASH = T.let(T.unsafe(nil), Set)
+RuboCop::AST::NodePattern::Sets::SET_TO_I_TO_F_TO_C_TO_R = T.let(T.unsafe(nil), Set)
RuboCop::AST::NodePattern::Sets::SET_TRANSLATE_LOCALIZE = T.let(T.unsafe(nil), Set)
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) | true |
Other | Homebrew | brew | 7b9d50217ef18442dbe89794f3c21bf1f97d26ad.json | Update RBI files for rubocop-ast. | Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi | @@ -5113,10 +5113,7 @@ module RuboCop::AST::NodePattern::Sets
SET_BUILD_RECOMMENDED_TEST_OPTIONAL = ::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_NEW_ = ::T.let(nil, ::T.untyped)
SET_SYSTEM_SHELL_OUTPUT_PIPE_OUTPUT = ::T.let(nil, ::T.untyped)
- SET_TO_H_TO_HASH = ::T.let(nil, ::T.untyped)
- SET_TO_I_TO_F_TO_C_TO_R = ::T.let(nil, ::T.untyped)
SET_WITH_WITHOUT = ::T.let(nil, ::T.untyped)
end
| true |
Other | Homebrew | brew | c6ca375d5a1f27e9070bba07ebdb22b136664939.json | utils/ruby.sh: fix error with older Bash
Fixes #12472. | Library/Homebrew/utils/ruby.sh | @@ -31,7 +31,7 @@ find_ruby() {
fi
done < <(
# function which() is set by brew.sh
- # it's aliased to `type -P`
+ # it is aliased to `type -P`
# shellcheck disable=SC2230
which -a ruby
# shellcheck disable=SC2230 | false |
Other | Homebrew | brew | 4d768e85c23c2d5917e9f9586eddc449656e89a6.json | bug.yml: fix missing `label` property
Submitting bug reports hasn't worked for a while because of the missing
`label`.
My editor complained about `labels` needing to be an array, so I've made
that one too. It was also complaining about the missing label property
for the checkboxes, so I guess it knows what it's talking about here. | .github/ISSUE_TEMPLATE/bug.yml | @@ -1,6 +1,6 @@
name: New issue for Reproducible Bug
description: "If you're sure it's reproducible and not just your machine: submit an issue so we can investigate."
-labels: bug
+labels: [bug]
body:
- type: markdown
attributes:
@@ -19,6 +19,7 @@ body:
required: true
- type: checkboxes
attributes:
+ label: Verification
description: Please verify that you've followed these steps.
options:
- label: I ran `brew update` and am still able to reproduce my issue. | false |
Other | Homebrew | brew | c31a9d0c458f0211347f9dd37db0cd92d1a2111e.json | Update RBI files for sorbet. | Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi | @@ -6354,10 +6354,6 @@ class Set
def ===(o); end
- def compare_by_identity(); end
-
- def compare_by_identity?(); end
-
def divide(&func); end
def eql?(o); end | false |
Other | Homebrew | brew | 29f08603bf8aae32b0d2f096b389eb571bbcd436.json | Add support for PowerShell-preview package | Library/Homebrew/cmd/shellenv.sh | @@ -35,7 +35,7 @@ homebrew-shellenv() {
echo "setenv MANPATH ${HOMEBREW_PREFIX}/share/man\`[ \${?MANPATH} == 1 ] && echo \":\${MANPATH}\"\`:;"
echo "setenv INFOPATH ${HOMEBREW_PREFIX}/share/info\`[ \${?INFOPATH} == 1 ] && echo \":\${INFOPATH}\"\`;"
;;
- pwsh | -pwsh)
+ pwsh | -pwsh | pwsh-preview | -pwsh-preview)
echo "[System.Environment]::SetEnvironmentVariable('HOMEBREW_PREFIX','${HOMEBREW_PREFIX}',[System.EnvironmentVariableTarget]::Process)"
echo "[System.Environment]::SetEnvironmentVariable('HOMEBREW_CELLAR','${HOMEBREW_CELLAR}',[System.EnvironmentVariableTarget]::Process)"
echo "[System.Environment]::SetEnvironmentVariable('HOMEBREW_REPOSITORY','${HOMEBREW_REPOSITORY}',[System.EnvironmentVariableTarget]::Process)" | false |
Other | Homebrew | brew | aa9e2e529ac820f449f39cf1992e5dd221079fcf.json | Update RBI files for yard. | Library/Homebrew/sorbet/rbi/gems/yard@0.9.27.rbi | @@ -135,6 +135,7 @@ module YARD
def ruby18?; end
def ruby19?; end
def ruby2?; end
+ def ruby3?; end
def windows?; end
end
end
@@ -1346,7 +1347,12 @@ class YARD::Handlers::Ruby::MixinHandler < ::YARD::Handlers::Ruby::Base
def recipient(mixin); end
end
-class YARD::Handlers::Ruby::ModuleFunctionHandler < ::YARD::Handlers::Ruby::Base; end
+class YARD::Handlers::Ruby::ModuleFunctionHandler < ::YARD::Handlers::Ruby::Base
+ include ::YARD::Handlers::Ruby::DecoratorHandlerMethods
+
+ def make_module_function(instance_method, namespace); end
+end
+
class YARD::Handlers::Ruby::ModuleHandler < ::YARD::Handlers::Ruby::Base; end
class YARD::Handlers::Ruby::PrivateClassMethodHandler < ::YARD::Handlers::Ruby::Base
@@ -3256,6 +3262,7 @@ class YARD::Tags::Directive
protected
+ def inside_directive?; end
def parser; end
end
| false |
Other | Homebrew | brew | 574e4e5972a8bca2bf7548a38d05d53a0bc4177b.json | Update RBI files for rbi. | Library/Homebrew/sorbet/rbi/gems/rbi@0.0.9.rbi | @@ -1018,6 +1018,9 @@ class RBI::Rewriters::RemoveKnownDefinitions < ::RBI::Visitor
private
+ sig { params(node: RBI::Node, previous: RBI::Node).returns(T::Boolean) }
+ def can_delete_node?(node, previous); end
+
sig { params(node: RBI::Node, previous: RBI::Node).void }
def delete_node(node, previous); end
| false |
Other | Homebrew | brew | ea72daf7bbd0bc73280ff8140a1af5aaf370d782.json | upgrade: fix undefined method error
Fixes Homebrew/discussions#2567. | Library/Homebrew/upgrade.rb | @@ -279,7 +279,7 @@ def check_installed_dependents(
# Ensure we never attempt a source build for outdated dependents of upgraded formulae.
outdated_dependents, skipped_dependents = outdated_dependents.partition do |dependent|
- dependent.bottled? && dependent.deps.all?(&:bottled?)
+ dependent.bottled? && dependent.deps.map(&:to_formula).all?(&:bottled?)
end
if skipped_dependents.present? | false |
Other | Homebrew | brew | 65f17664971391895d8167963e07517742730309.json | Remove unknown YARD tags | Library/Homebrew/extend/ENV/super.rb | @@ -30,7 +30,6 @@ def self.extended(base)
end
# The location of Homebrew's shims on this OS.
- # @public
sig { returns(Pathname) }
def self.shims_path
HOMEBREW_SHIMS_PATH/"super" | true |
Other | Homebrew | brew | 65f17664971391895d8167963e07517742730309.json | Remove unknown YARD tags | Library/Homebrew/extend/os/linux/extend/ENV/super.rb | @@ -5,7 +5,6 @@ module Superenv
extend T::Sig
# The location of Homebrew's shims on Linux.
- # @public
def self.shims_path
HOMEBREW_SHIMS_PATH/"linux/super"
end | true |
Other | Homebrew | brew | 65f17664971391895d8167963e07517742730309.json | Remove unknown YARD tags | Library/Homebrew/extend/os/mac/extend/ENV/super.rb | @@ -6,7 +6,6 @@ module Superenv
class << self
# The location of Homebrew's shims on macOS.
- # @public
def shims_path
HOMEBREW_SHIMS_PATH/"mac/super"
end | true |
Other | Homebrew | brew | 302975829db019bdcd33f1662dbe04a765b08d5f.json | service: add basic cron support | Library/Homebrew/service.rb | @@ -145,10 +145,8 @@ def run_type(value = nil)
case T.unsafe(value)
when nil
@run_type
- when :immediate, :interval
+ when :immediate, :interval, :cron
@run_type = value
- when :cron
- raise TypeError, "Service#run_type does not support cron"
when Symbol
raise TypeError, "Service#run_type allows: '#{RUN_TYPE_IMMEDIATE}'/'#{RUN_TYPE_INTERVAL}'/'#{RUN_TYPE_CRON}'"
else
@@ -168,6 +166,64 @@ def interval(value = nil)
end
end
+ sig { params(value: T.nilable(String)).returns(T.nilable(Hash)) }
+ def cron(value = nil)
+ case T.unsafe(value)
+ when nil
+ @cron
+ when String
+ @cron = parse_cron(T.must(value))
+ else
+ raise TypeError, "Service#cron expects a String"
+ end
+ end
+
+ sig { returns(T::Hash[Symbol, T.any(Integer, String)]) }
+ def default_cron_values
+ {
+ Month: "*",
+ Day: "*",
+ Weekday: "*",
+ Hour: "*",
+ Minute: "*",
+ }
+ end
+
+ sig { params(cron_statement: String).returns(T::Hash[Symbol, T.any(Integer, String)]) }
+ def parse_cron(cron_statement)
+ parsed = default_cron_values
+
+ case cron_statement
+ when "@hourly"
+ parsed[:Minute] = 0
+ when "@daily"
+ parsed[:Minute] = 0
+ parsed[:Hour] = 0
+ when "@weekly"
+ parsed[:Minute] = 0
+ parsed[:Hour] = 0
+ parsed[:Weekday] = 0
+ when "@monthly"
+ parsed[:Minute] = 0
+ parsed[:Hour] = 0
+ parsed[:Day] = 1
+ when "@yearly", "@annually"
+ parsed[:Minute] = 0
+ parsed[:Hour] = 0
+ parsed[:Day] = 1
+ parsed[:Month] = 1
+ else
+ cron_parts = cron_statement.split
+ raise TypeError, "Service#parse_cron expects a valid cron syntax" if cron_parts.length != 5
+
+ [:Minute, :Hour, :Day, :Month, :Weekday].each_with_index do |selector, index|
+ parsed[selector] = Integer(cron_parts.fetch(index)) if cron_parts.fetch(index) != "*"
+ end
+ end
+
+ parsed
+ end
+
sig { params(variables: T::Hash[String, String]).returns(T.nilable(T::Hash[String, String])) }
def environment_variables(variables = {})
case T.unsafe(variables)
@@ -246,6 +302,10 @@ def to_plist
base[:StandardErrorPath] = @error_log_path if @error_log_path.present?
base[:EnvironmentVariables] = @environment_variables unless @environment_variables.empty?
+ if @cron.present? && @run_type == RUN_TYPE_CRON
+ base[:StartCalendarInterval] = @cron.reject { |_, value| value == "*" }
+ end
+
base.to_plist
end
@@ -295,9 +355,15 @@ def to_systemd_timer
instance_eval(&@service_block)
options = []
- options << "Persistent=true=" if @run_type == RUN_TYPE_CRON
+ options << "Persistent=true" if @run_type == RUN_TYPE_CRON
options << "OnUnitActiveSec=#{@interval}" if @run_type == RUN_TYPE_INTERVAL
+ if @run_type == RUN_TYPE_CRON
+ minutes = @cron[:Minute] == "*" ? "*" : format("%02d", @cron[:Minute])
+ hours = @cron[:Hour] == "*" ? "*" : format("%02d", @cron[:Hour])
+ options << "OnCalendar=#{@cron[:Weekday]}-*-#{@cron[:Month]}-#{@cron[:Day]} #{hours}:#{minutes}:00"
+ end
+
timer + options.join("\n")
end
end | true |
Other | Homebrew | brew | 302975829db019bdcd33f1662dbe04a765b08d5f.json | service: add basic cron support | Library/Homebrew/test/service_spec.rb | @@ -32,16 +32,20 @@
end
end
- describe "#run_type" do
- it "throws for cron type" do
+ describe "#process_type" do
+ it "throws for unexpected type" do
f.class.service do
run opt_bin/"beanstalkd"
- run_type :cron
+ process_type :cow
end
- expect { f.service.manual_command }.to raise_error TypeError, "Service#run_type does not support cron"
+ expect {
+ f.service.manual_command
+ }.to raise_error TypeError, "Service#process_type allows: 'background'/'standard'/'interactive'/'adaptive'"
end
+ end
+ describe "#run_type" do
it "throws for unexpected type" do
f.class.service do
run opt_bin/"beanstalkd"
@@ -206,6 +210,40 @@
EOS
expect(plist).to eq(plist_expect)
end
+
+ it "returns valid cron plist" do
+ f.class.service do
+ run opt_bin/"beanstalkd"
+ run_type :cron
+ cron "@daily"
+ end
+
+ plist = f.service.to_plist
+ plist_expect = <<~EOS
+ <?xml version="1.0" encoding="UTF-8"?>
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+ <plist version="1.0">
+ <dict>
+ \t<key>Label</key>
+ \t<string>homebrew.mxcl.formula_name</string>
+ \t<key>ProgramArguments</key>
+ \t<array>
+ \t\t<string>#{HOMEBREW_PREFIX}/opt/formula_name/bin/beanstalkd</string>
+ \t</array>
+ \t<key>RunAtLoad</key>
+ \t<false/>
+ \t<key>StartCalendarInterval</key>
+ \t<dict>
+ \t\t<key>Hour</key>
+ \t\t<integer>0</integer>
+ \t\t<key>Minute</key>
+ \t\t<integer>0</integer>
+ \t</dict>
+ </dict>
+ </plist>
+ EOS
+ expect(plist).to eq(plist_expect)
+ end
end
describe "#to_systemd_unit" do
@@ -314,6 +352,53 @@
EOS
expect(unit).to eq(unit_expect)
end
+
+ it "throws on incomplete cron" do
+ f.class.service do
+ run opt_bin/"beanstalkd"
+ run_type :cron
+ cron "1 2 3 4"
+ end
+
+ expect {
+ f.service.to_systemd_timer
+ }.to raise_error TypeError, "Service#parse_cron expects a valid cron syntax"
+ end
+
+ it "returns valid cron timers" do
+ styles = {
+ "@hourly": "*-*-*-* *:00:00",
+ "@daily": "*-*-*-* 00:00:00",
+ "@weekly": "0-*-*-* 00:00:00",
+ "@monthly": "*-*-*-1 00:00:00",
+ "@yearly": "*-*-1-1 00:00:00",
+ "@annually": "*-*-1-1 00:00:00",
+ "5 5 5 5 5": "5-*-5-5 05:05:00",
+ }
+
+ styles.each do |cron, calendar|
+ f.class.service do
+ run opt_bin/"beanstalkd"
+ run_type :cron
+ cron cron.to_s
+ end
+
+ unit = f.service.to_systemd_timer
+ unit_expect = <<~EOS
+ [Unit]
+ Description=Homebrew generated timer for formula_name
+
+ [Install]
+ WantedBy=timers.target
+
+ [Timer]
+ Unit=homebrew.formula_name
+ Persistent=true
+ OnCalendar=#{calendar}
+ EOS
+ expect(unit).to eq(unit_expect.chomp)
+ end
+ end
end
describe "#timed?" do | true |
Other | Homebrew | brew | 4cb8afeeef6d9457e8741131dcdc79a69312403b.json | service: add timer support for systemd | Library/Homebrew/formula.rb | @@ -1005,6 +1005,12 @@ def systemd_service_path
opt_prefix/"#{service_name}.service"
end
+ # The generated systemd {.timer} file path.
+ sig { returns(Pathname) }
+ def systemd_timer_path
+ opt_prefix/"#{service_name}.timer"
+ end
+
# The service specification of the software.
def service
return unless service? | true |
Other | Homebrew | brew | 4cb8afeeef6d9457e8741131dcdc79a69312403b.json | service: add timer support for systemd | Library/Homebrew/formula_installer.rb | @@ -1043,6 +1043,12 @@ def install_service
service_path = formula.systemd_service_path
service_path.atomic_write(formula.service.to_systemd_unit)
service_path.chmod 0644
+
+ if formula.service.timed?
+ timer_path = formula.systemd_timer_path
+ timer_path.atomic_write(formula.service.to_systemd_timer)
+ timer_path.chmod 0644
+ end
end
service = if formula.service? | true |
Other | Homebrew | brew | 4cb8afeeef6d9457e8741131dcdc79a69312403b.json | service: add timer support for systemd | Library/Homebrew/service.rb | @@ -203,6 +203,8 @@ def command
@run.map(&:to_s)
end
+ # Returns the `String` command to run manually instead of the service.
+ # @return [String]
sig { returns(String) }
def manual_command
instance_eval(&@service_block)
@@ -213,6 +215,14 @@ def manual_command
out.join(" ")
end
+ # Returns a `Boolean` describing if a service is timed.
+ # @return [Boolean]
+ sig { returns(T::Boolean) }
+ def timed?
+ instance_eval(&@service_block)
+ @run_type == RUN_TYPE_CRON || @run_type == RUN_TYPE_INTERVAL
+ end
+
# Returns a `String` plist.
# @return [String]
sig { returns(String) }
@@ -267,5 +277,28 @@ def to_systemd_unit
unit + options.join("\n")
end
+
+ # Returns a `String` systemd unit timer.
+ # @return [String]
+ sig { returns(String) }
+ def to_systemd_timer
+ timer = <<~EOS
+ [Unit]
+ Description=Homebrew generated timer for #{@formula.name}
+
+ [Install]
+ WantedBy=timers.target
+
+ [Timer]
+ Unit=#{@formula.service_name}
+ EOS
+
+ instance_eval(&@service_block)
+ options = []
+ options << "Persistent=true=" if @run_type == RUN_TYPE_CRON
+ options << "OnUnitActiveSec=#{@interval}" if @run_type == RUN_TYPE_INTERVAL
+
+ timer + options.join("\n")
+ end
end
end | true |
Other | Homebrew | brew | 4cb8afeeef6d9457e8741131dcdc79a69312403b.json | service: add timer support for systemd | Library/Homebrew/test/formula_installer_spec.rb | @@ -245,10 +245,11 @@ class #{Formulary.class_s(dep_name)} < Formula
expect(formula).to receive(:plist).and_return(nil)
expect(formula).to receive(:service?).exactly(3).and_return(true)
- expect(formula).to receive(:service).twice.and_return(service)
+ expect(formula).to receive(:service).exactly(3).and_return(service)
expect(formula).to receive(:plist_path).and_call_original
expect(formula).to receive(:systemd_service_path).and_call_original
+ expect(service).to receive(:timed?).and_return(false)
expect(service).to receive(:to_plist).and_return("plist")
expect(service).to receive(:to_systemd_unit).and_return("unit")
@@ -261,6 +262,36 @@ class #{Formulary.class_s(dep_name)} < Formula
expect(service_path).to exist
end
+ it "works if timed service is set" do
+ formula = Testball.new
+ plist_path = formula.plist_path
+ service_path = formula.systemd_service_path
+ timer_path = formula.systemd_timer_path
+ service = Homebrew::Service.new(formula)
+ formula.opt_prefix.mkpath
+
+ expect(formula).to receive(:plist).and_return(nil)
+ expect(formula).to receive(:service?).exactly(3).and_return(true)
+ expect(formula).to receive(:service).exactly(4).and_return(service)
+ expect(formula).to receive(:plist_path).and_call_original
+ expect(formula).to receive(:systemd_service_path).and_call_original
+ expect(formula).to receive(:systemd_timer_path).and_call_original
+
+ expect(service).to receive(:to_plist).and_return("plist")
+ expect(service).to receive(:timed?).and_return(true)
+ expect(service).to receive(:to_systemd_unit).and_return("unit")
+ expect(service).to receive(:to_systemd_timer).and_return("timer")
+
+ installer = described_class.new(formula)
+ expect {
+ installer.install_service
+ }.not_to output(/Error: Failed to install service files/).to_stderr
+
+ expect(plist_path).to exist
+ expect(service_path).to exist
+ expect(timer_path).to exist
+ end
+
it "returns without definition" do
formula = Testball.new
path = formula.plist_path | true |
Other | Homebrew | brew | 4cb8afeeef6d9457e8741131dcdc79a69312403b.json | service: add timer support for systemd | Library/Homebrew/test/formula_spec.rb | @@ -758,6 +758,7 @@
expect(f.service_name).to eq("homebrew.formula_name")
expect(f.plist_path).to eq(HOMEBREW_PREFIX/"opt/formula_name/homebrew.mxcl.formula_name.plist")
expect(f.systemd_service_path).to eq(HOMEBREW_PREFIX/"opt/formula_name/homebrew.formula_name.service")
+ expect(f.systemd_timer_path).to eq(HOMEBREW_PREFIX/"opt/formula_name/homebrew.formula_name.timer")
end
end
| true |
Other | Homebrew | brew | 4cb8afeeef6d9457e8741131dcdc79a69312403b.json | service: add timer support for systemd | Library/Homebrew/test/service_spec.rb | @@ -272,6 +272,70 @@
end
end
+ describe "#to_systemd_timer" do
+ it "returns valid timer" do
+ f.class.service do
+ run [opt_bin/"beanstalkd", "test"]
+ run_type :interval
+ interval 5
+ end
+
+ unit = f.service.to_systemd_timer
+ unit_expect = <<~EOS
+ [Unit]
+ Description=Homebrew generated timer for formula_name
+
+ [Install]
+ WantedBy=timers.target
+
+ [Timer]
+ Unit=homebrew.formula_name
+ OnUnitActiveSec=5
+ EOS
+ expect(unit).to eq(unit_expect.strip)
+ end
+
+ it "returns valid partial timer" do
+ f.class.service do
+ run opt_bin/"beanstalkd"
+ run_type :immediate
+ end
+
+ unit = f.service.to_systemd_timer
+ unit_expect = <<~EOS
+ [Unit]
+ Description=Homebrew generated timer for formula_name
+
+ [Install]
+ WantedBy=timers.target
+
+ [Timer]
+ Unit=homebrew.formula_name
+ EOS
+ expect(unit).to eq(unit_expect)
+ end
+ end
+
+ describe "#timed?" do
+ it "returns false for immediate" do
+ f.class.service do
+ run [opt_bin/"beanstalkd", "test"]
+ run_type :immediate
+ end
+
+ expect(f.service.timed?).to eq(false)
+ end
+
+ it "returns true for interval" do
+ f.class.service do
+ run [opt_bin/"beanstalkd", "test"]
+ run_type :interval
+ end
+
+ expect(f.service.timed?).to eq(true)
+ end
+ end
+
describe "#command" do
it "returns @run data" do
f.class.service do | true |
Other | Homebrew | brew | cec3f2190a2b50da25fa26fbbdb005e29d31a06c.json | Add shellenv template for PowerShell | Library/Homebrew/cmd/shellenv.sh | @@ -35,6 +35,15 @@ homebrew-shellenv() {
echo "setenv MANPATH ${HOMEBREW_PREFIX}/share/man\`[ \${?MANPATH} == 1 ] && echo \":\${MANPATH}\"\`:;"
echo "setenv INFOPATH ${HOMEBREW_PREFIX}/share/info\`[ \${?INFOPATH} == 1 ] && echo \":\${INFOPATH}\"\`;"
;;
+ pwsh | -pwsh)
+ echo "[System.Environment]::SetEnvironmentVariable('HOMEBREW_PREFIX','${HOMEBREW_PREFIX}',[System.EnvironmentVariableTarget]::Process)"
+ echo "[System.Environment]::SetEnvironmentVariable('HOMEBREW_CELLAR','${HOMEBREW_CELLAR}',[System.EnvironmentVariableTarget]::Process)"
+ echo "[System.Environment]::SetEnvironmentVariable('HOMEBREW_REPOSITORY','${HOMEBREW_REPOSITORY}',[System.EnvironmentVariableTarget]::Process)"
+ echo "[System.Environment]::SetEnvironmentVariable('HOMEBREW_SHELLENV_PREFIX','${HOMEBREW_PREFIX}',[System.EnvironmentVariableTarget]::Process)"
+ echo "[System.Environment]::SetEnvironmentVariable('PATH',\$('${HOMEBREW_PREFIX}/bin:${HOMEBREW_PREFIX}/sbin:'+\$ENV:PATH),[System.EnvironmentVariableTarget]::Process)"
+ echo "[System.Environment]::SetEnvironmentVariable('MANPATH',\$('${HOMEBREW_PREFIX}/share/man'+\$(if(\${ENV:MANPATH}){':'+\${ENV:MANPATH}})+':'),[System.EnvironmentVariableTarget]::Process)"
+ echo "[System.Environment]::SetEnvironmentVariable('INFOPATH',\$('${HOMEBREW_PREFIX}/share/info'+\$(if(\${ENV:INFOPATH}){':'+\${ENV:INFOPATH}})),[System.EnvironmentVariableTarget]::Process)"
+ ;;
*)
echo "export HOMEBREW_PREFIX=\"${HOMEBREW_PREFIX}\";"
echo "export HOMEBREW_CELLAR=\"${HOMEBREW_CELLAR}\";" | false |
Other | Homebrew | brew | df0258b9f886cf38c97ebe0b25205d470197f4e2.json | Update RBI files for parser. | Library/Homebrew/sorbet/rbi/gems/parser@3.0.3.1.rbi | @@ -376,6 +376,7 @@ class Parser::Builders::Default
def unary_op_map(op_t, arg_e = T.unsafe(nil)); end
def unquoted_map(token); end
def validate_definee(definee); end
+ def validate_no_forward_arg_after_restarg(args); end
def value(token); end
def var_send_map(variable_e); end
def variable_map(name_t); end
@@ -411,6 +412,7 @@ class Parser::Context
def empty?; end
def in_block?; end
def in_class?; end
+ def in_def_open_args?; end
def in_dynamic_block?; end
def in_lambda?; end
def indirectly_in_def?; end
@@ -1599,8 +1601,10 @@ class Parser::StaticEnvironment
def initialize; end
def declare(name); end
+ def declare_anonymous_blockarg; end
def declare_forward_args; end
def declared?(name); end
+ def declared_anonymous_blockarg?; end
def declared_forward_args?; end
def empty?; end
def extend_dynamic; end
@@ -1609,6 +1613,7 @@ class Parser::StaticEnvironment
def unextend; end
end
+Parser::StaticEnvironment::ANONYMOUS_BLOCKARG = T.let(T.unsafe(nil), Symbol)
Parser::StaticEnvironment::FORWARD_ARGS = T.let(T.unsafe(nil), Symbol)
class Parser::SyntaxError < ::StandardError | false |
Other | Homebrew | brew | ed3042c37a66b5dddcdd426221dbb38f88272f41.json | livecheck: use brewed curl if called for by download URL | Library/Homebrew/livecheck/livecheck.rb | @@ -529,6 +529,28 @@ def preprocess_url(url)
url
end
+ # Fetch with brewed curl if using the download or homepage URL
+ # and the download URL specifies `using: :homebrew_curl`.
+ sig { params(formula_or_cask: T.any(Formula, Cask::Cask), url: String).returns(T::Boolean) }
+ def use_homebrew_curl?(formula_or_cask, url)
+ if checkable_urls(formula_or_cask).include?(url)
+ case formula_or_cask
+ when Formula
+ [:stable, :head].any? do |spec_name|
+ next false unless (spec = formula_or_cask.send(spec_name))
+
+ spec.using == :homebrew_curl
+ end
+ when Cask::Cask
+ formula_or_cask.url.using == :homebrew_curl
+ else
+ T.absurd(formula_or_cask)
+ end
+ else
+ false
+ end
+ end
+
# Identifies the latest version of the formula and returns a Hash containing
# the version information. Returns nil if a latest version couldn't be found.
sig {
@@ -637,10 +659,16 @@ def latest_version(
next if strategy.blank?
+ homebrew_curl = case strategy_name
+ when "PageMatch", "HeaderMatch"
+ use_homebrew_curl?((referenced_formula_or_cask || formula_or_cask), url)
+ end
+
strategy_data = strategy.find_versions(
- url: url,
- regex: livecheck_regex,
- cask: cask,
+ url: url,
+ regex: livecheck_regex,
+ homebrew_curl: homebrew_curl,
+ cask: cask,
&livecheck_strategy_block
)
match_version_map = strategy_data[:matches] | true |
Other | Homebrew | brew | ed3042c37a66b5dddcdd426221dbb38f88272f41.json | livecheck: use brewed curl if called for by download URL | Library/Homebrew/livecheck/strategy.rb | @@ -171,16 +171,18 @@ def from_url(url, livecheck_strategy: nil, url_provided: false, regex_provided:
# collected into an array of hashes.
#
# @param url [String] the URL to fetch
+ # @param homebrew_curl [Boolean] whether to use brewed curl with the URL
# @return [Array]
- sig { params(url: String).returns(T::Array[T::Hash[String, String]]) }
- def self.page_headers(url)
+ sig { params(url: String, homebrew_curl: T::Boolean).returns(T::Array[T::Hash[String, String]]) }
+ def self.page_headers(url, homebrew_curl: false)
headers = []
[:default, :browser].each do |user_agent|
stdout, _, status = curl_with_workarounds(
*PAGE_HEADERS_CURL_ARGS, url,
**DEFAULT_CURL_OPTIONS,
- user_agent: user_agent
+ use_homebrew_curl: homebrew_curl,
+ user_agent: user_agent
)
while stdout.match?(/\AHTTP.*\r$/)
@@ -203,17 +205,19 @@ def self.page_headers(url)
# array with the error message instead.
#
# @param url [String] the URL of the content to check
+ # @param homebrew_curl [Boolean] whether to use brewed curl with the URL
# @return [Hash]
- sig { params(url: String).returns(T::Hash[Symbol, T.untyped]) }
- def self.page_content(url)
+ sig { params(url: String, homebrew_curl: T::Boolean).returns(T::Hash[Symbol, T.untyped]) }
+ def self.page_content(url, homebrew_curl: false)
original_url = url
stderr = nil
[:default, :browser].each do |user_agent|
stdout, stderr, status = curl_with_workarounds(
*PAGE_CONTENT_CURL_ARGS, url,
**DEFAULT_CURL_OPTIONS,
- user_agent: user_agent
+ use_homebrew_curl: homebrew_curl,
+ user_agent: user_agent
)
next unless status.success?
| true |
Other | Homebrew | brew | ed3042c37a66b5dddcdd426221dbb38f88272f41.json | livecheck: use brewed curl if called for by download URL | Library/Homebrew/livecheck/strategy/header_match.rb | @@ -71,19 +71,21 @@ def self.versions_from_headers(headers, regex = nil, &block)
#
# @param url [String] the URL to fetch
# @param regex [Regexp, nil] a regex used for matching versions
+ # @param homebrew_curl [Boolean] whether to use brewed curl with the URL
# @return [Hash]
sig {
params(
- url: String,
- regex: T.nilable(Regexp),
- _unused: T.nilable(T::Hash[Symbol, T.untyped]),
- block: T.untyped,
+ url: String,
+ regex: T.nilable(Regexp),
+ homebrew_curl: T::Boolean,
+ _unused: T.nilable(T::Hash[Symbol, T.untyped]),
+ block: T.untyped,
).returns(T::Hash[Symbol, T.untyped])
}
- def self.find_versions(url:, regex: nil, **_unused, &block)
+ def self.find_versions(url:, regex: nil, homebrew_curl: false, **_unused, &block)
match_data = { matches: {}, regex: regex, url: url }
- headers = Strategy.page_headers(url)
+ headers = Strategy.page_headers(url, homebrew_curl: homebrew_curl)
# Merge the headers from all responses into one hash
merged_headers = headers.reduce(&:merge) | true |
Other | Homebrew | brew | ed3042c37a66b5dddcdd426221dbb38f88272f41.json | livecheck: use brewed curl if called for by download URL | Library/Homebrew/livecheck/strategy/page_match.rb | @@ -79,17 +79,19 @@ def self.versions_from_content(content, regex, &block)
# @param regex [Regexp, nil] a regex used for matching versions
# @param provided_content [String, nil] page content to use in place of
# fetching via Strategy#page_content
+ # @param homebrew_curl [Boolean] whether to use brewed curl with the URL
# @return [Hash]
sig {
params(
url: String,
regex: T.nilable(Regexp),
provided_content: T.nilable(String),
+ homebrew_curl: T::Boolean,
_unused: T.nilable(T::Hash[Symbol, T.untyped]),
block: T.untyped,
).returns(T::Hash[Symbol, T.untyped])
}
- def self.find_versions(url:, regex: nil, provided_content: nil, **_unused, &block)
+ def self.find_versions(url:, regex: nil, provided_content: nil, homebrew_curl: false, **_unused, &block)
if regex.blank? && block.blank?
raise ArgumentError, "#{T.must(name).demodulize} requires a regex or `strategy` block"
end
@@ -101,7 +103,7 @@ def self.find_versions(url:, regex: nil, provided_content: nil, **_unused, &bloc
match_data[:cached] = true
provided_content
else
- match_data.merge!(Strategy.page_content(url))
+ match_data.merge!(Strategy.page_content(url, homebrew_curl: homebrew_curl))
match_data[:content]
end
return match_data if content.blank? | true |
Other | Homebrew | brew | ed3042c37a66b5dddcdd426221dbb38f88272f41.json | livecheck: use brewed curl if called for by download URL | Library/Homebrew/test/livecheck/livecheck_spec.rb | @@ -16,7 +16,7 @@
formula("test") do
desc "Test formula"
homepage "https://brew.sh"
- url "https://brew.sh/test-0.0.1.tgz"
+ url "https://brew.sh/test-0.0.1.tgz", using: :homebrew_curl
head "https://github.com/Homebrew/brew.git"
livecheck do
@@ -31,7 +31,7 @@
cask "test" do
version "0.0.1,2"
- url "https://brew.sh/test-0.0.1.dmg"
+ url "https://brew.sh/test-0.0.1.dmg", using: :homebrew_curl
name "Test"
desc "Test cask"
homepage "https://brew.sh"
@@ -147,6 +147,17 @@
end
end
+ describe "::use_homebrew_curl?" do
+ it "uses brewed curl if called for by the download URL" do
+ expect(livecheck.use_homebrew_curl?(f, livecheck_url)).to be(false)
+ expect(livecheck.use_homebrew_curl?(f, homepage_url)).to be(true)
+ expect(livecheck.use_homebrew_curl?(f, stable_url)).to be(true)
+ expect(livecheck.use_homebrew_curl?(c, livecheck_url)).to be(false)
+ expect(livecheck.use_homebrew_curl?(c, homepage_url)).to be(true)
+ expect(livecheck.use_homebrew_curl?(c, cask_url)).to be(true)
+ end
+ end
+
describe "::preprocess_url" do
let(:github_git_url_with_extension) { "https://github.com/Homebrew/brew.git" }
| true |
Other | Homebrew | brew | 2b9784864d184373f1baeb765d38f77624895639.json | docs/Versions: require ABI stability | docs/Versions.md | @@ -17,6 +17,7 @@ Versioned formulae we include in [homebrew/core](https://github.com/homebrew/hom
* Versioned formulae should not have `resource`s that require security updates. For example, a `node@6` formula should not have an `npm` resource but instead rely on the `npm` provided by the upstream tarball.
* Versioned formulae should be as similar as possible and sensible compared to the main formulae. Creating or updating a versioned formula should be a chance to ask questions of the main formula and vice versa, e.g. can some unused or useless options be removed or made default?
* No more than five versions of a formula (including the main one) will be supported at any given time, regardless of usage. When removing formulae that violate this, we will aim to do so based on usage and support status rather than age.
+* Versioned formulae must be ABI stable for the lifetime of the version branch. Updates to the versioned formula must not introduce ABI incompatibilities or otherwise require dependents to be revision bumped. Updates which violate this should be rejected and the formula be deprecated from that point onwards.
Homebrew's versions should not be used to "pin" formulae to your personal requirements. You should instead create your own [tap](How-to-Create-and-Maintain-a-Tap.md) for formulae you or your organisation wish to control the versioning of, or those that do not meet the above standards. Software that has regular API or ABI breaking releases still needs to meet all the above requirements; that a `brew upgrade` has broken something for you is not an argument for us to add and maintain a formula for you.
| false |
Other | Homebrew | brew | 6337dbfac948e3c5fbfc25477fbe33d5b2b41703.json | ENV/super: enable deterministic archive generation | Library/Homebrew/extend/os/mac/extend/ENV/super.rb | @@ -127,6 +127,12 @@ def setup_build_environment(formula: nil, cc: nil, build_bottle: false, bottle_a
# The tools in /usr/bin proxy to the active developer directory.
# This means we can use them for any combination of CLT and Xcode.
self["HOMEBREW_PREFER_CLT_PROXIES"] = "1"
+
+ # Deterministic timestamping.
+ # This can work on older Xcode versions, but they contain some bugs.
+ # Notably, Xcode 10.2 fixes issues where ZERO_AR_DATE affected file mtimes.
+ # Xcode 11.0 contains fixes for lldb reading things built with ZERO_AR_DATE.
+ self["ZERO_AR_DATE"] = "1" if MacOS::Xcode.version >= "11.0" || MacOS::CLT.version >= "11.0"
end
def no_weak_imports | false |
Other | Homebrew | brew | 0c1389d97ce003580edbc4ea8f6c74ca4db4d4c5.json | Update RBI files for simplecov-cobertura. | Library/Homebrew/sorbet/rbi/gems/simplecov-cobertura@2.0.0.rbi | @@ -1,9 +1,9 @@
+# typed: true
+
# DO NOT EDIT MANUALLY
# This is an autogenerated file for types exported from the `simplecov-cobertura` gem.
# Please instead update this file by running `bin/tapioca gem simplecov-cobertura`.
-# typed: true
-
module SimpleCov
extend ::SimpleCov::Configuration
@@ -66,9 +66,11 @@ class SimpleCov::Formatter::CoberturaFormatter
private
def coverage_output(result); end
+ def extract_rate(percent); end
def project_root; end
def resolve_filename(filename); end
def result_to_xml(result); end
+ def set_branch_attributes(line, file_line, branched_lines, branched_lines_covered); end
def set_class_attributes(class_, file); end
def set_coverage_attributes(coverage, result); end
def set_line_attributes(line, file_line); end | false |
Other | Homebrew | brew | c4b49c52af1853ad8957a6ebedcba9fb5325b7f8.json | Update RBI files for rbi. | Library/Homebrew/sorbet/rbi/gems/rbi@0.0.8.rbi | @@ -26,6 +26,23 @@ class RBI::ASTVisitor
def parse_name(node); end
end
+class RBI::Arg < ::RBI::Node
+ sig { params(value: String, loc: T.nilable(RBI::Loc)).void }
+ def initialize(value, loc: T.unsafe(nil)); end
+
+ sig { params(other: T.nilable(Object)).returns(T::Boolean) }
+ def ==(other); end
+
+ sig { override.params(v: RBI::Printer).void }
+ def accept_printer(v); end
+
+ sig { returns(String) }
+ def to_s; end
+
+ sig { returns(String) }
+ def value; end
+end
+
class RBI::Attr < ::RBI::NodeWithComments
include ::RBI::Indexable
@@ -313,10 +330,12 @@ class RBI::Group::Kind < ::T::Enum
Helpers = new
TypeMembers = new
MixesInClassMethods = new
+ Sends = new
TStructFields = new
TEnums = new
Inits = new
Methods = new
+ SingletonClasses = new
Consts = new
end
end
@@ -366,15 +385,20 @@ class RBI::Index < ::RBI::Visitor
sig { params(id: String).returns(T::Array[RBI::Node]) }
def [](id); end
- sig { params(node: T.all(RBI::Indexable, RBI::Node)).void }
- def index(node); end
+ sig { params(nodes: RBI::Node).void }
+ def index(*nodes); end
sig { returns(T::Array[String]) }
def keys; end
sig { override.params(node: T.nilable(RBI::Node)).void }
def visit(node); end
+ private
+
+ sig { params(node: T.all(RBI::Indexable, RBI::Node)).void }
+ def index_node(node); end
+
class << self
sig { params(node: RBI::Node).returns(RBI::Index) }
def index(*node); end
@@ -388,6 +412,23 @@ module RBI::Indexable
def index_ids; end
end
+class RBI::KwArg < ::RBI::Arg
+ sig { params(keyword: String, value: String, loc: T.nilable(RBI::Loc)).void }
+ def initialize(keyword, value, loc: T.unsafe(nil)); end
+
+ sig { params(other: T.nilable(Object)).returns(T::Boolean) }
+ def ==(other); end
+
+ sig { override.params(v: RBI::Printer).void }
+ def accept_printer(v); end
+
+ sig { returns(String) }
+ def keyword; end
+
+ sig { returns(String) }
+ def to_s; end
+end
+
class RBI::KwOptParam < ::RBI::Param
sig { params(name: String, value: String, loc: T.nilable(RBI::Loc), comments: T::Array[RBI::Comment], block: T.nilable(T.proc.params(node: RBI::KwOptParam).void)).void }
def initialize(name, value, loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end
@@ -724,8 +765,14 @@ class RBI::Parser
sig { params(path: String).returns(RBI::Tree) }
def parse_file(path); end
+ sig { params(paths: T::Array[String]).returns(T::Array[RBI::Tree]) }
+ def parse_files(paths); end
+
sig { params(string: String).returns(RBI::Tree) }
def parse_string(string); end
+
+ sig { params(strings: T::Array[String]).returns(T::Array[RBI::Tree]) }
+ def parse_strings(strings); end
end
end
@@ -956,6 +1003,45 @@ class RBI::Rewriters::NestSingletonMethods < ::RBI::Visitor
def visit(node); end
end
+class RBI::Rewriters::RemoveKnownDefinitions < ::RBI::Visitor
+ sig { params(index: RBI::Index).void }
+ def initialize(index); end
+
+ sig { returns(T::Array[RBI::Rewriters::RemoveKnownDefinitions::Operation]) }
+ def operations; end
+
+ sig { override.params(node: T.nilable(RBI::Node)).void }
+ def visit(node); end
+
+ sig { params(nodes: T::Array[RBI::Node]).void }
+ def visit_all(nodes); end
+
+ private
+
+ sig { params(node: RBI::Node, previous: RBI::Node).void }
+ def delete_node(node, previous); end
+
+ sig { params(node: RBI::Indexable).returns(T.nilable(RBI::Node)) }
+ def previous_definition_for(node); end
+
+ class << self
+ sig { params(tree: RBI::Tree, index: RBI::Index).returns([RBI::Tree, T::Array[RBI::Rewriters::RemoveKnownDefinitions::Operation]]) }
+ def remove(tree, index); end
+ end
+end
+
+class RBI::Rewriters::RemoveKnownDefinitions::Operation < ::T::Struct
+ const :deleted_node, RBI::Node
+ const :duplicate_of, RBI::Node
+
+ sig { returns(String) }
+ def to_s; end
+
+ class << self
+ def inherited(s); end
+ end
+end
+
class RBI::Rewriters::SortNodes < ::RBI::Visitor
sig { override.params(node: T.nilable(RBI::Node)).void }
def visit(node); end
@@ -1017,6 +1103,37 @@ class RBI::ScopeConflict < ::RBI::Tree
def right; end
end
+class RBI::Send < ::RBI::NodeWithComments
+ include ::RBI::Indexable
+
+ sig { params(method: String, args: T::Array[RBI::Arg], loc: T.nilable(RBI::Loc), comments: T::Array[RBI::Comment], block: T.nilable(T.proc.params(node: RBI::Send).void)).void }
+ def initialize(method, args = T.unsafe(nil), loc: T.unsafe(nil), comments: T.unsafe(nil), &block); end
+
+ sig { params(arg: RBI::Arg).void }
+ def <<(arg); end
+
+ sig { params(other: T.nilable(Object)).returns(T::Boolean) }
+ def ==(other); end
+
+ sig { override.params(v: RBI::Printer).void }
+ def accept_printer(v); end
+
+ sig { returns(T::Array[RBI::Arg]) }
+ def args; end
+
+ sig { override.params(other: RBI::Node).returns(T::Boolean) }
+ def compatible_with?(other); end
+
+ sig { override.returns(T::Array[String]) }
+ def index_ids; end
+
+ sig { returns(String) }
+ def method; end
+
+ sig { returns(String) }
+ def to_s; end
+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
@@ -1337,14 +1454,11 @@ end
RBI::Tree::SPECIAL_METHOD_NAMES = T.let(T.unsafe(nil), Array)
class RBI::TreeBuilder < ::RBI::ASTVisitor
- sig { params(file: String, comments: T::Hash[Parser::Source::Map, T::Array[Parser::Source::Comment]]).void }
- def initialize(file:, comments: T.unsafe(nil)); end
-
- sig { params(comments: T::Array[Parser::Source::Comment]).void }
- def assoc_dangling_comments(comments); end
+ sig { params(file: String, comments: T::Array[Parser::Source::Comment], nodes_comments_assoc: T::Hash[Parser::Source::Map, T::Array[Parser::Source::Comment]]).void }
+ def initialize(file:, comments: T.unsafe(nil), nodes_comments_assoc: T.unsafe(nil)); end
sig { void }
- def separate_header_comments; end
+ def post_process; end
sig { returns(RBI::Tree) }
def tree; end
@@ -1354,6 +1468,9 @@ class RBI::TreeBuilder < ::RBI::ASTVisitor
private
+ sig { void }
+ def assoc_dangling_comments; end
+
sig { returns(RBI::Tree) }
def current_scope; end
@@ -1387,6 +1504,9 @@ class RBI::TreeBuilder < ::RBI::ASTVisitor
sig { params(node: AST::Node).returns(T.nilable(RBI::Node)) }
def parse_send(node); end
+ sig { params(node: AST::Node).returns(T::Array[RBI::Arg]) }
+ def parse_send_args(node); end
+
sig { params(node: AST::Node).returns(RBI::Sig) }
def parse_sig(node); end
@@ -1396,6 +1516,12 @@ class RBI::TreeBuilder < ::RBI::ASTVisitor
sig { params(node: AST::Node).returns([String, String, T.nilable(String)]) }
def parse_tstruct_prop(node); end
+ sig { void }
+ def separate_header_comments; end
+
+ sig { void }
+ def set_root_tree_loc; end
+
sig { params(node: AST::Node).returns(T::Boolean) }
def struct_definition?(node); end
end | true |
Other | Homebrew | brew | c4b49c52af1853ad8957a6ebedcba9fb5325b7f8.json | Update RBI files for rbi. | Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi | @@ -4282,6 +4282,12 @@ class RBI::Rewriters::Merge
extend ::T::Private::Methods::SingletonMethodHooks
end
+class RBI::Rewriters::RemoveKnownDefinitions::Operation
+ extend ::T::Sig
+ extend ::T::Private::Methods::MethodHooks
+ extend ::T::Private::Methods::SingletonMethodHooks
+end
+
class RBI::Visitor
extend ::T::Helpers
extend ::T::Sig | true |
Other | Homebrew | brew | 9f9cd757a1d065c7ed783390d92ff7140f6c24b7.json | Update RBI files for parser. | Library/Homebrew/sorbet/rbi/gems/parser@3.0.3.0.rbi | @@ -1,9 +1,9 @@
+# typed: true
+
# DO NOT EDIT MANUALLY
# This is an autogenerated file for types exported from the `parser` gem.
# Please instead update this file by running `bin/tapioca gem parser`.
-# typed: true
-
module Parser
class << self
private
@@ -280,6 +280,7 @@ class Parser::Builders::Default
def optarg(name_t, eql_t, value); end
def pair(key, assoc_t, value); end
def pair_keyword(key_t, value); end
+ def pair_label(key_t); end
def pair_list_18(list); end
def pair_quoted(begin_t, parts, end_t, value); end
def parser; end | false |
Other | Homebrew | brew | 11c5f8f05ad01439aefcbf518816f6833a1a043d.json | Improve discovery of some environment variables
There's a few bits of functionality that Homebrew has changed over the
years, makes sense as a sensible default but some people find really
annoying:
- automatically running `brew update`
- automatically running `brew cleanup`
- automatically upgrading outdated dependents
- automatically reinstalling broken dependents
For each of these: let's improve the documentation of the commands
whose behaviour is changed and the environment variables themselves. | Library/Homebrew/.rubocop.yml | @@ -16,7 +16,7 @@ Lint/NestedMethodDefinition:
Metrics/AbcSize:
Max: 280
Metrics/BlockLength:
- Max: 100
+ Max: 102
Exclude:
# TODO: extract more of the bottling logic
- "dev-cmd/bottle.rb" | true |
Other | Homebrew | brew | 11c5f8f05ad01439aefcbf518816f6833a1a043d.json | Improve discovery of some environment variables
There's a few bits of functionality that Homebrew has changed over the
years, makes sense as a sensible default but some people find really
annoying:
- automatically running `brew update`
- automatically running `brew cleanup`
- automatically upgrading outdated dependents
- automatically reinstalling broken dependents
For each of these: let's improve the documentation of the commands
whose behaviour is changed and the environment variables themselves. | Library/Homebrew/brew.rb | @@ -179,10 +179,13 @@ class MissingEnvironmentVariables < RuntimeError; end
exit 1
rescue Exception => e # rubocop:disable Lint/RescueException
onoe e
- if internal_cmd && defined?(OS::ISSUES_URL) &&
- !Homebrew::EnvConfig.no_auto_update?
- $stderr.puts "#{Tty.bold}Please report this issue:#{Tty.reset}"
- $stderr.puts " #{Formatter.url(OS::ISSUES_URL)}"
+ if internal_cmd && defined?(OS::ISSUES_URL)
+ if Homebrew::EnvConfig.no_auto_update?
+ $stderr.puts "#{Tty.bold}Do not report this issue until you've run `brew update` and tried again.#{Tty.reset}"
+ else
+ $stderr.puts "#{Tty.bold}Please report this issue:#{Tty.reset}"
+ $stderr.puts " #{Formatter.url(OS::ISSUES_URL)}"
+ end
end
$stderr.puts e.backtrace
exit 1 | true |
Other | Homebrew | brew | 11c5f8f05ad01439aefcbf518816f6833a1a043d.json | Improve discovery of some environment variables
There's a few bits of functionality that Homebrew has changed over the
years, makes sense as a sensible default but some people find really
annoying:
- automatically running `brew update`
- automatically running `brew cleanup`
- automatically upgrading outdated dependents
- automatically reinstalling broken dependents
For each of these: let's improve the documentation of the commands
whose behaviour is changed and the environment variables themselves. | Library/Homebrew/cleanup.rb | @@ -161,6 +161,7 @@ def self.install_formula_clean!(f, dry_run: false)
if cleanup.periodic_clean_due?
cleanup.periodic_clean!
elsif f.latest_version_installed? && !cleanup.skip_clean_formula?(f)
+ ohai "Running `brew cleanup #{f}`..."
cleanup.cleanup_formula(f)
end
end
@@ -191,8 +192,11 @@ def periodic_clean!
ohai "Would run `brew cleanup` which has not been run in the last #{CLEANUP_DEFAULT_DAYS} days"
else
ohai "`brew cleanup` has not been run in the last #{CLEANUP_DEFAULT_DAYS} days, running now..."
- clean!(quiet: true, periodic: true)
end
+
+ return if dry_run?
+
+ clean!(quiet: true, periodic: true)
end
def clean!(quiet: false, periodic: false) | true |
Other | Homebrew | brew | 11c5f8f05ad01439aefcbf518816f6833a1a043d.json | Improve discovery of some environment variables
There's a few bits of functionality that Homebrew has changed over the
years, makes sense as a sensible default but some people find really
annoying:
- automatically running `brew update`
- automatically running `brew cleanup`
- automatically upgrading outdated dependents
- automatically reinstalling broken dependents
For each of these: let's improve the documentation of the commands
whose behaviour is changed and the environment variables themselves. | Library/Homebrew/cmd/install.rb | @@ -27,8 +27,14 @@ def install_args
Install a <formula> or <cask>. Additional options specific to a <formula> may be
appended to the command.
+ Unless `HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK` is set, `brew upgrade` or `brew reinstall` will be run for
+ outdated dependents and dependents with broken linkage, respectively.
+
Unless `HOMEBREW_NO_INSTALL_CLEANUP` is set, `brew cleanup` will then be run for
the installed formulae or, every 30 days, for all formulae.
+
+ Unless `HOMEBREW_NO_INSTALL_UPGRADE` is set, `brew install <formula>` will upgrade <formula> if it
+ is already installed but outdated.
EOS
switch "-d", "--debug",
description: "If brewing fails, open an interactive debugging session with access to IRB " \ | true |
Other | Homebrew | brew | 11c5f8f05ad01439aefcbf518816f6833a1a043d.json | Improve discovery of some environment variables
There's a few bits of functionality that Homebrew has changed over the
years, makes sense as a sensible default but some people find really
annoying:
- automatically running `brew update`
- automatically running `brew cleanup`
- automatically upgrading outdated dependents
- automatically reinstalling broken dependents
For each of these: let's improve the documentation of the commands
whose behaviour is changed and the environment variables themselves. | Library/Homebrew/cmd/reinstall.rb | @@ -26,6 +26,9 @@ def reinstall_args
Uninstall and then reinstall a <formula> or <cask> using the same options it was
originally installed with, plus any appended options specific to a <formula>.
+ Unless `HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK` is set, `brew upgrade` or `brew reinstall` will be run for
+ outdated dependents and dependents with broken linkage, respectively.
+
Unless `HOMEBREW_NO_INSTALL_CLEANUP` is set, `brew cleanup` will then be run for the
reinstalled formulae or, every 30 days, for all formulae.
EOS | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.