class Bundler::SelfManager

def find_latest_matching_spec_from_collection(specs, requirement)

def find_latest_matching_spec_from_collection(specs, requirement)
  specs.sort.reverse_each.find {|spec| requirement.satisfied_by?(spec.version) }
end