On January 9, 2013, Gómez was traded to the Pittsburgh Pirates in exchange for outfielder Quincy Latimore. Quite inconsistent in Cleveland, he found stability in the back end of Pittsburgh's rotation after improving during spring training. The recipient of direction from pitching coach Ray Searage to avoid moving his head so much, he simplified approach helped him post a 2.76 ERA during his first eight starts. During the second half of the season, he worked out of the bullpen, and ultimately compiled a 3–0 record with a 3.35 ERA, an improvement of more than 2.5 earned runs per nine innings from the prior season. Entering 2014, Gómez was a candidate to work in long relief, particularly because he was out of options. He pitched in 44 games – all out of the bullpen – totaling 62 innings and posting a 3.19 ERA, but overall was "underwhelming". He was designated for assignment on October 25, and subsequently became a free agent.
Philadelphia Phillies
On January 12, 2015, Gómez signed a minor league contract with the Philadelphia Phillies. Although he had experience both as a starter and a reliever, he projected to work mainly in middle relief for the Phillies, assuming he made the club out of spring training, which he did, one of seven Venezuelans on the Phillies' roster, the most in the major leagues. Working exclusively out of the bullpen, he pitched in 65 games, and posted a 3.01 ERA with a 3:1 strikeout to walk ratio. That walk rate was the best of his career, and he increased the velocity of his fastball as well. He successfully reinvented himself to be a serviceable middle reliever on a subpar team, and to that end, was retained for the 2016 season. To begin the 2016 season, the Phillies used Gómez as in middle relief. On April 9, 2016, he recorded his first save of the season in a game against the New York Mets. Following the game, the Phillies named him as their closer. Gómez began the 2017 year in an unusual way as he allowed two home runs in his first three appearances. On April 10, 2017, he was removed from the closer role and replaced by Joaquin Benoit. Gomez continued to struggle with his command, allowing seven home runs in under 25 innings. On June 20, he was designated for assignment by the Phillies. He was released three days later.
Milwaukee Brewers
On July 15, 2017, Gómez signed a minor league contract with the Brewers. He opted out of the contract on August 7.
On January 31, 2018, Gomez signed a minor league contract with the Chicago White Sox.
Texas Rangers
On January 9, 2019, Gomez signed a minor-league contract with an invite to 2019 major league spring training with the Texas Rangers. On March 23, 2019, the Rangers announced that Gomez had made the opening day roster. Gomez was designated for assignment on May 27 and released on June 1.
Pitching style
Gómez relies primarily on a sinker that he grips like a two-seam fastball, that ranges from about, as well as a slider and a changeup, the latter of which he uses primarily against left-handed hitters. Very occasionally, he mixes in a cutter. Over time, both his two seam fastball and slider have improved in terms of movement according to Carlos Santana, who served as the catcher for him both at the minor league and major league levels.