This method is deprecated or moved on the latest stable version. The last existing version (v1_9_3_392) is shown here.
add_spec(gem_spec, name = gem_spec.full_name)
Add a gem specification to the source index.
# File lib/rubygems/source_index.rb, line 186 def add_spec(gem_spec, name = gem_spec.full_name) # No idea why, but the Indexer wants to insert them using original_name # instead of full_name. So we make it an optional arg. @gems[name] = gem_spec end