libyaml-devel is an important requirement for the default Ruby installation.
Please consider moving that package into the dnf/yum install commands noted for RHEL 8 and RHEL 9.
The current README is confusing, treating that requirement as a FAQ rather than an ordinary instruction step.