class Appraisal::DependencyList

def add(name, requirements)

def add(name, requirements)
  unless @removed_dependencies.include?(name)
    @dependencies[name] = Dependency.new(name, requirements)
  end
end

def for_dup

:nodoc:
def for_dup
  @dependencies.values.map(&:for_dup).join("\n")
end

def initialize

def initialize
  @dependencies = Hash.new
  @removed_dependencies = Set.new
end

def remove(name)

def remove(name)
  if @removed_dependencies.add?(name)
    @dependencies.delete(name)
  end
end

def to_s

def to_s
  @dependencies.values.map(&:to_s).join("\n")
end