Skip to content

Commit c809ae3

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

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Gemfile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@ 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+
else
31+
gem 'rdoc', '>= 6.0.4'
32+
end
33+
2734
if RUBY_VERSION >= '2.4.0'
2835
gem 'json', '>= 2.0.2'
2936
end
@@ -39,7 +46,6 @@ if RUBY_VERSION < '2.0.0'
3946
gem 'mime-types', '< 3'
4047
end
4148

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

0 commit comments

Comments
 (0)