warn if the same gem (same version) is added twice

change indentation & move test
features#22