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 610
def initialize
  super
  backport_ext_builder_monitor
end

Public Instance Methods

all_specs() click to toggle source
# File lib/bundler/rubygems_integration.rb, line 615
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 622
def backport_ext_builder_monitor
  require 'rubygems/ext'

  Gem::Ext::Builder.class_eval do
    if !const_defined?(:CHDIR_MONITOR)
      const_set(:CHDIR_MONITOR, EXT_LOCK)
    end

    if const_defined?(:CHDIR_MUTEX)
      remove_const(:CHDIR_MUTEX)
    end
    const_set(:CHDIR_MUTEX, const_get(:CHDIR_MONITOR))
  end
end
find_name(name) click to toggle source
# File lib/bundler/rubygems_integration.rb, line 638
def find_name(name)
  Gem::Specification.stubs_for(name).map(&:to_spec)
end