class Bundler::RubygemsIntegration::MoreFuture

RubyGems 2.1.0

Public Class Methods

new() click to toggle source
Calls superclass method
# File lib/bundler/rubygems_integration.rb, line 644
def initialize
  super
  backport_ext_builder_monitor
end

Public Instance Methods

all_specs() click to toggle source
# File lib/bundler/rubygems_integration.rb, line 649
def all_specs
  require "bundler/remote_specification"
  Gem::Specification.stubs.map do |stub|
    StubSpecification.from_stub(stub)
  end
end
backport_ext_builder_monitor() click to toggle source
# File lib/bundler/rubygems_integration.rb, line 656
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
find_name(name) click to toggle source
# File lib/bundler/rubygems_integration.rb, line 670
def find_name(name)
  Gem::Specification.stubs_for(name).map(&:to_spec)
end