class Bundler::SpecSet

def extract_circular_gems(error)

def extract_circular_gems(error)
  if Bundler.current_ruby.mri? && Bundler.current_ruby.on_19?
    error.message.scan(/(\w+) \([^)]/).flatten
  else
    error.message.scan(/@name="(.*?)"/).flatten
  end
end