ruby diagnostic