Skip to content

Commit

Permalink
Fix that rake would raise immediately without sdoc installed
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisk committed Nov 18, 2013
1 parent e30d220 commit df53550
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Rakefile
Expand Up @@ -66,13 +66,18 @@ task :clean do
end end


if RUBY_VERSION >= "1.8.7" if RUBY_VERSION >= "1.8.7"
require 'sdoc' rdoc_options = %w(--show-hash --charset utf-8 --github)
begin
require 'sdoc'
rdoc_options += %w(--format sdoc)
rescue LoadError
end
require 'rdoc/task' require 'rdoc/task'
Rake::RDocTask.new do |rdoc| Rake::RDocTask.new do |rdoc|
rdoc.title = "FakeWeb 1.3.0 API Documentation" rdoc.title = "FakeWeb 1.3.0 API Documentation"
rdoc.main = "README.rdoc" rdoc.main = "README.rdoc"
rdoc.rdoc_dir = "doc" rdoc.rdoc_dir = "doc"
rdoc.options += %w(--format sdoc --show-hash --charset utf-8 --github) rdoc.options += rdoc_options
rdoc.rdoc_files.include("README.rdoc", "CHANGELOG", "LICENSE.txt", "lib/*.rb") rdoc.rdoc_files.include("README.rdoc", "CHANGELOG", "LICENSE.txt", "lib/*.rb")
end end
else else
Expand Down

0 comments on commit df53550

Please sign in to comment.