Ruby app to calculate gear ratio