Skip to content

Commit 165e9e4

Browse files
committed
Don't run Rails 5.0+ appraisals on Ruby < 2.2.2
They're excluded in the Travis matrix but for convenience also prevent them from running when using the `rake appraisals` command.
1 parent 1a9ba1f commit 165e9e4

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

Appraisals

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,16 @@ appraise "rails-4-2" do
44
gem "activemodel", "~> 4.2.0"
55
end
66

7-
appraise "rails-5-0" do
8-
gem "railties", "~> 5.0.0"
9-
gem "actionpack", "~> 5.0.0"
10-
gem "activemodel", "~> 5.0.0"
11-
end
7+
if RUBY_VERSION >= "2.2.2"
8+
appraise "rails-5-0" do
9+
gem "railties", "~> 5.0.0"
10+
gem "actionpack", "~> 5.0.0"
11+
gem "activemodel", "~> 5.0.0"
12+
end
1213

13-
appraise "rails-5-1" do
14-
gem "railties", ">= 5.1.0", "< 5.2"
15-
gem "actionpack", ">= 5.1.0", "< 5.2"
16-
gem "activemodel", ">= 5.1.0", "< 5.2"
14+
appraise "rails-5-1" do
15+
gem "railties", ">= 5.1.0", "< 5.2"
16+
gem "actionpack", ">= 5.1.0", "< 5.2"
17+
gem "activemodel", ">= 5.1.0", "< 5.2"
18+
end
1719
end

0 commit comments

Comments
 (0)