# File lib/gem2rpm/gem/spec_fetcher.rb, line 9 def spec_for_dependency(dependency, matching_platform = true) super rescue errors = [] begin spec, source = find_matching(dependency, true, matching_platform).first rescue Gem::Exception => e errors << OpenStruct.new(:error => e) end source = OpenStruct.new(:uri => source) [[[spec, source]], errors] end