Ruby is one of four basic gem materials, and is only obtainable via mining at a non-spawn island with a Gold or Gem Pickaxe.