Rakefile in cap_gun-0.2.0 vs Rakefile in cap_gun-0.2.1

- old
+ new

@@ -32,5 +32,22 @@ if RUBY_VERSION =~ /1.8/ task :default => [:check_dependencies, :rcov] else task :default => [:check_dependencies, :examples] end + +begin + %w{sdoc sdoc-helpers rdiscount}.each { |name| gem name } + require 'sdoc_helpers' +rescue LoadError => ex + puts "sdoc support not enabled:" + puts ex.inspect +end + +require 'rake/rdoctask' +Rake::RDocTask.new do |rdoc| + version = File.exist?('VERSION') ? File.read('VERSION') : '' + rdoc.rdoc_dir = 'rdoc' + rdoc.title = "cap_gun #{version}" + rdoc.rdoc_files.include('README*') + rdoc.rdoc_files.include('lib/**/*.rb') +end