# frozen_string_literal: true RAILS_VERSIONS = { '4.2.11' => { 'activerecord-oracle_enhanced-adapter' => '~> 1.6.0', 'sqlite3' => '~> 1.3.0', 'mysql2' => '0.4.10', 'ruby-oci8' => '', }, '5.0.7' => { 'activerecord-oracle_enhanced-adapter' => '~> 1.7.0', 'sqlite3' => '~> 1.3.0', 'mysql2' => '', 'ruby-oci8' => '', }, '5.1.7' => { 'activerecord-oracle_enhanced-adapter' => '~> 1.8.0', 'sqlite3' => '~> 1.3.0', 'mysql2' => '', 'ruby-oci8' => '', }, '5.2.3' => { 'activerecord-oracle_enhanced-adapter' => '~> 5.2.0', 'sqlite3' => '~> 1.3.0', 'mysql2' => '', 'ruby-oci8' => '', }, '6.0.1' => { 'activerecord-oracle_enhanced-adapter' => '~> 6.0.0', 'sqlite3' => '~> 1.4.0', 'mysql2' => '', 'ruby-oci8' => '', }, }.freeze RAILS_VERSIONS.each do |version, gems| appraise "rails_#{version}" do gem 'rails', version gems.each do |name, gem_version| if gem_version.empty? gem name else gem name, gem_version end end end end