Sha256: a50c585b08628ef79dc2b21adc588b56d8d6e86ba34335ceeff0c8615ca7bb0e

Contents?: true

Size: 533 Bytes

Versions: 13

Compression:

Stored size: 533 Bytes

Contents

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

module Appraisal
  class Platform < BundlerDSL
    def initialize(platform_names)
      super()
      @platform_names = platform_names
    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
platforms #{Utils.format_arguments(@platform_names)} do
#{output_dependencies}
end
      OUTPUT
    end
  end
end

Version data entries

13 entries across 13 versions & 3 rubygems

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