Skip to content

Commit

Permalink
rdoc should not be required
Browse files Browse the repository at this point in the history
  • Loading branch information
bvandenbos committed Nov 3, 2011
1 parent 7c3ec52 commit 58e06e1
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,21 +1,28 @@
require 'bundler'
require 'rdoc/task'

Bundler::GemHelper.install_tasks

$LOAD_PATH.unshift 'lib'

task :default => :test

# Tests
desc "Run tests"
task :test do
Dir['test/*_test.rb'].each do |f|
require File.expand_path(f)
end
end

Rake::RDocTask.new do |rd|
rd.main = "README.markdown"
rd.rdoc_files.include("README.markdown", "lib/**/*.rb")
rd.rdoc_dir = 'doc'
# Documentation Tasks
begin
require 'rdoc/task'

Rake::RDocTask.new do |rd|
rd.main = "README.markdown"
rd.rdoc_files.include("README.markdown", "lib/**/*.rb")
rd.rdoc_dir = 'doc'
end
rescue LoadError
end

0 comments on commit 58e06e1

Please sign in to comment.