Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Make Railties RDoc task work again [#4291 state:resolved]

Signed-off-by: wycats <wycats@gmail.com>
  • Loading branch information...
commit d39ec8195546075afb5830c7f5a53bb74946521c 1 parent d31e03f
Andrew White pixeltrix authored wycats committed
Showing with 4 additions and 8 deletions.
  1. +2 −2 Rakefile
  2. +2 −6 railties/Rakefile
4 Rakefile
View
@@ -72,8 +72,8 @@ Rake::RDocTask.new do |rdoc|
rdoc.rdoc_files.include('railties/CHANGELOG')
rdoc.rdoc_files.include('railties/MIT-LICENSE')
rdoc.rdoc_files.include('railties/README')
- rdoc.rdoc_files.include('railties/lib/{*.rb,commands/*.rb,rails/*.rb,generators/*.rb}')
- rdoc.rdoc_files.exclude('railties/lib/vendor/*')
+ rdoc.rdoc_files.include('railties/lib/**/*.rb')
+ rdoc.rdoc_files.exclude('railties/lib/rails/generators/**/templates/*')
rdoc.rdoc_files.include('activerecord/README')
rdoc.rdoc_files.include('activerecord/CHANGELOG')
8 railties/Rakefile
View
@@ -1,5 +1,3 @@
-require File.expand_path('../../load_paths', __FILE__)
-
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
@@ -60,10 +58,8 @@ Rake::RDocTask.new { |rdoc|
rdoc.options << '--charset' << 'utf-8'
rdoc.template = ENV['template'] ? "#{ENV['template']}.rb" : '../doc/template/horo'
rdoc.rdoc_files.include('README', 'CHANGELOG')
- rdoc.rdoc_files.include('lib/*.rb')
- rdoc.rdoc_files.include('lib/rails/*.rb')
- rdoc.rdoc_files.include('lib/rails/generators/*.rb')
- rdoc.rdoc_files.include('lib/rails/commands/**/*.rb')
+ rdoc.rdoc_files.include('lib/**/*.rb')
+ rdoc.rdoc_files.exclude('lib/rails/generators/**/templates/*')
}
# Generate GEM ----------------------------------------------------------------------------
Please sign in to comment.
Something went wrong with that request. Please try again.