# File lib/rubygems/dependency.rb, line 255 def to_spec matches = self.to_specs matches.find { |spec| spec.activated? } or matches.last end