A ruby script to export mint data