I recently updated from Ruby 3.0.2 to 3.3.0 and I started getting the following warning at the line where I call FileMatic.new:
warning: undefining the allocator of T_DATA class FileMagic
I googled it but didn't find anything useful about this error message. Good luck!