1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Use native include/exclude instead of doing it by hand

This commit is contained in:
Jeremy Kemper 2008-06-18 20:13:21 -07:00
parent c52d9530c3
commit 6e70573123

View file

@ -36,7 +36,8 @@ Rake::RDocTask.new { |rdoc|
rdoc.template = "#{ENV['template']}.rb" if ENV['template'] rdoc.template = "#{ENV['template']}.rb" if ENV['template']
rdoc.rdoc_files.include('README', 'CHANGELOG') rdoc.rdoc_files.include('README', 'CHANGELOG')
rdoc.rdoc_files.include('lib/active_support.rb') rdoc.rdoc_files.include('lib/active_support.rb')
rdoc.rdoc_files.include(Dir['lib/active_support/**/*.rb'] - Dir['lib/active_support/vendor/**/*.rb']) rdoc.rdoc_files.include('lib/active_support/**/*.rb')
rdoc.rdoc_files.exclude('lib/active_support/vendor/*')
} }
spec = Gem::Specification.new do |s| spec = Gem::Specification.new do |s|