Refactor dependenct_gems to use map, not each

We were reimplementing map.collect using each.
I don't know what this REFACTOR means
I can't find the each_attr for this comment

Maybe a previous version of Gem::Specification had it?  each_attr does
not exist today.