DENVER -- Jeff Hoffman worked his way out of an early jam, with an assist from manager Bud Black in the form of a stern mound visit.
"(Black) just kind of told me that this is that moment during the game where I've been getting bit by the big inning," said Hoffman, who limited the damage after giving up four consecutive hits to start the second. "It's nothing more than getting the guy that's in front of me and then getting the next guy. It wasn't any magical words or anything like that. It was just, leave it right here. Take a step, take a deep breath and go get them."
The straightforward approach helped Hoffman snap a five-game losing streak dating back to July 21, 2017.
"I thought Jeff battled really well," said teammate Scott Oberg, who pitched a scoreless ninth for his first save since 2016. "Things could have taken a different turn in the second inning and he kind of put a stop to it."
Hoffman (1-1) allowed three runs and seven hits, helping the Rockies get back to the .500 mark at 27-27. He struck out six and walked two.
Oberg, filling in for injured closer Wade Davis, got three outs for his third career save.
"We've played overall, the last month, good baseball," Black said. "I think we still haven't found our stride in the rotation. I think that's coming and that will help us continue this upward push, but we've got to stay on it."
Robbie Ray (4-2) gave up five runs -- four earned -- in 4 2/3 innings. He walked four and struck out six as his four-game winning streak ended.
Arizona pulled within a run in the fifth on Jones' two-out solo shot off Hoffman into the left field bleachers.
Colorado added a run in the bottom half on reliever Stefan Crichton's errant pickoff throw to first, which allowed Nolan Arenado to score from third. But the Diamondbacks again got within a run on Kelly's homer in the sixth off reliever Seunghwan Oh.
Trailing 2-1 going into the bottom of the fourth, the Rockies drew three consecutive walks from Ray to start the inning and all three scored.
"Obviously, that fourth inning got out of control," Ray said. "Man, I don't know what happened. The third inning was pretty dominant; I felt really good. I felt like everything was clicking, and then all of a sudden, it was gone. Baseball's a funny sport. I don't know if I've ever had that happen where you walk three guys in a row with absolutely non-competitive pitches."
Rodgers singled to drive in a pair of runs and Hoffman had a two-out bunt single, scoring Ian Desmond from third as the Rockies moved in front 4-2.
Diamondbacks: OF David Peralta is expected to resume light baseball activities as soon as he intensifies his rehab work toward a return from right AC joint inflammation that landed him on the 10-day injured list a week ago.
Rockies: Davis is expected to throw a bullpen in the next day or two, his first since going on the 10-day injured list a week ago with a left oblique strain. ... LHP Chris Rusin, who began the season on the 10-day injured list with a mid-back strain, continued his rehab assignment at Triple-A Albuquerque, where he threw one scoreless inning with two strikeouts. It was his eighth rehab appearance.
Diamondbacks: RHP Taylor Clarke (1-1, 2.93 ERA) is set to make his third career start in Thursday's series finale. Clarke earned his first big league win in his last outing, allowing three runs and six hits in 6 1/3 innings against San Francisco.
Rockies: LHP Kyle Freeland (2-6, 6.71 ERA) is seeking his first win since April 18 against Philadelphia. He has gone 1/3 with an 8.65 ERA in five starts at home this season.
More AP MLB: https://apnews.com/MLB and https://twitter.com/AP-Sports
Ex-Dodgers pitcher Yu Darvish: Astros should be stripped of title
Yu Darvish, who was shelled in Games 3 and 7 of the 2017 World Series while with the Dodgers, says the Astros should be stripped of their title and that players on the team shouldn't be talking right now.
Cardinals' Miles Mikolas misses bullpen session with sore elbow
St. Louis Cardinals pitcher Miles Mikolas was scratched from his second bullpen session of the spring because of a flexor tendon issue.
Brewers sign lefty Brent Suter before arbitration
The Milwaukee Brewers signed left-hander Brent Suter to a two-year contract Sunday, avoiding an arbitration hearing that was scheduled for Monday.
Buster Olney: How Houston Astros deal with backlash will define their season
Fans are sure to send a loud, clear message to Houston players when they come to town, giving the Astros another tough challenge to overcome.
Javier Baez: Cubs not always ready to start last year
Javier Baez says the Cubs weren't always ready to start games last season, so this year will be different.
Bellinger blasts Astros: They stole a ring from us
Cody Bellinger expresses his frustrations with the Houston sign-stealing scandal and says he has lost respect for the Astros.