Method: LibGems::Commands::DependencyCommand#find_gems

Defined in:
lib/libgems/commands/dependency_command.rb

#find_gems(name, source_index) ⇒ Object



182
183
184
185
186
187
188
189
190
191
192
# File 'lib/libgems/commands/dependency_command.rb', line 182

def find_gems(name, source_index)
  specs = {}

  spec_list = source_index.search name, options[:version]

  spec_list.each do |spec|
    specs[spec.full_name] = [source_index, spec]
  end

  specs
end