Support for Rake < 0.9

This commit is contained in:
Derek Kastner 2011-05-24 15:14:29 -04:00
parent 58e7e4f7d8
commit c1a5017468
2 changed files with 1 additions and 2 deletions

View File

@ -58,7 +58,7 @@ class Rocco
# `Rocco::Task.new` takes a task name, the destination directory docs # `Rocco::Task.new` takes a task name, the destination directory docs
# should be built under, and a source file pattern or file list. # should be built under, and a source file pattern or file list.
class Task class Task
include Rake::DSL include Rake::DSL if defined?(Rake::DSL)
def initialize(task_name, dest='docs/', sources='lib/**/*.rb', options={}) def initialize(task_name, dest='docs/', sources='lib/**/*.rb', options={})
@name = task_name @name = task_name

View File

@ -45,7 +45,6 @@ Gem::Specification.new do |s|
s.test_files = s.files.select {|path| path =~ /^test\/.*_test.rb/} s.test_files = s.files.select {|path| path =~ /^test\/.*_test.rb/}
s.add_dependency 'rdiscount' s.add_dependency 'rdiscount'
s.add_dependency 'mustache' s.add_dependency 'mustache'
s.add_development_dependency 'rake', '>= 0.9.0'
s.has_rdoc = false s.has_rdoc = false
s.homepage = "http://rtomayko.github.com/rocco/" s.homepage = "http://rtomayko.github.com/rocco/"