JM Smucker has booked an increase in second-quarter earnings and raised its outlook for the full-year.