From dfbac89a8bcacf1cc526b8570f4f834e50252b76 Mon Sep 17 00:00:00 2001 From: Sam Bostock Date: Fri, 28 Oct 2022 10:42:57 -0400 Subject: [PATCH] Try patch to fix rubo_cop RBI file names --- lib/tapioca/commands/dsl.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/tapioca/commands/dsl.rb b/lib/tapioca/commands/dsl.rb index 6af5b7ce5e..bb53953fef 100644 --- a/lib/tapioca/commands/dsl.rb +++ b/lib/tapioca/commands/dsl.rb @@ -363,7 +363,8 @@ def underscore(class_name) sig { params(constant: String).returns(String) } def rbi_filename_for(constant) - underscore(constant) + ".rbi" + # TODO: Figure out a better way than this. + underscore(constant).gsub!("rubo_cop", "rubocop") + ".rbi" end sig { params(constant: String).returns(String) }