Skip to content
This repository has been archived by the owner on Mar 4, 2018. It is now read-only.

Commit

Permalink
Refactoring the yard documentation task
Browse files Browse the repository at this point in the history
  • Loading branch information
Kurtis Rainbolt-Greene committed Dec 17, 2011
1 parent 3dd3dd9 commit 495673c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Rakefile
@@ -1,5 +1,6 @@
require 'rubygems'
require 'bundler'
require 'yard'
require 'bundler/gem_tasks'
Bundler::GemHelper.install_tasks

Expand All @@ -21,10 +22,9 @@ Rake::TestTask.new(:test) do |test|
test.verbose = true
end

# Pull in the YARD documentation gem with taks.
require 'yard'
YARD::Rake::YardocTask.new do |t|
t.files = FileList['lib/**/*.rb']
desc "Setup YARD's documentation task with the files in lib."
YARD::Rake::YardocTask.new :doc do |config|
config.files = Dir['lib/**/*.rb']
end

task :default => :test

0 comments on commit 495673c

Please sign in to comment.