Permalink
Browse files

Merge pull request #46 from dkastner/master

Rake 0.9 Support
  • Loading branch information...
2 parents 3e9a14e + c1a5017 commit 7ba75f050357b70739b330ac8374803b7860c08c @rtomayko rtomayko committed May 24, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/rocco/tasks.rb
View
@@ -58,6 +58,8 @@ def self.make(dest='docs/', source_files='lib/**/*.rb', options={})
# `Rocco::Task.new` takes a task name, the destination directory docs
# should be built under, and a source file pattern or file list.
class Task
+ include Rake::DSL if defined?(Rake::DSL)
+
def initialize(task_name, dest='docs/', sources='lib/**/*.rb', options={})
@name = task_name
@dest = dest[-1] == ?/ ? dest : "#{dest}/"

0 comments on commit 7ba75f0

Please sign in to comment.