Solve gem dependencies