check for ruby success