Method: Bundler::Fetcher::Dependency#get_formatted_specs_and_deps

Defined in:
lib/bundler/fetcher/dependency.rb

#get_formatted_specs_and_deps(gem_list) ⇒ Object



59
60
61
62
63
64
65
66
67
68
69
# File 'lib/bundler/fetcher/dependency.rb', line 59

def get_formatted_specs_and_deps(gem_list)
  deps_list = []
  spec_list = []

  gem_list.each do |s|
    deps_list.concat(s[:dependencies].map(&:first))
    deps = s[:dependencies].map {|n, d| [n, d.split(", ")] }
    spec_list.push([s[:name], s[:number], s[:platform], deps])
  end
  [spec_list, deps_list]
end