Skip to content

Commit

Permalink
Pin version of rdoc used in rails apps
Browse files Browse the repository at this point in the history
  • Loading branch information
JonRowe committed Jun 23, 2018
1 parent 8c6c959 commit 6a3e2bc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions example_app_generator/generate_app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
gsub_file "Gemfile", /.*debugger.*/, ''
gsub_file "Gemfile", /.*byebug.*/, "gem 'byebug', '~> 9.0.6'"
gsub_file "Gemfile", /.*puma.*/, ""
if RUBY_VERSION < '2.2.2'
gsub_file "Gemfile", /.*rdoc.*/, "gem 'rdoc', '< 6'"
end

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

0 comments on commit 6a3e2bc

Please sign in to comment.