Some ruby cleanup