Skip to content

Commit 6a3e2bc

Browse files
committed
Pin version of rdoc used in rails apps
1 parent 8c6c959 commit 6a3e2bc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

example_app_generator/generate_app.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
gsub_file "Gemfile", /.*debugger.*/, ''
2424
gsub_file "Gemfile", /.*byebug.*/, "gem 'byebug', '~> 9.0.6'"
2525
gsub_file "Gemfile", /.*puma.*/, ""
26+
if RUBY_VERSION < '2.2.2'
27+
gsub_file "Gemfile", /.*rdoc.*/, "gem 'rdoc', '< 6'"
28+
end
2629

2730
if Rails::VERSION::STRING >= '5.0.0'
2831
append_to_file('Gemfile', "gem 'rails-controller-testing', :git => 'https://github.com/rails/rails-controller-testing'\n")

0 commit comments

Comments
 (0)