Added ruby script for cron job (to be run on an external server)