General Usage:
* The rival team couldn't help but gloat over their victory. (This shows they were enjoying their success in a way that seemed smug or boastful.)
* She gloated over her promotion, telling everyone about how much higher her salary was. (This implies she was boasting about her achievement in an obnoxious way.)
* After years of struggle, she finally finished her novel and couldn't help but gloat a little to her friends. (This shows a bit of understandable pride, but still implies a slight over-exaggeration.)
Figurative Usage:
* The news of her success was like a feast for her enemies, who gloated over her downfall. (This uses "gloat" metaphorically to show the enemies were taking malicious pleasure in her misfortune.)
Remember: "Gloat" usually carries a negative connotation, suggesting someone is taking pleasure in another's misfortune or is excessively boastful.