From 58848e402a66b9ca496346359db6525f01809371 Mon Sep 17 00:00:00 2001 From: vidusheeamoli Date: Thu, 30 Jul 2020 22:25:37 +0530 Subject: [PATCH 1/5] sorbet/files.yaml: add new files --- Library/Homebrew/sorbet/files.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Library/Homebrew/sorbet/files.yaml b/Library/Homebrew/sorbet/files.yaml index e82f5924e0..fcaf0f6018 100644 --- a/Library/Homebrew/sorbet/files.yaml +++ b/Library/Homebrew/sorbet/files.yaml @@ -163,6 +163,7 @@ false: - ./dev-cmd/tests.rb - ./dev-cmd/unpack.rb - ./dev-cmd/update-license-data.rb + - ./dev-cmd/update-python-resources.rb - ./dev-cmd/update-test.rb - ./dev-cmd/vendor-gems.rb - ./development_tools.rb @@ -268,6 +269,7 @@ false: - ./test/ENV_spec.rb - ./test/bintray_spec.rb - ./test/bottle_publisher_spec.rb + - ./test/cask_dependent_spec.rb - ./test/cask/artifact/alt_target_spec.rb - ./test/cask/artifact/app_spec.rb - ./test/cask/artifact/binary_spec.rb @@ -823,11 +825,13 @@ false: - ./test/version_spec.rb - ./unpack_strategy/uncompressed.rb - ./utils/gems.rb + - ./utils/pypi.rb - ./version.rb true: - ./build_options.rb - ./cache_store.rb + - ./cask_dependent.rb - ./cask/cache.rb - ./cask/denylist.rb - ./cask/macos.rb From 5da00dcd771a7270aada8b5c27953ada6850ebbd Mon Sep 17 00:00:00 2001 From: vidusheeamoli Date: Sat, 1 Aug 2020 00:32:05 +0530 Subject: [PATCH 2/5] srb/tapioca: update rbi of recently bumped gems --- .../sorbet/rbi/gems/codecov@0.2.2.rbi | 6 --- .../sorbet/rbi/gems/codecov@0.2.3.rbi | 7 +++ .../sorbet/rbi/gems/commander@4.5.2.rbi | 7 +++ .../sorbet/rbi/gems/highline@2.0.3.rbi | 7 +++ .../sorbet/rbi/gems/parlour@4.0.0.rbi | 7 +++ ...{patchelf@1.1.1.rbi => patchelf@1.2.0.rbi} | 43 +++++++++++-------- 6 files changed, 52 insertions(+), 25 deletions(-) delete mode 100644 Library/Homebrew/sorbet/rbi/gems/codecov@0.2.2.rbi create mode 100644 Library/Homebrew/sorbet/rbi/gems/codecov@0.2.3.rbi create mode 100644 Library/Homebrew/sorbet/rbi/gems/commander@4.5.2.rbi create mode 100644 Library/Homebrew/sorbet/rbi/gems/highline@2.0.3.rbi create mode 100644 Library/Homebrew/sorbet/rbi/gems/parlour@4.0.0.rbi rename Library/Homebrew/sorbet/rbi/gems/{patchelf@1.1.1.rbi => patchelf@1.2.0.rbi} (68%) diff --git a/Library/Homebrew/sorbet/rbi/gems/codecov@0.2.2.rbi b/Library/Homebrew/sorbet/rbi/gems/codecov@0.2.2.rbi deleted file mode 100644 index 198c6b42fc..0000000000 --- a/Library/Homebrew/sorbet/rbi/gems/codecov@0.2.2.rbi +++ /dev/null @@ -1,6 +0,0 @@ -# This file is autogenerated. Do not edit it by hand. Regenerate it with: -# tapioca sync --exclude json - -# typed: true - - diff --git a/Library/Homebrew/sorbet/rbi/gems/codecov@0.2.3.rbi b/Library/Homebrew/sorbet/rbi/gems/codecov@0.2.3.rbi new file mode 100644 index 0000000000..5ace243e13 --- /dev/null +++ b/Library/Homebrew/sorbet/rbi/gems/codecov@0.2.3.rbi @@ -0,0 +1,7 @@ +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `codecov` gem. +# Please instead update this file by running `tapioca sync --exclude json`. + +# typed: true + + diff --git a/Library/Homebrew/sorbet/rbi/gems/commander@4.5.2.rbi b/Library/Homebrew/sorbet/rbi/gems/commander@4.5.2.rbi new file mode 100644 index 0000000000..bfbd3dd171 --- /dev/null +++ b/Library/Homebrew/sorbet/rbi/gems/commander@4.5.2.rbi @@ -0,0 +1,7 @@ +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `commander` gem. +# Please instead update this file by running `tapioca sync --exclude json`. + +# typed: true + + diff --git a/Library/Homebrew/sorbet/rbi/gems/highline@2.0.3.rbi b/Library/Homebrew/sorbet/rbi/gems/highline@2.0.3.rbi new file mode 100644 index 0000000000..b6c0872fc5 --- /dev/null +++ b/Library/Homebrew/sorbet/rbi/gems/highline@2.0.3.rbi @@ -0,0 +1,7 @@ +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `highline` gem. +# Please instead update this file by running `tapioca sync --exclude json`. + +# typed: true + + diff --git a/Library/Homebrew/sorbet/rbi/gems/parlour@4.0.0.rbi b/Library/Homebrew/sorbet/rbi/gems/parlour@4.0.0.rbi new file mode 100644 index 0000000000..11091f1f37 --- /dev/null +++ b/Library/Homebrew/sorbet/rbi/gems/parlour@4.0.0.rbi @@ -0,0 +1,7 @@ +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `parlour` gem. +# Please instead update this file by running `tapioca sync --exclude json`. + +# typed: true + + diff --git a/Library/Homebrew/sorbet/rbi/gems/patchelf@1.1.1.rbi b/Library/Homebrew/sorbet/rbi/gems/patchelf@1.2.0.rbi similarity index 68% rename from Library/Homebrew/sorbet/rbi/gems/patchelf@1.1.1.rbi rename to Library/Homebrew/sorbet/rbi/gems/patchelf@1.2.0.rbi index be883d2256..1ca16ebbef 100644 --- a/Library/Homebrew/sorbet/rbi/gems/patchelf@1.1.1.rbi +++ b/Library/Homebrew/sorbet/rbi/gems/patchelf@1.2.0.rbi @@ -1,5 +1,6 @@ -# This file is autogenerated. Do not edit it by hand. Regenerate it with: -# tapioca sync --exclude json +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `patchelf` gem. +# Please instead update this file by running `tapioca sync --exclude json`. # typed: true @@ -10,15 +11,17 @@ module PatchELF::Helper private - def aligndown(val, align = _); end - def alignup(val, align = _); end + def aligndown(val, align = T.unsafe(nil)); end + def alignup(val, align = T.unsafe(nil)); end def color_enabled?; end def colorize(str, type); end - def self.aligndown(val, align = _); end - def self.alignup(val, align = _); end - def self.color_enabled?; end - def self.colorize(str, type); end + class << self + def aligndown(val, align = T.unsafe(nil)); end + def alignup(val, align = T.unsafe(nil)); end + def color_enabled?; end + def colorize(str, type); end + end end PatchELF::Helper::COLOR_CODE = T.let(T.unsafe(nil), Hash) @@ -33,9 +36,11 @@ module PatchELF::Logger def info(msg); end def warn(msg); end - def self.error(msg); end - def self.info(msg); end - def self.warn(msg); end + class << self + def error(msg); end + def info(msg); end + def warn(msg); end + end end class PatchELF::MM @@ -51,10 +56,10 @@ class PatchELF::MM private def abnormal_elf(msg); end - def extend_backward(seg, size = _); end - def extend_forward(seg, size = _); end + def extend_backward(seg, size = T.unsafe(nil)); end + def extend_forward(seg, size = T.unsafe(nil)); end def fgap_method; end - def find_gap(check_sz: _); end + def find_gap(check_sz: T.unsafe(nil)); end def invoke_callbacks(seg, start); end def load_segments; end def mgap_method; end @@ -73,7 +78,7 @@ class PatchELF::PatchError < ::ELFTools::ELFError end class PatchELF::Patcher - def initialize(filename, logging: _); end + def initialize(filename, on_error: T.unsafe(nil), logging: T.unsafe(nil)); end def add_needed(need); end def elf; end @@ -87,7 +92,7 @@ class PatchELF::Patcher def rpath=(rpath); end def runpath; end def runpath=(runpath); end - def save(out_file = _); end + def save(out_file = T.unsafe(nil)); end def soname; end def soname=(name); end def use_rpath!; end @@ -97,9 +102,9 @@ class PatchELF::Patcher def dirty?; end def dynamic_or_log; end def interpreter_; end - def log_or_raise(msg, exception = _); end + def log_or_raise(msg, exception = T.unsafe(nil)); end def needed_; end - def runpath_(rpath_sym = _); end + def runpath_(rpath_sym = T.unsafe(nil)); end def soname_; end def tag_name_or_log(type, log_msg); end end @@ -122,7 +127,7 @@ class PatchELF::Saver def patch_interpreter; end def patch_needed; end def patch_out(out_file); end - def patch_runpath(sym = _); end + def patch_runpath(sym = T.unsafe(nil)); end def patch_soname; end def reg_str_table(str, &block); end def section_header(name); end From e8dbbc2975d6a305aa0d3017b5911d217266d3eb Mon Sep 17 00:00:00 2001 From: vidusheeamoli Date: Sat, 1 Aug 2020 00:33:27 +0530 Subject: [PATCH 3/5] sorbet: update hidden definitions --- .../sorbet/rbi/hidden-definitions/hidden.rbi | 193 ++++++++++++++++-- 1 file changed, 181 insertions(+), 12 deletions(-) diff --git a/Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi b/Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi index 555e26f550..010474a7cb 100644 --- a/Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi +++ b/Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi @@ -13549,6 +13549,94 @@ module ParallelTests WINDOWS = ::T.let(nil, ::T.untyped) end +class Parlour::ConflictResolver + extend ::T::Private::Methods::MethodHooks + extend ::T::Private::Methods::SingletonMethodHooks +end + +module Parlour::Debugging::Tree + extend ::T::Private::Methods::MethodHooks + extend ::T::Private::Methods::SingletonMethodHooks +end + +module Parlour::Debugging + extend ::T::Private::Methods::MethodHooks + extend ::T::Private::Methods::SingletonMethodHooks +end + +class Parlour::DetachedRbiGenerator + def detached!(*args, &blk); end +end + +class Parlour::DetachedRbiGenerator +end + +class Parlour::ParseError + extend ::T::Private::Methods::MethodHooks + extend ::T::Private::Methods::SingletonMethodHooks +end + +class Parlour::Plugin + extend ::T::Private::Abstract::Hooks + extend ::T::InterfaceWrapper::Helpers + extend ::T::Private::Methods::MethodHooks + extend ::T::Private::Methods::SingletonMethodHooks +end + +class Parlour::RbiGenerator::Namespace + def create_attr(*args, &blk); end +end + +class Parlour::RbiGenerator::Options + extend ::T::Private::Methods::MethodHooks + extend ::T::Private::Methods::SingletonMethodHooks +end + +class Parlour::RbiGenerator::Parameter + extend ::T::Private::Methods::MethodHooks + extend ::T::Private::Methods::SingletonMethodHooks +end + +class Parlour::RbiGenerator::RbiObject + def add_comments(*args, &blk); end +end + +class Parlour::RbiGenerator::RbiObject + extend ::T::Private::Abstract::Hooks + extend ::T::InterfaceWrapper::Helpers + extend ::T::Private::Methods::MethodHooks + extend ::T::Private::Methods::SingletonMethodHooks +end + +class Parlour::RbiGenerator::StructProp + extend ::T::Private::Methods::MethodHooks + extend ::T::Private::Methods::SingletonMethodHooks +end + +class Parlour::RbiGenerator + extend ::T::Private::Methods::MethodHooks + extend ::T::Private::Methods::SingletonMethodHooks +end + +module Parlour::TypeLoader + extend ::T::Private::Methods::MethodHooks + extend ::T::Private::Methods::SingletonMethodHooks +end + +class Parlour::TypeParser::IntermediateSig + def self.inherited(s); end +end + +class Parlour::TypeParser::NodePath + extend ::T::Private::Methods::MethodHooks + extend ::T::Private::Methods::SingletonMethodHooks +end + +class Parlour::TypeParser + extend ::T::Private::Methods::MethodHooks + extend ::T::Private::Methods::SingletonMethodHooks +end + ParseError = Racc::ParseError Parser::CurrentRuby = Parser::Ruby26 @@ -18883,14 +18971,6 @@ end module RSpec::Its end -class RSpec::Mocks::AnyInstance::Recorder - include ::T::CompatibilityPatches::RSpecCompatibility::RecorderExtensions -end - -class RSpec::Mocks::MethodDouble - include ::T::CompatibilityPatches::RSpecCompatibility::MethodDoubleExtensions -end - class RSpec::Retry def attempts(); end @@ -21598,7 +21678,6 @@ module Stdenv def O3(); end def Os(); end - end class String @@ -21895,7 +21974,6 @@ module Superenv def O3(); end def Os(); end - end class SynchronizedDelegator @@ -22566,12 +22644,16 @@ end class Tapioca::Cli include ::Thor::Actions + def dsl(*constants); end + def generate(*gems); end def generator(); end def init(); end + def require(); end + def sync(); end def todo(); end @@ -22583,6 +22665,64 @@ end module Tapioca::Compilers end +module Tapioca::Compilers::Dsl +end + +class Tapioca::Compilers::Dsl::Base + def decorate(*args, &blk); end + + def gather_constants(*args, &blk); end + + def handles?(*args, &blk); end + + def initialize(*args, &blk); end + + def processable_constants(*args, &blk); end + SPECIAL_METHOD_NAMES = ::T.let(nil, ::T.untyped) +end + +class Tapioca::Compilers::Dsl::Base + extend ::T::Sig + extend ::T::Helpers + extend ::T::Private::Abstract::Hooks + extend ::T::InterfaceWrapper::Helpers + extend ::T::Private::Methods::MethodHooks + extend ::T::Private::Methods::SingletonMethodHooks +end + +module Tapioca::Compilers::Dsl +end + +class Tapioca::Compilers::DslCompiler + def error_handler(*args, &blk); end + + def generators(*args, &blk); end + + def initialize(*args, &blk); end + + def requested_constants(*args, &blk); end + + def run(*args, &blk); end +end + +class Tapioca::Compilers::DslCompiler + extend ::T::Sig + extend ::T::Private::Methods::MethodHooks + extend ::T::Private::Methods::SingletonMethodHooks +end + +class Tapioca::Compilers::RequiresCompiler + def compile(*args, &blk); end + + def initialize(*args, &blk); end +end + +class Tapioca::Compilers::RequiresCompiler + extend ::T::Sig + extend ::T::Private::Methods::MethodHooks + extend ::T::Private::Methods::SingletonMethodHooks +end + module Tapioca::Compilers::Sorbet SORBET = ::T.let(nil, ::T.untyped) end @@ -22607,6 +22747,7 @@ class Tapioca::Compilers::SymbolTable::SymbolGenerator def initialize(*args, &blk); end IGNORED_SYMBOLS = ::T.let(nil, ::T.untyped) SPECIAL_METHOD_NAMES = ::T.let(nil, ::T.untyped) + TYPE_PARAMETER_MATCHER = ::T.let(nil, ::T.untyped) end class Tapioca::Compilers::SymbolTable::SymbolGenerator @@ -22663,6 +22804,8 @@ class Tapioca::Config def generate_command(); end + def generators(); end + def initialize(*args, &blk); end def outdir(); end @@ -22676,13 +22819,16 @@ class Tapioca::Config def todos_path(); end def typed_overrides(); end - CONFIG_FILE_PATH = ::T.let(nil, ::T.untyped) - DEFAULT_OUTDIR = ::T.let(nil, ::T.untyped) + DEFAULT_DSLDIR = ::T.let(nil, ::T.untyped) + DEFAULT_GEMDIR = ::T.let(nil, ::T.untyped) DEFAULT_OVERRIDES = ::T.let(nil, ::T.untyped) DEFAULT_POSTREQUIRE = ::T.let(nil, ::T.untyped) DEFAULT_RBIDIR = ::T.let(nil, ::T.untyped) DEFAULT_TODOSPATH = ::T.let(nil, ::T.untyped) SORBET_CONFIG = ::T.let(nil, ::T.untyped) + SORBET_PATH = ::T.let(nil, ::T.untyped) + TAPIOCA_CONFIG = ::T.let(nil, ::T.untyped) + TAPIOCA_PATH = ::T.let(nil, ::T.untyped) end class Tapioca::Config @@ -22757,8 +22903,12 @@ class Tapioca::Gemfile end class Tapioca::Generator + def build_dsl(*args, &blk); end + def build_gem_rbis(*args, &blk); end + def build_requires(*args, &blk); end + def build_todos(*args, &blk); end def config(*args, &blk); end @@ -22778,6 +22928,8 @@ class Tapioca::Loader def initialize(*args, &blk); end def load_bundle(*args, &blk); end + + def load_rails(*args, &blk); end end class Tapioca::Loader @@ -22786,6 +22938,23 @@ class Tapioca::Loader extend ::T::Private::Methods::SingletonMethodHooks end +class Tapioca::SorbetConfig + def ignore(); end + + def initialize(*args, &blk); end + + def paths(*args, &blk); end +end + +class Tapioca::SorbetConfig + extend ::T::Sig + extend ::T::Private::Methods::MethodHooks + extend ::T::Private::Methods::SingletonMethodHooks + def self.parse_file(*args, &blk); end + + def self.parse_string(*args, &blk); end +end + module Tapioca end From 9ddf587c3278069eb5f60adbbae9c246cc21d33c Mon Sep 17 00:00:00 2001 From: vidusheeamoli Date: Sat, 1 Aug 2020 00:39:35 +0530 Subject: [PATCH 4/5] sorbet/cli.rbi: add method --- Library/Homebrew/sorbet/rbi/cli.rbi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Library/Homebrew/sorbet/rbi/cli.rbi b/Library/Homebrew/sorbet/rbi/cli.rbi index c9ec5b3cb0..c95e13e3c9 100644 --- a/Library/Homebrew/sorbet/rbi/cli.rbi +++ b/Library/Homebrew/sorbet/rbi/cli.rbi @@ -15,5 +15,7 @@ module Homebrew::CLI def build_from_source?; end def named_args; end + + def force_bottle?; end end end From 17d0a46afd931a565eb38087ad27866e6f01abbd Mon Sep 17 00:00:00 2001 From: vidusheeamoli Date: Sat, 1 Aug 2020 00:53:51 +0530 Subject: [PATCH 5/5] .gitignore: add sorbet and tapioca dependencies --- .gitignore | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitignore b/.gitignore index f2a0f78cf0..8026b79241 100644 --- a/.gitignore +++ b/.gitignore @@ -86,11 +86,13 @@ **/vendor/bundle/ruby/*/gems/byebug-*/ **/vendor/bundle/ruby/*/gems/coderay-*/ **/vendor/bundle/ruby/*/gems/colorize-*/ +**/vendor/bundle/ruby/*/gems/commander-*/ **/vendor/bundle/ruby/*/gems/connection_pool-*/ **/vendor/bundle/ruby/*/gems/codecov-*/ **/vendor/bundle/ruby/*/gems/diff-lcs-*/ **/vendor/bundle/ruby/*/gems/docile-*/ **/vendor/bundle/ruby/*/gems/domain_name-*/ +**/vendor/bundle/ruby/*/gems/highline-*/ **/vendor/bundle/ruby/*/gems/http-cookie-*/ **/vendor/bundle/ruby/*/gems/hpricot-*/ **/vendor/bundle/ruby/*/gems/jaro_winkler-*/ @@ -107,6 +109,7 @@ **/vendor/bundle/ruby/*/gems/ntlm-http-*/ **/vendor/bundle/ruby/*/gems/parallel-*/ **/vendor/bundle/ruby/*/gems/parallel_tests-*/ +**/vendor/bundle/ruby/*/gems/parlour-*/ **/vendor/bundle/ruby/*/gems/parser-*/ **/vendor/bundle/ruby/*/gems/powerpack-*/ **/vendor/bundle/ruby/*/gems/psych-*/