Merging item chains that occasionally give gems as a bonus is the most reliable farming method. Chests also sometimes contain gems.