Shelter’s longest resident gets adopted