Skip to content

Commit 5284d27

Browse files
committed
Specify rdoc version when Ruby version is under 2.2 on generated_app
Because of ruby/rdoc@51b03c3
1 parent 19b3943 commit 5284d27

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

example_app_generator/generate_app.rb

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
gsub_file "Gemfile", /.*debugger.*/, ''
2323
gsub_file "Gemfile", /.*byebug.*/, "gem 'byebug', '~> 9.0.6'"
2424
gsub_file "Gemfile", /.*puma.*/, ""
25+
gsub_file "Gemfile", /.*rdoc.*/, "gem 'rdoc', '< 6.0.4'"
2526

2627
if Rails::VERSION::STRING >= '5.0.0'
2728
append_to_file('Gemfile', "gem 'rails-controller-testing', :git => 'https://github.com/rails/rails-controller-testing'\n")
@@ -47,11 +48,6 @@
4748
| gem 'mime-types', '< 3'
4849
|end
4950
|
50-
|# Version 6.0.4 of rdoc requires Ruby 2.2
51-
|if RUBY_VERSION < '2.2'
52-
| gem 'rdoc', '< 6.0.4'
53-
|end
54-
|
5551
|gem 'rspec-rails',
5652
| :path => '#{rspec_rails_repo_path}',
5753
| :groups => [:development, :test]

0 commit comments

Comments
 (0)