refine gem file