Sha256: 7c7c28eaf892e1afc17574fe1045ccdc3ded6f21238a419bd9027d0f2ffa8d86

Contents?: true

Size: 482 Bytes

Versions: 10

Compression:

Stored size: 482 Bytes

Contents

require "appraisal/bundler_dsl"
require "appraisal/utils"

module Appraisal
  class Source < BundlerDSL
    def initialize(source)
      super()
      @source = source
    end

    def to_s
      formatted_output indent(super)
    end

    # :nodoc:
    def for_dup
      formatted_output indent(super)
    end

    private

    def formatted_output(output_dependencies)
      <<-OUTPUT.strip
source #{@source.inspect} do
#{output_dependencies}
end
        OUTPUT
    end
  end
end

Version data entries

10 entries across 10 versions & 3 rubygems

Version Path
honeybadger-5.4.0 vendor/bundle/ruby/3.2.0/gems/appraisal-2.5.0/lib/appraisal/source.rb
honeybadger-5.3.0 vendor/bundle/ruby/3.2.0/gems/appraisal-2.5.0/lib/appraisal/source.rb
appraisal-2.5.0 lib/appraisal/source.rb
appraisal-2.4.1 lib/appraisal/source.rb
appraisal-2.4.0 lib/appraisal/source.rb
appraisal-2.3.0 lib/appraisal/source.rb
honeybadger-4.5.3 vendor/bundle/ruby/2.6.0/gems/appraisal-2.2.0/lib/appraisal/source.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/appraisal-2.2.0/lib/appraisal/source.rb
appraisal-2.2.0 lib/appraisal/source.rb
appraisal-2.1.0 lib/appraisal/source.rb