class Appraisal::Dependency
Dependency on a gem and optional version requirements
def for_dup
def for_dup formatted_output Utils.format_arguments(requirements) end
def formatted_output(output_requirements)
def formatted_output(output_requirements) [gem_name, output_requirements].compact.join(", ") end
def gem_name
def gem_name %{gem "#{name}"} end
def initialize(name, requirements)
def initialize(name, requirements) @name = name @requirements = requirements end
def no_requirements?
def no_requirements? requirements.nil? || requirements.empty? end
def path_prefixed_requirements
def path_prefixed_requirements requirements.map do |requirement| if requirement.is_a?(Hash) if requirement[:path] requirement[:path] = Utils.prefix_path(requirement[:path]) end if requirement[:git] requirement[:git] = Utils.prefix_path(requirement[:git]) end end requirement end end
def to_s
def to_s formatted_output Utils.format_arguments(path_prefixed_requirements) end