WIP: Move RUby code to gem