Sha256: 98326d2856021b1f2ed1042f3f01e13c5cc743dc2d06f22d59f3b57bfeb52575

Contents?: true

Size: 548 Bytes

Versions: 4

Compression:

Stored size: 548 Bytes

Contents

# frozen_string_literal: true

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

versions_map = {
  "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

4 entries across 4 versions & 1 rubygems

Version Path
sbmt-kafka_producer-3.2.0 Appraisals
sbmt-kafka_producer-3.1.1 Appraisals
sbmt-kafka_producer-3.1.0 Appraisals
sbmt-kafka_producer-3.0.0 Appraisals