class Bundler::Installer

def can_install_parallely?

def can_install_parallely?
  min_rubygems = "2.0.7"
  if Bundler.current_ruby.mri? || Bundler.rubygems.provides?(">= #{min_rubygems}")
    true
  else
    Bundler.ui.warn "Rubygems #{Gem::VERSION} is not threadsafe, so your "\
      "gems must be installed one at a time. Upgrade to Rubygems " \
      "#{min_rubygems} or higher to enable parallel gem installation."
    false
  end
end