class Bundler::Environment
def group_spec(specs, spec, groups)
def group_spec(specs, spec, groups) spec.groups.concat(groups) spec.groups.uniq! spec.dependencies.select { |d| d.type != :development }.each do |d| spec = specs.find { |s| s.name == d.name } group_spec(specs, spec, groups) end end
def group_specs(specs)
def group_specs(specs) dependencies.each do |d| spec = specs.find { |s| s.name == d.name } group_spec(specs, spec, d.groups) end specs end
def initialize(root, definition)
def initialize(root, definition) @root = root @definition = definition end