From 63ce9bcd0452a04fbc1ed9e3bed05d6460fd599a Mon Sep 17 00:00:00 2001 From: Genar Trias Ortiz Date: Wed, 21 Aug 2024 12:44:01 +0200 Subject: [PATCH] added tapioca --- Gemfile | 1 + Gemfile.lock | 27 +++++++++++++++++++++++++++ lib/public/resource.rb | 3 ++- sorbet/rbi/gems/rspec-mocks.rbi | 2 +- sorbet/rbi/gems/sorbet-coerce.rbi | 2 +- sorbet/rbi/todo.rbi | 14 +++++--------- 6 files changed, 37 insertions(+), 12 deletions(-) diff --git a/Gemfile b/Gemfile index e8c15ee..8ddcc26 100644 --- a/Gemfile +++ b/Gemfile @@ -7,3 +7,4 @@ gem 'activesupport' gem 'rspec' gem 'sorbet-coerce', '>= 0.2.6' gem 'sorbet-static-and-runtime', '>= 0.5.11511' +gem 'tapioca', '~> 0.15.1', require: false diff --git a/Gemfile.lock b/Gemfile.lock index 10d82f6..2f1a305 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -18,11 +18,18 @@ GEM connection_pool (2.4.1) diff-lcs (1.5.1) drb (2.2.1) + erubi (1.12.0) i18n (1.14.5) concurrent-ruby (~> 1.0) logger (1.6.0) minitest (5.25.1) + netrc (0.11.0) + parallel (1.23.0) polyfill (1.9.0) + prism (0.30.0) + rbi (0.1.13) + prism (>= 0.18.0, < 1.0.0) + sorbet-runtime (>= 0.5.9204) rspec (3.13.0) rspec-core (~> 3.13.0) rspec-expectations (~> 3.13.0) @@ -49,8 +56,27 @@ GEM sorbet-static-and-runtime (0.5.11531) sorbet (= 0.5.11531) sorbet-runtime (= 0.5.11531) + spoom (1.4.2) + erubi (>= 1.10.0) + prism (>= 0.28.0) + sorbet-static-and-runtime (>= 0.5.10187) + thor (>= 0.19.2) + tapioca (0.15.1) + bundler (>= 2.2.25) + netrc (>= 0.11.0) + parallel (>= 1.21.0) + rbi (>= 0.1.4, < 0.2) + sorbet-static-and-runtime (>= 0.5.11087) + spoom (>= 1.2.0) + thor (>= 1.2.0) + yard-sorbet + thor (1.3.0) tzinfo (2.0.6) concurrent-ruby (~> 1.0) + yard (0.9.36) + yard-sorbet (0.9.0) + sorbet-runtime + yard PLATFORMS ruby @@ -61,6 +87,7 @@ DEPENDENCIES rspec sorbet-coerce (>= 0.2.6) sorbet-static-and-runtime (>= 0.5.11511) + tapioca (~> 0.15.1) BUNDLED WITH 2.5.11 diff --git a/lib/public/resource.rb b/lib/public/resource.rb index 27c4226..e88c28f 100644 --- a/lib/public/resource.rb +++ b/lib/public/resource.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true -# typed: false +# typed: strict require_relative 'capabilities/capability_config' require_relative 'capability_factory' @@ -8,6 +8,7 @@ require_relative '../schema_registry/schema' module ResourceRegistry + # The main class that represents a resource in the system. class Resource < T::Struct extend T::Sig diff --git a/sorbet/rbi/gems/rspec-mocks.rbi b/sorbet/rbi/gems/rspec-mocks.rbi index 653180c..29d7550 100644 --- a/sorbet/rbi/gems/rspec-mocks.rbi +++ b/sorbet/rbi/gems/rspec-mocks.rbi @@ -1,7 +1,7 @@ # This file is autogenerated. Do not edit it by hand. Regenerate it with: # srb rbi gems -# typed: true +# typed: false # # If you would like to make changes to this file, great! Please create the gem's shim here: # diff --git a/sorbet/rbi/gems/sorbet-coerce.rbi b/sorbet/rbi/gems/sorbet-coerce.rbi index 77d3a16..18c6385 100644 --- a/sorbet/rbi/gems/sorbet-coerce.rbi +++ b/sorbet/rbi/gems/sorbet-coerce.rbi @@ -1,7 +1,7 @@ # This file is autogenerated. Do not edit it by hand. Regenerate it with: # srb rbi gems -# typed: strict +# typed: false # # If you would like to make changes to this file, great! Please create the gem's shim here: # diff --git a/sorbet/rbi/todo.rbi b/sorbet/rbi/todo.rbi index 0b37a96..0909fa4 100644 --- a/sorbet/rbi/todo.rbi +++ b/sorbet/rbi/todo.rbi @@ -1,7 +1,9 @@ -# This file is autogenerated. Do not edit it by hand. Regenerate it with: -# srb rbi todo +# DO NOT EDIT MANUALLY +# This is an autogenerated file for unresolved constants. +# Please instead update this file by running `bin/tapioca todo`. + +# typed: false -# typed: strong module ::Employees::Repositories::Employees; end module ::Graphql::Capability; end module ::Rails; end @@ -36,12 +38,6 @@ module ResourceRegistry::Resource::EventSystem::Event; end module ResourceRegistry::Serializer; end module ResourceRegistry::Tracer::Telemetry::Tracer; end module SchemaRegistry::GenerateFromStruct::ActionDispatch::Http::UploadedFile; end -module SchemaRegistry::RbiGenerator::RBI::Extend; end -module SchemaRegistry::RbiGenerator::RBI::File; end -module SchemaRegistry::RbiGenerator::RBI::Helper; end -module SchemaRegistry::RbiGenerator::RBI::Method; end -module SchemaRegistry::RbiGenerator::RBI::Module; end -module SchemaRegistry::RbiGenerator::RBI::Sig; end module T::CompatibilityPatches::RSpecCompatibility::MethodDoubleExtensions; end module T::CompatibilityPatches::RSpecCompatibility::RecorderExtensions; end module T::Private::Abstract::Hooks; end