Add the has_many_polymorphs plugin
[cs356-p2-videostore.git] / vendor / plugins / has_many_polymorphs / Rakefile
1
2 require 'rubygems'
3 gem 'echoe', '>=2.2'
4 require 'echoe'
5 require 'lib/has_many_polymorphs/rake_task_redefine_task'
6
7 Echoe.new("has_many_polymorphs") do |p|  
8   p.project = "fauna"
9   p.summary = "An ActiveRecord plugin for self-referential and double-sided polymorphic associations."
10   p.url = "http://blog.evanweaver.com/files/doc/fauna/has_many_polymorphs/"  
11   p.docs_host = "blog.evanweaver.com:~/www/bax/public/files/doc/"  
12   p.dependencies = ["activerecord"]
13   p.rdoc_pattern = /polymorphs\/association|polymorphs\/class_methods|polymorphs\/reflection|polymorphs\/autoload|polymorphs\/configuration|README|CHANGELOG|TODO|LICENSE|templates\/migration\.rb|templates\/tag\.rb|templates\/tagging\.rb|templates\/tagging_extensions\.rb/    
14   p.require_signed = true
15 end
16
17 desc 'Run the test suite.'
18 Rake::Task.redefine_task("test") do
19    puts "Warning! Tests must be run with the plugin installed in a functioning Rails\nenvironment."
20    system "ruby -Ibin:lib:test test/unit/polymorph_test.rb #{ENV['METHOD'] ? "--name=#{ENV['METHOD']}" : ""}"
21 end