mirror of https://github.com/rails/rails
Merge pull request #38574 from jonathanhefner/plugin-remove-rdoc-rake-task
Remove :rdoc Rake task in generated plugin
This commit is contained in:
commit
4174f56b6c
|
@ -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*
|
||||||
|
|
|
@ -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__)
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
/.bundle/
|
/.bundle/
|
||||||
|
/doc/
|
||||||
/log/*.log
|
/log/*.log
|
||||||
/pkg/
|
/pkg/
|
||||||
/tmp/
|
/tmp/
|
||||||
|
|
Loading…
Reference in New Issue