SAN FRANCISCO Robbie Ray won his fifth straight start and A.J. Pollack hit a two-run double as the Arizona Diamondbacks defeated the San Francisco Giants 3-2 on Friday night.