Skip to content

Commit

Permalink
Use rdoc extension to encourage GitHub to use correct formatting.
Browse files Browse the repository at this point in the history
Thanks to a suggestion from Rohit Arondekar (rohit).
  • Loading branch information
floehopper committed Jun 21, 2010
1 parent befde5c commit 6778ec1
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
14 changes: 7 additions & 7 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ end

desc 'Generate RDoc'
Rake::RDocTask.new('rdoc') do |task|
task.main = 'README'
task.main = 'README.rdoc'
task.title = "Mocha #{Mocha::VERSION}"
task.rdoc_dir = 'doc'
template = File.expand_path(File.join(File.dirname(__FILE__), "templates", "html_with_google_analytics.rb"))
Expand All @@ -78,10 +78,10 @@ Rake::RDocTask.new('rdoc') do |task|
task.template = template
end
task.rdoc_files.include(
'README',
'RELEASE',
'COPYING',
'MIT-LICENSE',
'README.rdoc',
'RELEASE.rdoc',
'COPYING.rdoc',
'MIT-LICENSE.rdoc',
'agiledox.txt',
'lib/mocha/api.rb',
'lib/mocha/mock.rb',
Expand Down Expand Up @@ -158,8 +158,8 @@ def build_specification(version = Mocha::VERSION)
s.rubyforge_project = 'mocha'

s.has_rdoc = true
s.extra_rdoc_files = ['README', 'COPYING']
s.rdoc_options << '--title' << 'Mocha' << '--main' << 'README' << '--line-numbers'
s.extra_rdoc_files = ['README.rdoc', 'COPYING.rdoc']
s.rdoc_options << '--title' << 'Mocha' << '--main' << 'README.rdoc' << '--line-numbers'

s.add_dependency('rake')
s.files = FileList['{lib,test,examples}/**/*.rb', '[A-Z]*'].exclude('TODO').to_a
Expand Down

0 comments on commit 6778ec1

Please sign in to comment.