Checks that new Ruby files will enable frozen string literal. Partially addresses #47424.
Signed-off-by: Rémy Coutable <remy@rymai.me>