Rubies in armor or helms provide useful hit point bonuses, and are commonly socketed in merc equipment.
Diablo III Rubies
This gem type returns in Diablo III, but with very different bonuses.
Diablo II: Lord of Destruction
These are the bonuses provided by a Ruby in D2X:
D2C Ruby Stats
Rubies have slightly different stats in D2 Classic.