diff --git a/Gemfile b/Gemfile index c08c581..3e19ebc 100644 --- a/Gemfile +++ b/Gemfile @@ -15,7 +15,7 @@ end group :development do gem "sorbet", "~> 0.5.10736" - gem "tapioca", require: false + gem "tapioca", ">= 0.16.0", require: false gem "rubocop", require: false gem "rubocop-minitest", require: false diff --git a/Gemfile.lock b/Gemfile.lock index d00c66e..1689d0f 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -77,8 +77,8 @@ GEM mustermann (>= 1.0.0) mutex_m (0.2.0) netrc (0.11.0) - parallel (1.25.1) - parser (3.3.4.0) + parallel (1.26.1) + parser (3.3.4.2) ast (~> 2.4.1) racc prism (0.30.0) @@ -131,15 +131,15 @@ GEM simplecov_json_formatter (~> 0.1) simplecov-html (0.12.3) simplecov_json_formatter (0.1.4) - sorbet (0.5.11506) - sorbet-static (= 0.5.11506) - sorbet-runtime (0.5.11506) - sorbet-static (0.5.11506-aarch64-linux) - sorbet-static (0.5.11506-universal-darwin) - sorbet-static (0.5.11506-x86_64-linux) - sorbet-static-and-runtime (0.5.11506) - sorbet (= 0.5.11506) - sorbet-runtime (= 0.5.11506) + sorbet (0.5.11514) + sorbet-static (= 0.5.11514) + sorbet-runtime (0.5.11514) + sorbet-static (0.5.11514-aarch64-linux) + sorbet-static (0.5.11514-universal-darwin) + sorbet-static (0.5.11514-x86_64-linux) + sorbet-static-and-runtime (0.5.11514) + sorbet (= 0.5.11514) + sorbet-runtime (= 0.5.11514) spoom (1.4.2) erubi (>= 1.10.0) prism (>= 0.28.0) @@ -147,11 +147,11 @@ GEM thor (>= 0.19.2) stringio (3.1.1) strscan (3.1.0) - tapioca (0.15.1) + tapioca (0.16.0) bundler (>= 2.2.25) netrc (>= 0.11.0) parallel (>= 1.21.0) - rbi (>= 0.1.4, < 0.2) + rbi (>= 0.1.14, < 0.2) sorbet-static-and-runtime (>= 0.5.11087) spoom (>= 1.2.0) thor (>= 1.2.0) @@ -187,7 +187,7 @@ DEPENDENCIES rubocop-sorbet simplecov sorbet (~> 0.5.10736) - tapioca + tapioca (>= 0.16.0) BUNDLED WITH 2.5.17 diff --git a/lib/tapioca/dsl/compilers/grape_endpoints.rb b/lib/tapioca/dsl/compilers/grape_endpoints.rb index 7ea1526..7ac6a5d 100644 --- a/lib/tapioca/dsl/compilers/grape_endpoints.rb +++ b/lib/tapioca/dsl/compilers/grape_endpoints.rb @@ -174,31 +174,24 @@ def create_callbacks_methods sig { void } def create_request_response_methods - sigs = [ - request_response_methods_module.create_sig( - parameters: { - args: "Symbol", - block: "T.nilable(T.proc.bind(#{EndpointClassName}).params(e: Exception).void)", - }, - return_type: "void", - ), - request_response_methods_module.create_sig( - type_parameters: ["E"], - parameters: { - args: "T::Class[T.all(::Exception, T.type_parameter(:E))]", - block: "T.nilable(T.proc.bind(#{EndpointClassName}).params(e: T.type_parameter(:E)).void)", - }, - return_type: "void", - ), - ] - request_response_methods_module.create_method_with_sigs( - "rescue_from", - sigs: sigs, - parameters: [ - RBI::RestParam.new("args"), - RBI::BlockParam.new("block"), - ], - ) + request_response_methods_module.create_method("rescue_from") do |method| + method.add_rest_param("args") + method.add_block_param("block") + + method.add_sig do |sig| + sig.add_param("args", "Symbol") + sig.add_param("block", "T.nilable(T.proc.bind(#{EndpointClassName}).params(e: Exception).void)") + sig.return_type = "void" + end + method.add_sig(type_params: ["E"]) do |sig| + sig.add_param("args", "T::Class[T.all(::Exception, T.type_parameter(:E))]") + sig.add_param( + "block", + "T.nilable(T.proc.bind(#{EndpointClassName}).params(e: T.type_parameter(:E)).void)", + ) + sig.return_type = "void" + end + end end sig { void } diff --git a/sorbet/rbi/gems/parallel@1.25.1.rbi b/sorbet/rbi/gems/parallel@1.26.1.rbi similarity index 100% rename from sorbet/rbi/gems/parallel@1.25.1.rbi rename to sorbet/rbi/gems/parallel@1.26.1.rbi diff --git a/sorbet/rbi/gems/parser@3.3.4.0.rbi b/sorbet/rbi/gems/parser@3.3.4.2.rbi similarity index 100% rename from sorbet/rbi/gems/parser@3.3.4.0.rbi rename to sorbet/rbi/gems/parser@3.3.4.2.rbi diff --git a/sorbet/rbi/gems/rbi@0.1.14.rbi b/sorbet/rbi/gems/rbi@0.1.14.rbi index d397fcd..8f0c3c2 100644 --- a/sorbet/rbi/gems/rbi@0.1.14.rbi +++ b/sorbet/rbi/gems/rbi@0.1.14.rbi @@ -2099,7 +2099,7 @@ class RBI::Rewriters::Merge::Conflict < ::T::Struct def to_s; end class << self - # source://sorbet-runtime/0.5.11506/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11514/lib/types/struct.rb#13 def inherited(s); end end end @@ -2316,7 +2316,7 @@ class RBI::Rewriters::RemoveKnownDefinitions::Operation < ::T::Struct def to_s; end class << self - # source://sorbet-runtime/0.5.11506/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11514/lib/types/struct.rb#13 def inherited(s); end end end @@ -2878,7 +2878,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 - # source://tapioca/0.15.1/lib/tapioca/rbi_ext/model.rb#38 + # source://tapioca/0.16.0/lib/tapioca/rbi_ext/model.rb#38 sig do params( name: ::String, @@ -2888,67 +2888,45 @@ class RBI::Tree < ::RBI::NodeWithComments end def create_class(name, superclass_name: T.unsafe(nil), &block); end - # source://tapioca/0.15.1/lib/tapioca/rbi_ext/model.rb#45 + # source://tapioca/0.16.0/lib/tapioca/rbi_ext/model.rb#45 sig { params(name: ::String, value: ::String).void } def create_constant(name, value:); end - # source://tapioca/0.15.1/lib/tapioca/rbi_ext/model.rb#55 + # source://tapioca/0.16.0/lib/tapioca/rbi_ext/model.rb#55 sig { params(name: ::String).void } def create_extend(name); end - # source://tapioca/0.15.1/lib/tapioca/rbi_ext/model.rb#50 + # source://tapioca/0.16.0/lib/tapioca/rbi_ext/model.rb#50 sig { params(name: ::String).void } def create_include(name); end - # source://tapioca/0.15.1/lib/tapioca/rbi_ext/model.rb#89 + # source://tapioca/0.16.0/lib/tapioca/rbi_ext/model.rb#90 sig do params( name: ::String, parameters: T::Array[::RBI::TypedParam], - return_type: ::String, - class_method: T::Boolean, - visibility: ::RBI::Visibility, - comments: T::Array[::RBI::Comment] - ).void - end - def create_method(name, parameters: T.unsafe(nil), return_type: T.unsafe(nil), class_method: T.unsafe(nil), visibility: T.unsafe(nil), comments: T.unsafe(nil)); end - - # source://tapioca/0.15.1/lib/tapioca/rbi_ext/model.rb#113 - sig do - params( - name: ::String, - sigs: T::Array[::RBI::Sig], - parameters: T::Array[::RBI::Param], + return_type: T.nilable(::String), class_method: T::Boolean, visibility: ::RBI::Visibility, - comments: T::Array[::RBI::Comment] + comments: T::Array[::RBI::Comment], + block: T.nilable(T.proc.params(node: ::RBI::Method).void) ).void end - def create_method_with_sigs(name, sigs:, parameters: T.unsafe(nil), class_method: T.unsafe(nil), visibility: T.unsafe(nil), comments: T.unsafe(nil)); end + def create_method(name, parameters: T.unsafe(nil), return_type: T.unsafe(nil), class_method: T.unsafe(nil), visibility: T.unsafe(nil), comments: T.unsafe(nil), &block); end - # source://tapioca/0.15.1/lib/tapioca/rbi_ext/model.rb#60 + # source://tapioca/0.16.0/lib/tapioca/rbi_ext/model.rb#60 sig { params(name: ::String).void } def create_mixes_in_class_methods(name); end - # source://tapioca/0.15.1/lib/tapioca/rbi_ext/model.rb#25 + # source://tapioca/0.16.0/lib/tapioca/rbi_ext/model.rb#25 sig { params(name: ::String, block: T.nilable(T.proc.params(scope: ::RBI::Scope).void)).returns(::RBI::Scope) } def create_module(name, &block); end - # source://tapioca/0.15.1/lib/tapioca/rbi_ext/model.rb#9 + # source://tapioca/0.16.0/lib/tapioca/rbi_ext/model.rb#9 sig { params(constant: ::Module, block: T.nilable(T.proc.params(scope: ::RBI::Scope).void)).returns(::RBI::Scope) } def create_path(constant, &block); end - # source://tapioca/0.15.1/lib/tapioca/rbi_ext/model.rb#135 - sig do - params( - parameters: T::Hash[T.any(::String, ::Symbol), ::String], - type_parameters: T::Array[::String], - return_type: ::String - ).returns(::RBI::Sig) - end - def create_sig(parameters:, type_parameters: T.unsafe(nil), return_type: T.unsafe(nil)); end - - # source://tapioca/0.15.1/lib/tapioca/rbi_ext/model.rb#74 + # source://tapioca/0.16.0/lib/tapioca/rbi_ext/model.rb#74 sig do params( name: ::String, @@ -3014,11 +2992,11 @@ class RBI::Tree < ::RBI::NodeWithComments private - # source://tapioca/0.15.1/lib/tapioca/rbi_ext/model.rb#150 + # source://tapioca/0.16.0/lib/tapioca/rbi_ext/model.rb#123 sig { params(node: ::RBI::Node).returns(::RBI::Node) } def create_node(node); end - # source://tapioca/0.15.1/lib/tapioca/rbi_ext/model.rb#145 + # source://tapioca/0.16.0/lib/tapioca/rbi_ext/model.rb#118 sig { returns(T::Hash[::String, ::RBI::Node]) } def nodes_cache; end end diff --git a/sorbet/rbi/gems/rubocop@1.65.1.rbi b/sorbet/rbi/gems/rubocop@1.65.1.rbi index 8c93490..8f6c375 100644 --- a/sorbet/rbi/gems/rubocop@1.65.1.rbi +++ b/sorbet/rbi/gems/rubocop@1.65.1.rbi @@ -5092,7 +5092,7 @@ class RuboCop::Cop::Corrector < ::Parser::Source::TreeRewriter # Legacy # - # source://parser/3.3.4.0/lib/parser/source/tree_rewriter.rb#252 + # source://parser/3.3.4.2/lib/parser/source/tree_rewriter.rb#252 def rewrite; end # Swaps sources at the given ranges. diff --git a/sorbet/rbi/gems/spoom@1.4.2.rbi b/sorbet/rbi/gems/spoom@1.4.2.rbi index 0ac317b..f281022 100644 --- a/sorbet/rbi/gems/spoom@1.4.2.rbi +++ b/sorbet/rbi/gems/spoom@1.4.2.rbi @@ -1004,7 +1004,7 @@ class Spoom::Coverage::D3::ColorPalette < ::T::Struct prop :strong, ::String class << self - # source://sorbet-runtime/0.5.11506/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11514/lib/types/struct.rb#13 def inherited(s); end end end @@ -1344,7 +1344,7 @@ class Spoom::Coverage::Snapshot < ::T::Struct sig { params(obj: T::Hash[::String, T.untyped]).returns(::Spoom::Coverage::Snapshot) } def from_obj(obj); end - # source://sorbet-runtime/0.5.11506/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11514/lib/types/struct.rb#13 def inherited(s); end end end @@ -1480,7 +1480,7 @@ class Spoom::Deadcode::Definition < ::T::Struct def to_json(*args); end class << self - # source://sorbet-runtime/0.5.11506/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11514/lib/types/struct.rb#13 def inherited(s); end end end @@ -2368,7 +2368,7 @@ class Spoom::Deadcode::Send < ::T::Struct def each_arg_assoc(&block); end class << self - # source://sorbet-runtime/0.5.11506/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11514/lib/types/struct.rb#13 def inherited(s); end end end @@ -2388,7 +2388,7 @@ class Spoom::ExecResult < ::T::Struct def to_s; end class << self - # source://sorbet-runtime/0.5.11506/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11514/lib/types/struct.rb#13 def inherited(s); end end end @@ -2586,7 +2586,7 @@ class Spoom::FileTree::Node < ::T::Struct def path; end class << self - # source://sorbet-runtime/0.5.11506/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11514/lib/types/struct.rb#13 def inherited(s); end end end @@ -2652,7 +2652,7 @@ class Spoom::Git::Commit < ::T::Struct def timestamp; end class << self - # source://sorbet-runtime/0.5.11506/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11514/lib/types/struct.rb#13 def inherited(s); end # Parse a line formatted as `%h %at` into a `Commit` @@ -2764,7 +2764,7 @@ class Spoom::LSP::Diagnostic < ::T::Struct sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Diagnostic) } def from_json(json); end - # source://sorbet-runtime/0.5.11506/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11514/lib/types/struct.rb#13 def inherited(s); end end end @@ -2797,7 +2797,7 @@ class Spoom::LSP::DocumentSymbol < ::T::Struct sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::DocumentSymbol) } def from_json(json); end - # source://sorbet-runtime/0.5.11506/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11514/lib/types/struct.rb#13 def inherited(s); end end end @@ -2855,7 +2855,7 @@ class Spoom::LSP::Hover < ::T::Struct sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Hover) } def from_json(json); end - # source://sorbet-runtime/0.5.11506/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11514/lib/types/struct.rb#13 def inherited(s); end end end @@ -2880,7 +2880,7 @@ class Spoom::LSP::Location < ::T::Struct sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Location) } def from_json(json); end - # source://sorbet-runtime/0.5.11506/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11514/lib/types/struct.rb#13 def inherited(s); end end end @@ -2943,7 +2943,7 @@ class Spoom::LSP::Position < ::T::Struct sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Position) } def from_json(json); end - # source://sorbet-runtime/0.5.11506/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11514/lib/types/struct.rb#13 def inherited(s); end end end @@ -2981,7 +2981,7 @@ class Spoom::LSP::Range < ::T::Struct sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::Range) } def from_json(json); end - # source://sorbet-runtime/0.5.11506/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11514/lib/types/struct.rb#13 def inherited(s); end end end @@ -3047,7 +3047,7 @@ class Spoom::LSP::SignatureHelp < ::T::Struct sig { params(json: T::Hash[T.untyped, T.untyped]).returns(::Spoom::LSP::SignatureHelp) } def from_json(json); end - # source://sorbet-runtime/0.5.11506/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11514/lib/types/struct.rb#13 def inherited(s); end end end @@ -3473,7 +3473,7 @@ class Spoom::Model::Reference < ::T::Struct sig { params(name: ::String, location: ::Spoom::Location).returns(::Spoom::Model::Reference) } def constant(name, location); end - # source://sorbet-runtime/0.5.11506/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11514/lib/types/struct.rb#13 def inherited(s); end # source://spoom//lib/spoom/model/reference.rb#29 diff --git a/sorbet/rbi/gems/tapioca@0.15.1.rbi b/sorbet/rbi/gems/tapioca@0.16.0.rbi similarity index 98% rename from sorbet/rbi/gems/tapioca@0.15.1.rbi rename to sorbet/rbi/gems/tapioca@0.16.0.rbi index 25572e4..2e3d88a 100644 --- a/sorbet/rbi/gems/tapioca@0.15.1.rbi +++ b/sorbet/rbi/gems/tapioca@0.16.0.rbi @@ -99,31 +99,19 @@ class RBI::Tree < ::RBI::NodeWithComments sig { params(name: ::String).void } def create_include(name); end - # source://tapioca//lib/tapioca/rbi_ext/model.rb#89 + # source://tapioca//lib/tapioca/rbi_ext/model.rb#90 sig do params( name: ::String, parameters: T::Array[::RBI::TypedParam], - return_type: ::String, + return_type: T.nilable(::String), class_method: T::Boolean, visibility: ::RBI::Visibility, - comments: T::Array[::RBI::Comment] - ).void - end - def create_method(name, parameters: T.unsafe(nil), return_type: T.unsafe(nil), class_method: T.unsafe(nil), visibility: T.unsafe(nil), comments: T.unsafe(nil)); end - - # source://tapioca//lib/tapioca/rbi_ext/model.rb#113 - sig do - params( - name: ::String, - sigs: T::Array[::RBI::Sig], - parameters: T::Array[::RBI::Param], - class_method: T::Boolean, - visibility: ::RBI::Visibility, - comments: T::Array[::RBI::Comment] + comments: T::Array[::RBI::Comment], + block: T.nilable(T.proc.params(node: ::RBI::Method).void) ).void end - def create_method_with_sigs(name, sigs:, parameters: T.unsafe(nil), class_method: T.unsafe(nil), visibility: T.unsafe(nil), comments: T.unsafe(nil)); end + def create_method(name, parameters: T.unsafe(nil), return_type: T.unsafe(nil), class_method: T.unsafe(nil), visibility: T.unsafe(nil), comments: T.unsafe(nil), &block); end # source://tapioca//lib/tapioca/rbi_ext/model.rb#60 sig { params(name: ::String).void } @@ -137,16 +125,6 @@ class RBI::Tree < ::RBI::NodeWithComments sig { params(constant: ::Module, block: T.nilable(T.proc.params(scope: ::RBI::Scope).void)).returns(::RBI::Scope) } def create_path(constant, &block); end - # source://tapioca//lib/tapioca/rbi_ext/model.rb#135 - sig do - params( - parameters: T::Hash[T.any(::String, ::Symbol), ::String], - type_parameters: T::Array[::String], - return_type: ::String - ).returns(::RBI::Sig) - end - def create_sig(parameters:, type_parameters: T.unsafe(nil), return_type: T.unsafe(nil)); end - # source://tapioca//lib/tapioca/rbi_ext/model.rb#74 sig do params( @@ -213,22 +191,22 @@ class RBI::Tree < ::RBI::NodeWithComments private - # source://tapioca//lib/tapioca/rbi_ext/model.rb#150 + # source://tapioca//lib/tapioca/rbi_ext/model.rb#123 sig { params(node: ::RBI::Node).returns(::RBI::Node) } def create_node(node); end - # source://tapioca//lib/tapioca/rbi_ext/model.rb#145 + # source://tapioca//lib/tapioca/rbi_ext/model.rb#118 sig { returns(T::Hash[::String, ::RBI::Node]) } def nodes_cache; end end -# source://tapioca//lib/tapioca/rbi_ext/model.rb#160 +# source://tapioca//lib/tapioca/rbi_ext/model.rb#133 class RBI::TypedParam < ::T::Struct const :param, ::RBI::Param const :type, ::String class << self - # source://sorbet-runtime/0.5.11506/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11514/lib/types/struct.rb#13 def inherited(s); end end end @@ -408,7 +386,7 @@ module Tapioca end end -# source://tapioca//lib/tapioca.rb#38 +# source://tapioca//lib/tapioca.rb#39 Tapioca::BINARY_FILE = T.let(T.unsafe(nil), String) # source://tapioca//lib/tapioca/bundler_ext/auto_require_hook.rb#5 @@ -448,13 +426,13 @@ module Tapioca::BundlerExt::AutoRequireHook end end -# source://tapioca//lib/tapioca.rb#61 +# source://tapioca//lib/tapioca.rb#62 Tapioca::CENTRAL_REPO_ANNOTATIONS_DIR = T.let(T.unsafe(nil), String) -# source://tapioca//lib/tapioca.rb#60 +# source://tapioca//lib/tapioca.rb#61 Tapioca::CENTRAL_REPO_INDEX_PATH = T.let(T.unsafe(nil), String) -# source://tapioca//lib/tapioca.rb#59 +# source://tapioca//lib/tapioca.rb#60 Tapioca::CENTRAL_REPO_ROOT_URI = T.let(T.unsafe(nil), String) # source://tapioca//lib/tapioca/cli.rb#5 @@ -1151,7 +1129,7 @@ class Tapioca::ConfigHelper::ConfigError < ::T::Struct const :message_parts, T::Array[::Tapioca::ConfigHelper::ConfigErrorMessagePart] class << self - # source://sorbet-runtime/0.5.11506/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11514/lib/types/struct.rb#13 def inherited(s); end end end @@ -1162,42 +1140,42 @@ class Tapioca::ConfigHelper::ConfigErrorMessagePart < ::T::Struct const :colors, T::Array[::Symbol] class << self - # source://sorbet-runtime/0.5.11506/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11514/lib/types/struct.rb#13 def inherited(s); end end end -# source://tapioca//lib/tapioca.rb#45 +# source://tapioca//lib/tapioca.rb#46 Tapioca::DEFAULT_ANNOTATIONS_DIR = T.let(T.unsafe(nil), String) -# source://tapioca//lib/tapioca.rb#41 +# source://tapioca//lib/tapioca.rb#42 Tapioca::DEFAULT_DSL_DIR = T.let(T.unsafe(nil), String) -# source://tapioca//lib/tapioca.rb#57 +# source://tapioca//lib/tapioca.rb#58 Tapioca::DEFAULT_ENVIRONMENT = T.let(T.unsafe(nil), String) -# source://tapioca//lib/tapioca.rb#42 +# source://tapioca//lib/tapioca.rb#43 Tapioca::DEFAULT_GEM_DIR = T.let(T.unsafe(nil), String) -# source://tapioca//lib/tapioca.rb#47 +# source://tapioca//lib/tapioca.rb#48 Tapioca::DEFAULT_OVERRIDES = T.let(T.unsafe(nil), Hash) -# source://tapioca//lib/tapioca.rb#39 +# source://tapioca//lib/tapioca.rb#40 Tapioca::DEFAULT_POSTREQUIRE_FILE = T.let(T.unsafe(nil), String) -# source://tapioca//lib/tapioca.rb#40 +# source://tapioca//lib/tapioca.rb#41 Tapioca::DEFAULT_RBI_DIR = T.let(T.unsafe(nil), String) # source://tapioca//lib/tapioca/rbi_formatter.rb#31 Tapioca::DEFAULT_RBI_FORMATTER = T.let(T.unsafe(nil), Tapioca::RBIFormatter) -# source://tapioca//lib/tapioca.rb#56 +# source://tapioca//lib/tapioca.rb#57 Tapioca::DEFAULT_RBI_MAX_LINE_LENGTH = T.let(T.unsafe(nil), Integer) -# source://tapioca//lib/tapioca.rb#43 +# source://tapioca//lib/tapioca.rb#44 Tapioca::DEFAULT_SHIM_DIR = T.let(T.unsafe(nil), String) -# source://tapioca//lib/tapioca.rb#44 +# source://tapioca//lib/tapioca.rb#45 Tapioca::DEFAULT_TODO_FILE = T.let(T.unsafe(nil), String) # source://tapioca//lib/tapioca/dsl/compilers.rb#5 @@ -2203,7 +2181,7 @@ class Tapioca::GemInfo < ::T::Struct sig { params(spec: ::Bundler::LazySpecification).returns(::Tapioca::GemInfo) } def from_spec(spec); end - # source://sorbet-runtime/0.5.11506/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11514/lib/types/struct.rb#13 def inherited(s); end end end @@ -2407,7 +2385,7 @@ module Tapioca::Helpers::Test::Content def tmp_path(*args); end end -# source://tapioca//lib/tapioca/helpers/test/dsl_compiler.rb#12 +# source://tapioca//lib/tapioca/helpers/test/dsl_compiler.rb#13 module Tapioca::Helpers::Test::DslCompiler include ::Tapioca::Helpers::Test::Isolation::Forking include ::Tapioca::Helpers::Test::Isolation @@ -2416,23 +2394,23 @@ module Tapioca::Helpers::Test::DslCompiler requires_ancestor { Kernel } - # source://tapioca//lib/tapioca/helpers/test/dsl_compiler.rb#28 + # source://tapioca//lib/tapioca/helpers/test/dsl_compiler.rb#29 sig { params(compiler_classes: T.class_of(Tapioca::Dsl::Compiler)).void } def activate_other_dsl_compilers(*compiler_classes); end - # source://tapioca//lib/tapioca/helpers/test/dsl_compiler.rb#53 + # source://tapioca//lib/tapioca/helpers/test/dsl_compiler.rb#54 sig { returns(::Tapioca::Helpers::Test::DslCompiler::CompilerContext) } def context; end - # source://tapioca//lib/tapioca/helpers/test/dsl_compiler.rb#43 + # source://tapioca//lib/tapioca/helpers/test/dsl_compiler.rb#44 sig { returns(T::Array[::String]) } def gathered_constants; end - # source://tapioca//lib/tapioca/helpers/test/dsl_compiler.rb#48 + # source://tapioca//lib/tapioca/helpers/test/dsl_compiler.rb#49 sig { returns(T::Array[::String]) } def generated_errors; end - # source://tapioca//lib/tapioca/helpers/test/dsl_compiler.rb#38 + # source://tapioca//lib/tapioca/helpers/test/dsl_compiler.rb#39 sig do params( constant_name: T.any(::String, ::Symbol), @@ -2441,44 +2419,44 @@ module Tapioca::Helpers::Test::DslCompiler end def rbi_for(constant_name, compiler_options: T.unsafe(nil)); end - # source://tapioca//lib/tapioca/helpers/test/dsl_compiler.rb#23 + # source://tapioca//lib/tapioca/helpers/test/dsl_compiler.rb#24 sig { params(compiler_class: T.class_of(Tapioca::Dsl::Compiler)).void } def use_dsl_compiler(compiler_class); end end -# source://tapioca//lib/tapioca/helpers/test/dsl_compiler.rb#59 +# source://tapioca//lib/tapioca/helpers/test/dsl_compiler.rb#60 class Tapioca::Helpers::Test::DslCompiler::CompilerContext include ::Tapioca::SorbetHelper - # source://tapioca//lib/tapioca/helpers/test/dsl_compiler.rb#71 + # source://tapioca//lib/tapioca/helpers/test/dsl_compiler.rb#72 sig { params(compiler_class: T.class_of(Tapioca::Dsl::Compiler)).void } def initialize(compiler_class); end - # source://tapioca//lib/tapioca/helpers/test/dsl_compiler.rb#79 + # source://tapioca//lib/tapioca/helpers/test/dsl_compiler.rb#80 sig { params(compiler_classes: T::Array[T.class_of(Tapioca::Dsl::Compiler)]).void } def activate_other_dsl_compilers(compiler_classes); end - # source://tapioca//lib/tapioca/helpers/test/dsl_compiler.rb#84 + # source://tapioca//lib/tapioca/helpers/test/dsl_compiler.rb#85 sig { returns(T::Array[T.class_of(Tapioca::Dsl::Compiler)]) } def activated_compiler_classes; end - # source://tapioca//lib/tapioca/helpers/test/dsl_compiler.rb#65 + # source://tapioca//lib/tapioca/helpers/test/dsl_compiler.rb#66 sig { returns(T.class_of(Tapioca::Dsl::Compiler)) } def compiler_class; end - # source://tapioca//lib/tapioca/helpers/test/dsl_compiler.rb#134 + # source://tapioca//lib/tapioca/helpers/test/dsl_compiler.rb#135 sig { returns(T::Array[::String]) } def errors; end - # source://tapioca//lib/tapioca/helpers/test/dsl_compiler.rb#89 + # source://tapioca//lib/tapioca/helpers/test/dsl_compiler.rb#90 sig { returns(T::Array[::String]) } def gathered_constants; end - # source://tapioca//lib/tapioca/helpers/test/dsl_compiler.rb#68 + # source://tapioca//lib/tapioca/helpers/test/dsl_compiler.rb#69 sig { returns(T::Array[T.class_of(Tapioca::Dsl::Compiler)]) } def other_compiler_classes; end - # source://tapioca//lib/tapioca/helpers/test/dsl_compiler.rb#99 + # source://tapioca//lib/tapioca/helpers/test/dsl_compiler.rb#100 sig do params( constant_name: T.any(::String, ::Symbol), @@ -2489,7 +2467,7 @@ class Tapioca::Helpers::Test::DslCompiler::CompilerContext private - # source://tapioca//lib/tapioca/helpers/test/dsl_compiler.rb#141 + # source://tapioca//lib/tapioca/helpers/test/dsl_compiler.rb#142 sig { returns(::Tapioca::Dsl::Pipeline) } def pipeline; end end @@ -2559,6 +2537,9 @@ end # source://tapioca//lib/tapioca/helpers/test/template.rb#13 Tapioca::Helpers::Test::Template::ERB_SUPPORTS_KVARGS = T.let(T.unsafe(nil), Array) +# source://tapioca//lib/tapioca.rb#33 +Tapioca::LIB_ROOT_DIR = T.let(T.unsafe(nil), String) + # source://tapioca//lib/tapioca/loaders/loader.rb#5 module Tapioca::Loaders; end @@ -2581,7 +2562,7 @@ class Tapioca::Loaders::Dsl < ::Tapioca::Loaders::Loader protected - # source://tapioca//lib/tapioca/loaders/dsl.rb#81 + # source://tapioca//lib/tapioca/loaders/dsl.rb#88 sig { void } def load_application; end @@ -2680,16 +2661,16 @@ class Tapioca::Loaders::Loader # @param engine [T.class_of(Rails::Engine)] # @return [Array] # - # source://sorbet-runtime/0.5.11506/lib/types/private/methods/_methods.rb#257 + # source://sorbet-runtime/0.5.11514/lib/types/private/methods/_methods.rb#257 def eager_load_paths(*args, **_arg1, &blk); end - # source://tapioca//lib/tapioca/loaders/loader.rb#188 + # source://tapioca//lib/tapioca/loaders/loader.rb#199 sig { void } def eager_load_rails_app; end # @return [Array] # - # source://tapioca//lib/tapioca/loaders/loader.rb#167 + # source://tapioca//lib/tapioca/loaders/loader.rb#178 def engines; end # source://tapioca//lib/tapioca/loaders/loader.rb#29 @@ -2703,11 +2684,11 @@ class Tapioca::Loaders::Loader end def load_bundle(gemfile, initialize_file, require_file, halt_upon_load_error); end - # source://tapioca//lib/tapioca/loaders/loader.rb#125 + # source://tapioca//lib/tapioca/loaders/loader.rb#136 sig { void } def load_engines_in_classic_mode; end - # source://tapioca//lib/tapioca/loaders/loader.rb#103 + # source://tapioca//lib/tapioca/loaders/loader.rb#114 sig { void } def load_engines_in_zeitwerk_mode; end @@ -2722,26 +2703,26 @@ class Tapioca::Loaders::Loader end def load_rails_application(environment_load: T.unsafe(nil), eager_load: T.unsafe(nil), app_root: T.unsafe(nil), halt_upon_load_error: T.unsafe(nil)); end - # source://tapioca//lib/tapioca/loaders/loader.rb#78 + # source://tapioca//lib/tapioca/loaders/loader.rb#89 sig { void } def load_rails_engines; end - # source://tapioca//lib/tapioca/loaders/loader.rb#209 + # source://tapioca//lib/tapioca/loaders/loader.rb#220 sig { params(file: T.nilable(::String)).void } def require_helper(file); end - # source://tapioca//lib/tapioca/loaders/loader.rb#92 + # source://tapioca//lib/tapioca/loaders/loader.rb#103 def run_initializers; end - # source://tapioca//lib/tapioca/loaders/loader.rb#181 + # source://tapioca//lib/tapioca/loaders/loader.rb#192 sig { params(path: ::String).void } def safe_require(path); end - # source://tapioca//lib/tapioca/loaders/loader.rb#150 + # source://tapioca//lib/tapioca/loaders/loader.rb#161 sig { params(blk: T.proc.void).void } def with_rails_application(&blk); end - # source://tapioca//lib/tapioca/loaders/loader.rb#143 + # source://tapioca//lib/tapioca/loaders/loader.rb#154 sig { returns(T::Boolean) } def zeitwerk_mode?; end end @@ -3490,10 +3471,10 @@ module Tapioca::Runtime::Trackers::Tracker end end -# source://tapioca//lib/tapioca.rb#34 +# source://tapioca//lib/tapioca.rb#35 Tapioca::SORBET_CONFIG_FILE = T.let(T.unsafe(nil), String) -# source://tapioca//lib/tapioca.rb#33 +# source://tapioca//lib/tapioca.rb#34 Tapioca::SORBET_DIR = T.let(T.unsafe(nil), String) # source://tapioca//lib/tapioca/helpers/sorbet_helper.rb#5 @@ -3588,7 +3569,7 @@ module Tapioca::Static::SymbolLoader # @return [Array] # - # source://sorbet-runtime/0.5.11506/lib/types/private/methods/_methods.rb#257 + # source://sorbet-runtime/0.5.11514/lib/types/private/methods/_methods.rb#257 def engines(*args, **_arg1, &blk); end # source://tapioca//lib/tapioca/static/symbol_loader.rb#82 @@ -3625,10 +3606,10 @@ end # source://tapioca//lib/tapioca/static/symbol_table_parser.rb#9 Tapioca::Static::SymbolTableParser::SKIP_PARSE_KINDS = T.let(T.unsafe(nil), Array) -# source://tapioca//lib/tapioca.rb#36 +# source://tapioca//lib/tapioca.rb#37 Tapioca::TAPIOCA_CONFIG_FILE = T.let(T.unsafe(nil), String) -# source://tapioca//lib/tapioca.rb#35 +# source://tapioca//lib/tapioca.rb#36 Tapioca::TAPIOCA_DIR = T.let(T.unsafe(nil), String) # source://tapioca//lib/tapioca/sorbet_ext/generic_name_patch.rb#108 diff --git a/sorbet/rbi/gems/yard-sorbet@0.9.0.rbi b/sorbet/rbi/gems/yard-sorbet@0.9.0.rbi index fca5219..2293beb 100644 --- a/sorbet/rbi/gems/yard-sorbet@0.9.0.rbi +++ b/sorbet/rbi/gems/yard-sorbet@0.9.0.rbi @@ -388,7 +388,7 @@ class YARDSorbet::TStructProp < ::T::Struct const :types, T::Array[::String] class << self - # source://sorbet-runtime/0.5.11506/lib/types/struct.rb#13 + # source://sorbet-runtime/0.5.11514/lib/types/struct.rb#13 def inherited(s); end end end