From 8d788ec98ce518a92eb290b33c6efa323416da46 Mon Sep 17 00:00:00 2001 From: Douglas Eichelberger Date: Fri, 24 Feb 2023 09:48:48 -0800 Subject: [PATCH] Try removing String monkey-patched types --- .../sorbet/rbi/gems/activesupport@6.1.7.2.rbi | 94 +++++++++---------- 1 file changed, 47 insertions(+), 47 deletions(-) diff --git a/Library/Homebrew/sorbet/rbi/gems/activesupport@6.1.7.2.rbi b/Library/Homebrew/sorbet/rbi/gems/activesupport@6.1.7.2.rbi index 3515dbbea3..5ba4ae60d8 100644 --- a/Library/Homebrew/sorbet/rbi/gems/activesupport@6.1.7.2.rbi +++ b/Library/Homebrew/sorbet/rbi/gems/activesupport@6.1.7.2.rbi @@ -3415,55 +3415,55 @@ class Regexp::Token < ::Struct end end -class String - include ::Comparable - include ::JSON::Ext::Generator::GeneratorMethods::String - include ::MessagePack::CoreExt - extend ::JSON::Ext::Generator::GeneratorMethods::String::Extend +# class String +# include ::Comparable +# include ::JSON::Ext::Generator::GeneratorMethods::String +# include ::MessagePack::CoreExt +# extend ::JSON::Ext::Generator::GeneratorMethods::String::Extend - def acts_like_string?; end - def as_json(options = T.unsafe(nil)); end - def at(position); end - def blank?; end - def camelcase(first_letter = T.unsafe(nil)); end - def camelize(first_letter = T.unsafe(nil)); end - def classify; end - def constantize; end - def dasherize; end - def deconstantize; end - def demodulize; end - def first(limit = T.unsafe(nil)); end - def foreign_key(separate_class_name_and_id_with_underscore = T.unsafe(nil)); end - def from(position); end - def html_safe; end - def humanize(capitalize: T.unsafe(nil), keep_id_suffix: T.unsafe(nil)); end - def is_utf8?; end - def last(limit = T.unsafe(nil)); end - def mb_chars; end - def parameterize(separator: T.unsafe(nil), preserve_case: T.unsafe(nil), locale: T.unsafe(nil)); end - def pluralize(count = T.unsafe(nil), locale = T.unsafe(nil)); end - def remove(*patterns); end - def remove!(*patterns); end - def safe_constantize; end - def singularize(locale = T.unsafe(nil)); end - def squish; end - def squish!; end - def tableize; end - def titlecase(keep_id_suffix: T.unsafe(nil)); end - def titleize(keep_id_suffix: T.unsafe(nil)); end - def to(position); end - def to_date; end - def to_datetime; end - def to_time(form = T.unsafe(nil)); end - def truncate(truncate_at, options = T.unsafe(nil)); end - def truncate_bytes(truncate_at, omission: T.unsafe(nil)); end - def truncate_words(words_count, options = T.unsafe(nil)); end - def underscore; end - def upcase_first; end -end +# def acts_like_string?; end +# def as_json(options = T.unsafe(nil)); end +# def at(position); end +# def blank?; end +# def camelcase(first_letter = T.unsafe(nil)); end +# def camelize(first_letter = T.unsafe(nil)); end +# def classify; end +# def constantize; end +# def dasherize; end +# def deconstantize; end +# def demodulize; end +# def first(limit = T.unsafe(nil)); end +# def foreign_key(separate_class_name_and_id_with_underscore = T.unsafe(nil)); end +# def from(position); end +# def html_safe; end +# def humanize(capitalize: T.unsafe(nil), keep_id_suffix: T.unsafe(nil)); end +# def is_utf8?; end +# def last(limit = T.unsafe(nil)); end +# def mb_chars; end +# def parameterize(separator: T.unsafe(nil), preserve_case: T.unsafe(nil), locale: T.unsafe(nil)); end +# def pluralize(count = T.unsafe(nil), locale = T.unsafe(nil)); end +# def remove(*patterns); end +# def remove!(*patterns); end +# def safe_constantize; end +# def singularize(locale = T.unsafe(nil)); end +# def squish; end +# def squish!; end +# def tableize; end +# def titlecase(keep_id_suffix: T.unsafe(nil)); end +# def titleize(keep_id_suffix: T.unsafe(nil)); end +# def to(position); end +# def to_date; end +# def to_datetime; end +# def to_time(form = T.unsafe(nil)); end +# def truncate(truncate_at, options = T.unsafe(nil)); end +# def truncate_bytes(truncate_at, omission: T.unsafe(nil)); end +# def truncate_words(words_count, options = T.unsafe(nil)); end +# def underscore; end +# def upcase_first; end +# end -String::BLANK_RE = T.let(T.unsafe(nil), Regexp) -String::ENCODED_BLANKS = T.let(T.unsafe(nil), Concurrent::Map) +# String::BLANK_RE = T.let(T.unsafe(nil), Regexp) +# String::ENCODED_BLANKS = T.let(T.unsafe(nil), Concurrent::Map) class Struct include ::Enumerable