class Bundler::Fetcher

def well_formed_dependency(name, *requirements)

def well_formed_dependency(name, *requirements)
  Gem::Dependency.new(name, *requirements)
rescue ArgumentError => e
  illformed = 'Ill-formed requirement ["#<YAML::Syck::DefaultKey'
  raise e unless e.message.include?(illformed)
  puts # we shouldn't print the error message on the "fetching info" status line
  raise GemspecError,
    "Unfortunately, the gem #{s[:name]} (#{s[:number]}) has an invalid " \
    "gemspec. \nPlease ask the gem author to yank the bad version to fix " \
    "this issue. For more information, see http://bit.ly/syck-defaultkey."
end