lib/tapioca/commands/abstract_dsl.rb in tapioca-0.14.3 vs lib/tapioca/commands/abstract_dsl.rb in tapioca-0.14.4

- old
+ new

@@ -25,10 +25,11 @@ auto_strictness: T::Boolean, gem_dir: String, rbi_formatter: RBIFormatter, app_root: String, halt_upon_load_error: T::Boolean, + compiler_options: T::Hash[String, T.untyped], ).void end def initialize( requested_constants:, requested_paths:, @@ -43,11 +44,12 @@ number_of_workers: nil, auto_strictness: true, gem_dir: DEFAULT_GEM_DIR, rbi_formatter: DEFAULT_RBI_FORMATTER, app_root: ".", - halt_upon_load_error: true + halt_upon_load_error: true, + compiler_options: {} ) @requested_constants = requested_constants @requested_paths = requested_paths @outpath = outpath @only = only @@ -61,10 +63,11 @@ @gem_dir = gem_dir @rbi_formatter = rbi_formatter @app_root = app_root @halt_upon_load_error = halt_upon_load_error @skip_constant = skip_constant + @compiler_options = compiler_options super() end private @@ -127,9 +130,10 @@ error_handler: ->(error) { say_error(error, :bold, :red) }, skipped_constants: constantize(@skip_constant, ignore_missing: true), number_of_workers: @number_of_workers, + compiler_options: @compiler_options, ) end sig { params(requested_constants: T::Array[String], path: Pathname).returns(T::Set[Pathname]) } def existing_rbi_filenames(requested_constants, path: @outpath)