Method: LibGems::SourceIndex#add_spec

Defined in:
lib/libgems/source_index.rb

#add_spec(gem_spec, name = gem_spec.full_name) ⇒ Object

Add a gem specification to the source index.



215
216
217
218
219
# File 'lib/libgems/source_index.rb', line 215

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