%w[5.2 6.1 7.0].each do |version| appraise "rails.#{version}" do gem "activesupport", "~> #{version}.0" gem "activerecord", "~> #{version}.0" if version == "5.2" gem "ddtrace", "< 1.0" else gem "ddtrace", "> 1.0" end end end