From 9df39d76ee78c854d85ed1b7307c41fb5051a018 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Wed, 8 Jan 2025 16:01:04 +0000 Subject: [PATCH] Fix some `brew typecheck homebrew/bundle` cases - Add an RBI for a dynamically defined class - Make `Formulary` a `module` like in Homebrew/brew --- spec/bundle/commands/check_command_spec.rbi | 2 ++ spec/stub/formulary.rb | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 spec/bundle/commands/check_command_spec.rbi diff --git a/spec/bundle/commands/check_command_spec.rbi b/spec/bundle/commands/check_command_spec.rbi new file mode 100644 index 000000000..e76d51eec --- /dev/null +++ b/spec/bundle/commands/check_command_spec.rbi @@ -0,0 +1,2 @@ +class TestChecker < Bundle::Checker::Base +end diff --git a/spec/stub/formulary.rb b/spec/stub/formulary.rb index ede1c0ef3..c8376a376 100644 --- a/spec/stub/formulary.rb +++ b/spec/stub/formulary.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -class Formulary +module Formulary def self.factory(name) Formula.new(name) end