The Rays completed a long-term deal with James Shields that could keep the right-handed starter with the team for up to seven seasons and pay him more than $38-million.