class Gem::Dependency
def matching_specs(platform_only = false)
def matching_specs(platform_only = false) matches = Gem::Specification.find_all_by_name(name, requirement) if platform_only matches.reject! do |spec| spec.nil? || !Gem::Platform.match_spec?(spec) end end matches.reject(&:ignored?) end