Revert ruby scripts