Try ruby code in a temporary file created