Sha256: 0d5c58ee3de91d41aca1285af16d8796cc47c3a918f4cd1c115d27a3e657f176
Contents?: true
Size: 753 Bytes
Versions: 4
Compression:
Stored size: 753 Bytes
Contents
require "appraisal/bundler_dsl" require 'appraisal/utils' module Appraisal class GitSource < BundlerDSL def initialize(source, options = {}) super() @source = source @options = options end def to_s if @options.empty? "git #{Utils.prefix_path(@source).inspect} do\n#{indent(super)}\nend" else "git #{Utils.prefix_path(@source).inspect}, #{Utils.format_string(@options)} do\n" + "#{indent(super)}\nend" end end # :nodoc: def for_dup if @options.empty? "git #{@source.inspect} do\n#{indent(super)}\nend" else "git #{@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/git_source.rb |
appraisal-2.0.2 | lib/appraisal/git_source.rb |
appraisal-2.0.1 | lib/appraisal/git_source.rb |
appraisal-2.0.0 | lib/appraisal/git_source.rb |