module Bundler

def eval_yaml_gemspec(path, contents)

def eval_yaml_gemspec(path, contents)
  Kernel.require "psych"
  Gem::Specification.from_yaml(contents)
rescue ::Psych::SyntaxError, ArgumentError, Gem::EndOfYAMLException, Gem::Exception
  eval_gemspec(path, contents)
end