Refine gem dependency requirements