Sha256: 6d6ccffb22ab5d594e0a9996bde03edb101bc61078bc84854a9db93a7d85f354
Contents?: true
Size: 758 Bytes
Versions: 4
Compression:
Stored size: 758 Bytes
Contents
require "appraisal/bundler_dsl" require 'appraisal/utils' module Appraisal class PathSource < BundlerDSL def initialize(source, options = {}) super() @source = source @options = options end def to_s if @options.empty? "path #{Utils.prefix_path(@source).inspect} do\n#{indent(super)}\nend" else "path #{Utils.prefix_path(@source).inspect}, #{Utils.format_string(@options)} do\n" + "#{indent(super)}\nend" end end # :nodoc: def for_dup if @options.empty? "path #{@source.inspect} do\n#{indent(super)}\nend" else "path #{@source.inspect}, #{Utils.format_string(@options)} do\n" + "#{indent(super)}\nend" end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
appraisal-2.1.0 | lib/appraisal/path_source.rb |
appraisal-2.0.2 | lib/appraisal/path_source.rb |
appraisal-2.0.1 | lib/appraisal/path_source.rb |
appraisal-2.0.0 | lib/appraisal/path_source.rb |