adding the ended in time to the gem