Skip to content

Commit 0d4547b

Browse files
committed
Specify rdoc version when Ruby version is under 2.2
Because of ruby/rdoc@51b03c3
1 parent 8d2b95c commit 0d4547b

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
@@ -44,7 +49,6 @@ if RUBY_VERSION < '2.0.0'
4449
gem 'mime-types', '< 3'
4550
end
4651

47-
4852
# Capybara versions that support RSpec 3 only support RUBY_VERSION >= 1.9.3
4953
if RUBY_VERSION >= '1.9.3'
5054
if /5(\.|-)[1-9]\d*/ === RAILS_VERSION || "master" == RAILS_VERSION

0 commit comments

Comments
 (0)