Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix that rake would raise immediately without sdoc installed

  • Loading branch information...
commit df53550b4338d6977c95930a325a1f35b86279b3 1 parent e30d220
@chrisk authored
Showing with 7 additions and 2 deletions.
  1. +7 −2 Rakefile
View
9 Rakefile
@@ -66,13 +66,18 @@ task :clean do
end
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'
Rake::RDocTask.new do |rdoc|
rdoc.title = "FakeWeb 1.3.0 API Documentation"
rdoc.main = "README.rdoc"
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")
end
else
Please sign in to comment.
Something went wrong with that request. Please try again.