Sha256: 4c252e9eca9fd878b6277a27609d879841d7efbe620d746efd30e5add2f2176d

Contents?: true

Size: 355 Bytes

Versions: 14

Compression:

Stored size: 355 Bytes

Contents

require 'appraisal/file'

class Adapter
  attr_reader :name

  def initialize(name)
    @name = name
  end

  def appraisal_name
    parts = []
    parts << 'ruby_19'
    parts << name
    parts.join('_')
  end

  def appraisal
    @appraisal ||= Appraisal::File.new.appraisals.find do |appraisal|
      appraisal.name == appraisal_name
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
rr-3.1.1 spec/support/adapter.rb
rr-3.1.0 spec/support/adapter.rb
rr-3.0.9 spec/support/adapter.rb
rr-3.0.8 spec/support/adapter.rb
rr-3.0.7 spec/support/adapter.rb
rr-3.0.6 spec/support/adapter.rb
rr-3.0.5 spec/support/adapter.rb
rr-3.0.4 spec/support/adapter.rb
rr-3.0.3 spec/support/adapter.rb
rr-3.0.2 spec/support/adapter.rb
rr-3.0.1 spec/support/adapter.rb
rr-3.0.0 spec/support/adapter.rb
rr-1.2.1 spec/support/adapter.rb
rr-1.2.0 spec/support/adapter.rb