Merge pull request #38574 from jonathanhefner/plugin-remove-rdoc-rake-task

Remove :rdoc Rake task in generated plugin
This commit is contained in:
Kasper Timm Hansen 2020-04-05 23:38:21 +02:00 committed by GitHub
commit 4174f56b6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 9 deletions

View File

@ -1,3 +1,9 @@
* No longer include `rake rdoc` task when generating plugins.
To generate docs, use the `rdoc lib` command instead.
*Jonathan Hefner*
* Allow relative paths with trailing slashes to be passed to `rails test`. * Allow relative paths with trailing slashes to be passed to `rails test`.
*Eugene Kenny* *Eugene Kenny*

View File

@ -1,13 +1,4 @@
require "bundler/setup" require "bundler/setup"
require "rdoc/task"
RDoc::Task.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = '<%= camelized_modules %>'
rdoc.options << '--line-numbers'
rdoc.rdoc_files.include('README.md')
rdoc.rdoc_files.include('lib/**/*.rb')
end
<% if engine? && !options[:skip_active_record] && with_dummy_app? -%> <% if engine? && !options[:skip_active_record] && with_dummy_app? -%>
APP_RAKEFILE = File.expand_path("<%= dummy_path -%>/Rakefile", __dir__) APP_RAKEFILE = File.expand_path("<%= dummy_path -%>/Rakefile", __dir__)

View File

@ -1,4 +1,5 @@
/.bundle/ /.bundle/
/doc/
/log/*.log /log/*.log
/pkg/ /pkg/
/tmp/ /tmp/