properly handle unaffected versions of gems