Revert "Remove unused ruby code"

This reverts commit 1c18af7b7647fef636aaab4bcaecebcd02b7a7ad.