Module: Gem::CompileMethods

Included in:
Gem::Commands::CompileCommand, Gem::Commands::UncompileCommand
Defined in:
lib/rubygems-compile/compile_methods.rb

Instance Method Summary collapse

Instance Method Details

#execution_listObject



4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/rubygems-compile/compile_methods.rb', line 4

def execution_list
  return all_gemspecs if options[:all]

  specs = get_all_gem_names.map do |gem|
    candidates = Gem.source_index.find_name(gem, options[:version])

    if candidates.empty?
      alert_error "#{gem} is not installed. Skipping."
      next
    end

    candidates << dependencies_for(candidates) unless options[:ignore]
    candidates
  end
  specs.flatten!
  specs.uniq!
  specs.delete_if { |spec| spec.name == 'rubygems-compile' }
  specs
end