converting project into a ruby gem