Permalink
Browse files

Support Rake 0.9

  • Loading branch information...
1 parent 3e9a14e commit 58e7e4f7d8799d4dbf5bb6e2393659fe3d8a96f6 @dkastner dkastner committed May 24, 2011
Showing with 3 additions and 0 deletions.
  1. +2 −0 lib/rocco/tasks.rb
  2. +1 −0 rocco.gemspec
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
+
def initialize(task_name, dest='docs/', sources='lib/**/*.rb', options={})
@name = task_name
@dest = dest[-1] == ?/ ? dest : "#{dest}/"
View
@@ -45,6 +45,7 @@ Gem::Specification.new do |s|
s.test_files = s.files.select {|path| path =~ /^test\/.*_test.rb/}
s.add_dependency 'rdiscount'
s.add_dependency 'mustache'
+ s.add_development_dependency 'rake', '>= 0.9.0'
s.has_rdoc = false
s.homepage = "http://rtomayko.github.com/rocco/"

0 comments on commit 58e7e4f

Please sign in to comment.