changing gears parsing with ruby