Sha256: 9ed893682c64f8e7ed51c2810307663ff95dc19600d894b367003ac592a9927d

Contents?: true

Size: 488 Bytes

Versions: 13

Compression:

Stored size: 488 Bytes

Contents

require 'appraisal/utils'

module Appraisal
  class Gemspec
    attr_reader :options

    def initialize(options = {})
      @options = options
      @options[:path] ||= '.'
    end

    def to_s
      "gemspec #{Utils.format_string(exported_options)}"
    end

    # :nodoc:
    def for_dup
      "gemspec #{Utils.format_string(@options)}"
    end

    private

    def exported_options
      @options.merge(
        :path => Utils.prefix_path(@options[:path])
      )
    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/gemspec.rb
honeybadger-5.3.0 vendor/bundle/ruby/3.2.0/gems/appraisal-2.5.0/lib/appraisal/gemspec.rb
appraisal-2.5.0 lib/appraisal/gemspec.rb
appraisal-2.4.1 lib/appraisal/gemspec.rb
appraisal-2.4.0 lib/appraisal/gemspec.rb
appraisal-2.3.0 lib/appraisal/gemspec.rb
honeybadger-4.5.3 vendor/bundle/ruby/2.6.0/gems/appraisal-2.2.0/lib/appraisal/gemspec.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/appraisal-2.2.0/lib/appraisal/gemspec.rb
appraisal-2.2.0 lib/appraisal/gemspec.rb
appraisal-2.1.0 lib/appraisal/gemspec.rb
appraisal-2.0.2 lib/appraisal/gemspec.rb
appraisal-2.0.1 lib/appraisal/gemspec.rb
appraisal-2.0.0 lib/appraisal/gemspec.rb