forked from westonganger/paper_trail-association_tracking
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Appraisals
56 lines (49 loc) · 1.45 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# Specify here only version constraints that differ from `paper_trail.gemspec`.
#
# > The dependencies in your Appraisals file are combined with dependencies in
# > your Gemfile, so you don't need to repeat anything that's the same for each
# > appraisal. If something is specified in both the Gemfile and an appraisal,
# > the version from the appraisal takes precedence.
# > https://github.com/thoughtbot/appraisal
### WHEN UPDATING THESE VERSIONS DONT FORGOT TO UPDATE .github/workflows/test.yml
pt_versions = [
'~>9.2', ### Likely not compatible with the new PT 12 loading mechanism
'~>10.0', ### Likely not compatible with the new PT 12 loading mechanism
'~>11.0', ### Likely not compatible with the new PT 12 loading mechanism
'~>12.0',
]
ar_versions = [
[
'~>5.2',
pt_versions,
],
[
'~>6.0',
pt_versions,
],
[
'~>6.1',
pt_versions,
],
[
'~>7.0',
pt_versions,
],
]
db_gems = ['sqlite3', 'mysql2', 'pg']
ar_versions.each do |ar_ver, compatible_pt_versions|
compatible_pt_versions.each do |pt_ver|
db_gems.each do |db_gem|
appraise "#{db_gem}_ar_#{ar_ver.sub('~>','')} pt_#{pt_ver.sub('~>','')}" do
gem "activerecord", ar_ver
if pt_ver == 'master'
gem "paper_trail", git: 'https://github.com/paper-trail-gem/paper_trail.git'
else
gem "paper_trail", pt_ver
end
gem "rails-controller-testing"
gem db_gem
end
end
end
end