ruby script to convert features files to a csv