Tyler Ruiz drove in leadoff hitter Preston Hannifin (walked, then stole second) in the eighth with a single to right-center to cap the come-from-behind victory.