From c59c4f3c168dae55a6d8464ccf52890c1539aec6 Mon Sep 17 00:00:00 2001 From: Pierce Brooks Date: Fri, 8 Mar 2024 07:35:50 -0800 Subject: [PATCH] Fix "no implicit conversion of Array into String" errors (#117) fix "no implicit conversion of Array into String" errors with regex matches being used as file system path strings Co-authored-by: Dani Smith --- lib/mittsu/renderers/glfw_lib.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/mittsu/renderers/glfw_lib.rb b/lib/mittsu/renderers/glfw_lib.rb index 9454339c..e4159b74 100644 --- a/lib/mittsu/renderers/glfw_lib.rb +++ b/lib/mittsu/renderers/glfw_lib.rb @@ -36,11 +36,11 @@ class MacOS < GenericLib::Base '/opt/homebrew/**'] def path - File.dirname(match) + File.dirname(match.to_s) end def file - File.basename(match) + File.basename(match.to_s) end private