This repository has been archived by the owner. It is now read-only.

Rake 0.9 Support #46

Merged
merged 2 commits into from May 24, 2011

Conversation

2 participants
Contributor

dkastner commented May 24, 2011

Rake 0.9 requires classes that define tasks, etc. to include Rake::DSL

Owner

rtomayko commented May 24, 2011

Perfect thanks. Do you know off hand if this also works on Rake < 0.9?

lib/rocco/tasks.rb
@@ -58,6 +58,8 @@ class Rocco
# `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
+
@rtomayko

rtomayko May 24, 2011

Owner

Can you change this to include Rake::DSL if defined?(Rake::DSL) ...

rocco.gemspec
@@ -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'
@rtomayko

rtomayko May 24, 2011

Owner

... and remove this.

Thanks, will definitely merge.

Owner

rtomayko commented May 24, 2011

Beautiful. Thanks!

rtomayko added a commit that referenced this pull request May 24, 2011

@rtomayko rtomayko merged commit 7ba75f0 into rtomayko:master May 24, 2011

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.