class Bundler::RubygemsIntegration::Legacy

Rubygems 1.4 through 1.6

Public Class Methods

new() click to toggle source
Calls superclass method
# File lib/bundler/rubygems_integration.rb, line 439
def initialize
  super
  backport_base_dir
  backport_cache_file
  backport_spec_file
  backport_yaml_initialize
end

Public Instance Methods

all_specs() click to toggle source
# File lib/bundler/rubygems_integration.rb, line 458
def all_specs
  Gem.source_index.gems.values
end
find_name(name) click to toggle source
# File lib/bundler/rubygems_integration.rb, line 462
def find_name(name)
  Gem.source_index.find_name(name)
end
stub_rubygems(specs) click to toggle source
# File lib/bundler/rubygems_integration.rb, line 447
def stub_rubygems(specs)
  # Rubygems versions lower than 1.7 use SourceIndex#from_gems_in
  source_index_class = (class << Gem::SourceIndex ; self ; end)
  source_index_class.send(:define_method, :from_gems_in) do |*args|
    source_index = Gem::SourceIndex.new
    source_index.spec_dirs = *args
    source_index.add_specs(*specs)
    source_index
  end
end
validate(spec) click to toggle source
# File lib/bundler/rubygems_integration.rb, line 466
def validate(spec)
  # These versions of RubyGems always validate in "packaging" mode,
  # which is too strict for the kinds of checks we care about. As a
  # result, validation is disabled on versions of RubyGems below 1.7.
end