Ruf's leadoff blast against David Carpenter (3-1) broke a 2-2 tie and the Phillies held on to sweep a series for the first time since taking four straight from Miami in June.
B.J. Rosenberg recorded his first career save after starter Cole Hamels (7-13) had yielded two runs on two hits over eight innings, striking out nine.
Rookie Evan Gattis socked a pair of solo homers to provide the offense for the National League East-leading Braves.
Benedict Cumberbatch's dramatic reading of R. Kelly lyrics is just what you need
Exploding whale video goes viral on Internet