class Bundler::RubygemsIntegration::MoreFuture

RubyGems 2.1.0

def all_specs

def all_specs
  require "bundler/remote_specification"
  Gem::Specification.stubs.map do |stub|
    StubSpecification.from_stub(stub)
  end
end

def backport_ext_builder_monitor

def backport_ext_builder_monitor
  require "rubygems/ext"
  Gem::Ext::Builder.class_eval do
    unless const_defined?(:CHDIR_MONITOR)
      const_set(:CHDIR_MONITOR, EXT_LOCK)
    end
    remove_const(:CHDIR_MUTEX) if const_defined?(:CHDIR_MUTEX)
    const_set(:CHDIR_MUTEX, const_get(:CHDIR_MONITOR))
  end
end

def find_name(name)

def find_name(name)
  Gem::Specification.stubs_for(name).map(&:to_spec)
end

def find_name(name)

def find_name(name)
  Gem::Specification.stubs.find_all do |spec|
    spec.name == name
  end.map(&:to_spec)
end

def initialize

def initialize
  super
  backport_ext_builder_monitor
end

def use_gemdeps(gemfile)

def use_gemdeps(gemfile)
  ENV["BUNDLE_GEMFILE"] ||= File.expand_path(gemfile)
  runtime = Bundler.setup
  Bundler.ui = nil
  activated_spec_names = runtime.requested_specs.map(&:to_spec).sort_by(&:name)
  [Gemdeps.new(runtime), activated_spec_names]
end