forked from lynndylanhurley/devise_token_auth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAppraisals
26 lines (25 loc) · 1.41 KB
/
Appraisals
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# frozen_string_literal: true
[
{ ruby: '2.7', rails: '6.0', database: 'postgresql', gem: 'pg', version: '~> 1.2.3' },
{ ruby: '3.0', rails: '6.0', database: 'postgresql', gem: 'pg', version: '~> 1.2.3' },
{ ruby: '2.7', rails: '6.1', database: 'postgresql', gem: 'pg', version: '~> 1.2.3' },
{ ruby: '3.0', rails: '6.1', database: 'postgresql', gem: 'pg', version: '~> 1.2.3' },
{ ruby: '2.7', rails: '6.0', database: 'mysql2', gem: 'mysql2', version: '~> 0.5.3' },
{ ruby: '3.0', rails: '6.0', database: 'mysql2', gem: 'mysql2', version: '~> 0.5.3' },
{ ruby: '2.7', rails: '6.1', database: 'mysql2', gem: 'mysql2', version: '~> 0.5.3' },
{ ruby: '3.0', rails: '6.1', database: 'mysql2', gem: 'mysql2', version: '~> 0.5.3' },
{ ruby: '2.7', rails: '6.0', database: 'mongodb', gem: 'mongoid', version: '~> 7.2.2' },
{ ruby: '3.0', rails: '6.0', database: 'mongodb', gem: 'mongoid', version: '~> 7.2.2' },
{ ruby: '2.7', rails: '6.1', database: 'mongodb', gem: 'mongoid', version: '~> 7.2.2' },
{ ruby: '3.0', rails: '6.1', database: 'mongodb', gem: 'mongoid', version: '~> 7.2.2' },
].each do |matrix|
appraise "ruby-#{matrix[:ruby]}-rails-#{matrix[:rails]}-#{matrix[:database]}" do
gem 'rails', "~> #{matrix[:rails]}"
gem "#{matrix[:gem]}", "#{matrix[:version]}"
if matrix[:database] == "mongodb"
gem 'database_cleaner-mongoid'
else
gem 'database_cleaner-active_record'
end
end
end