Sha256: 99b3756a1cd3d65a40794c629eaf553eae7a695090766bf08bdc4c45d2278c1f

Contents?: true

Size: 310 Bytes

Versions: 4

Compression:

Stored size: 310 Bytes

Contents

require 'appraisal/dependency'

module Appraisal
  class DependencyList
    def initialize
      @dependencies = {}
    end

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

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

Version data entries

4 entries across 2 versions & 2 rubygems

Version Path
honeybadger-2.4.0 vendor/gems/ruby/1.9.1/gems/appraisal-1.0.2/lib/appraisal/dependency_list.rb
honeybadger-2.4.0 vendor/gems/ruby/2.1.0/gems/appraisal-1.0.2/lib/appraisal/dependency_list.rb
honeybadger-2.4.0 vendor/gems/ruby/2.2.0/gems/appraisal-1.0.2/lib/appraisal/dependency_list.rb
appraisal-1.0.2 lib/appraisal/dependency_list.rb