forked from westonganger/paper_trail-association_tracking
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathAppraisals
More file actions
41 lines (35 loc) · 1.03 KB
/
Appraisals
File metadata and controls
41 lines (35 loc) · 1.03 KB
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
# 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
pt_versions = [
'~>9.0',
'~>10.0',
'master',
]
ar_versions = [
[
'~>5.2.0',
pt_versions,
],
[
'~>6.0.0',
pt_versions.select{|x| x.sub('~>', '').to_f >= 10 || x == 'master' },
],
]
ar_versions.each do |ar_ver, compatible_pt_versions|
compatible_pt_versions.each do |pt_ver|
appraise "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"
end
end
end