Rubygems 1.4 through 1.6
# File lib/bundler/rubygems_integration.rb, line 422 def all_specs Gem.source_index.gems.values end
# File lib/bundler/rubygems_integration.rb, line 426 def find_name(name) Gem.source_index.find_name(name) end
# File lib/bundler/rubygems_integration.rb, line 411 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
Generated with the Darkfish Rdoc Generator 2.