Skip to content

Commit dfbac89

Browse files
committed
Try patch to fix rubo_cop RBI file names
1 parent 54a3c68 commit dfbac89

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/tapioca/commands/dsl.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,8 @@ def underscore(class_name)
363363

364364
sig { params(constant: String).returns(String) }
365365
def rbi_filename_for(constant)
366-
underscore(constant) + ".rbi"
366+
# TODO: Figure out a better way than this.
367+
underscore(constant).gsub!("rubo_cop", "rubocop") + ".rbi"
367368
end
368369

369370
sig { params(constant: String).returns(String) }

0 commit comments

Comments
 (0)