Wref is a weak-references gem for Ruby. It is lightweight supports 1.9, supports JRuby and checking of chosen IDs on objects. It also contains a hash-map.