Skip to content

Commit

Permalink
Specify rdoc version when Ruby version is under 2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
benoittgt committed Jul 16, 2018
1 parent 33e41f2 commit c809ae3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@ end

gem 'sqlite3', '~> 1.3.6'

# Version 6.0.4 of rdoc requires Ruby 2.2
if RUBY_VERSION < '2.2'
gem 'rdoc', '< 6.0.4'
else
gem 'rdoc', '>= 6.0.4'
end

if RUBY_VERSION >= '2.4.0'
gem 'json', '>= 2.0.2'
end
Expand All @@ -39,7 +46,6 @@ if RUBY_VERSION < '2.0.0'
gem 'mime-types', '< 3'
end


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

0 comments on commit c809ae3

Please sign in to comment.