This method is deprecated or moved on the latest stable version.
The last existing version (v1_9_3_392) is shown here.
load_gems_in(*spec_dirs)
public
Reconstruct the source index from the specifications in spec_dirs.
# File lib/rubygems/source_index.rb, line 117
def load_gems_in(*spec_dirs)
@gems.clear
spec_dirs.reverse_each do |spec_dir|
spec_files = Dir[File.join(spec_dir, "*.gemspec")]
spec_files.each do |spec_file|
gemspec = Gem::Deprecate.skip_during do
Gem::Specification.load spec_file
end
add_spec gemspec if gemspec
end
end
self
end