Skip to content

Commit a1d9f81

Browse files
committed
Specify rdoc version when Ruby version is under 2.2
Because of ruby/rdoc@51b03c3
1 parent 33e41f2 commit a1d9f81

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Gemfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ end
2424

2525
gem 'sqlite3', '~> 1.3.6'
2626

27+
# Version 6.0.4 of rdoc requires Ruby 2.2
28+
if RUBY_VERSION < '2.2'
29+
gem 'rdoc', '< 6.0.4'
30+
end
31+
2732
if RUBY_VERSION >= '2.4.0'
2833
gem 'json', '>= 2.0.2'
2934
end
@@ -39,7 +44,6 @@ if RUBY_VERSION < '2.0.0'
3944
gem 'mime-types', '< 3'
4045
end
4146

42-
4347
# Capybara versions that support RSpec 3 only support RUBY_VERSION >= 1.9.3
4448
if RUBY_VERSION >= '1.9.3'
4549
if /5(\.|-)1/ === RAILS_VERSION || "master" == RAILS_VERSION

0 commit comments

Comments
 (0)