Sha256: 0a84cf4416f05211bfd6ccfe106f7418611dcbdc878ad8ba669086efee7e12ad

Contents?: true

Size: 568 Bytes

Versions: 3

Compression:

Stored size: 568 Bytes

Contents

# frozen_string_literal: true

# See compatibility table at https://www.fastruby.io/blog/ruby/rails/versions/compatibility-table.html

versions_map = {
  "6.0" => %w[2.7],
  "6.1" => %w[2.7 3.0],
  "7.0" => %w[3.1],
  "7.1" => %w[3.2],
  "7.2" => %w[3.3]
}

current_ruby_version = RUBY_VERSION.split(".").first(2).join(".")

versions_map.each do |rails_version, ruby_versions|
  ruby_versions.each do |ruby_version|
    next if ruby_version != current_ruby_version

    appraise "rails-#{rails_version}" do
      gem "rails", "~> #{rails_version}.0"
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sbmt-pact-0.12.2 Appraisals
sbmt-pact-0.12.1 Appraisals
sbmt-pact-0.12.0 Appraisals