Skip to content
This repository
Browse code

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 authored March 29, 2010 wycats committed March 28, 2010
4  Rakefile
@@ -72,8 +72,8 @@ Rake::RDocTask.new do |rdoc|
72 72
   rdoc.rdoc_files.include('railties/CHANGELOG')
73 73
   rdoc.rdoc_files.include('railties/MIT-LICENSE')
74 74
   rdoc.rdoc_files.include('railties/README')
75  
-  rdoc.rdoc_files.include('railties/lib/{*.rb,commands/*.rb,rails/*.rb,generators/*.rb}')
76  
-  rdoc.rdoc_files.exclude('railties/lib/vendor/*')
  75
+  rdoc.rdoc_files.include('railties/lib/**/*.rb')
  76
+  rdoc.rdoc_files.exclude('railties/lib/rails/generators/**/templates/*')
77 77
 
78 78
   rdoc.rdoc_files.include('activerecord/README')
79 79
   rdoc.rdoc_files.include('activerecord/CHANGELOG')
8  railties/Rakefile
... ...
@@ -1,5 +1,3 @@
1  
-require File.expand_path('../../load_paths', __FILE__)
2  
-
3 1
 require 'rake'
4 2
 require 'rake/testtask'
5 3
 require 'rake/rdoctask'
@@ -60,10 +58,8 @@ Rake::RDocTask.new { |rdoc|
60 58
   rdoc.options << '--charset' << 'utf-8'
61 59
   rdoc.template = ENV['template'] ? "#{ENV['template']}.rb" : '../doc/template/horo'
62 60
   rdoc.rdoc_files.include('README', 'CHANGELOG')
63  
-  rdoc.rdoc_files.include('lib/*.rb')
64  
-  rdoc.rdoc_files.include('lib/rails/*.rb')
65  
-  rdoc.rdoc_files.include('lib/rails/generators/*.rb')
66  
-  rdoc.rdoc_files.include('lib/rails/commands/**/*.rb')
  61
+  rdoc.rdoc_files.include('lib/**/*.rb')
  62
+  rdoc.rdoc_files.exclude('lib/rails/generators/**/templates/*')
67 63
 }
68 64
 
69 65
 # Generate GEM ----------------------------------------------------------------------------

0 notes on commit d39ec81

Please sign in to comment.
Something went wrong with that request. Please try again.