There is currently no way to properly set texture projection in the Ruby API (Or C API).
.set_texture_projection isn’t working correctly and will produce a model that will trigger “Fix Model” dialog. It’s deprecated and might be removed completely when new features that correctly handle projected textures are added. (Normally API features are not removed, but this created invalid data and should not be used.)