Harold Ramirez drove Vidal Brujan in for the game-ending run, and the Tampa Bay Rays defeated the Pittsburgh Pirates 4-3.