updating ruby script to fix diploma variables