Gold settles up $6, or 0.5%, at $1,279.40 an ounce