lib/tapioca/commands/gem.rb in tapioca-0.8.3 vs lib/tapioca/commands/gem.rb in tapioca-0.9.0

- old
+ new

@@ -3,22 +3,22 @@ module Tapioca module Commands class Gem < Command include SorbetHelper - include RBIHelper + include RBIFilesHelper sig do params( gem_names: T::Array[String], exclude: T::Array[String], prerequire: T.nilable(String), postrequire: String, typed_overrides: T::Hash[String, String], outpath: Pathname, file_header: T::Boolean, - doc: T::Boolean, + include_doc: T::Boolean, include_exported_rbis: T::Boolean, number_of_workers: T.nilable(Integer), auto_strictness: T::Boolean, dsl_dir: String, rbi_formatter: RBIFormatter @@ -30,11 +30,11 @@ prerequire:, postrequire:, typed_overrides:, outpath:, file_header:, - doc:, + include_doc:, include_exported_rbis:, number_of_workers: nil, auto_strictness: true, dsl_dir: DEFAULT_DSL_DIR, rbi_formatter: DEFAULT_RBI_FORMATTER @@ -55,11 +55,11 @@ @loader = T.let(nil, T.nilable(Runtime::Loader)) @bundle = T.let(nil, T.nilable(Gemfile)) @existing_rbis = T.let(nil, T.nilable(T::Hash[String, String])) @expected_rbis = T.let(nil, T.nilable(T::Hash[String, String])) - @doc = T.let(doc, T::Boolean) + @include_doc = T.let(include_doc, T::Boolean) @include_exported_rbis = include_exported_rbis end sig { override.void } def execute @@ -180,10 +180,10 @@ @rbi_formatter.write_header!(rbi, default_command(:gem, gem.name), reason: "types exported from the `#{gem.name}` gem",) if @file_header - rbi.root = Tapioca::Gem::Pipeline.new(gem, include_doc: @doc).compile + rbi.root = Tapioca::Gem::Pipeline.new(gem, include_doc: @include_doc).compile merge_with_exported_rbi(gem, rbi) if @include_exported_rbis if rbi.empty? @rbi_formatter.write_empty_body_comment!(rbi)