updating conditional in gem file