rsanheim / brain_buster

BrainBuster - a logic captcha for Rails

This URL has Read+Write access

rsanheim (author)
Mon Jun 29 13:54:03 -0700 2009
commit  5854ddbef46e75f2f1ae75746687c4fb997364bf
tree    548a040a3c2a7fcc90338e3da14fb3ad5f2a4e26
parent  e910b2addbbafe0a2b473c2272ecf3ec5412ea4e
brain_buster / Rakefile
f79efb51 » rob 2008-02-11 updating docs and stuff 1 require 'rake'
2 require 'rake/testtask'
3 require 'rake/rdoctask'
4
5854ddbe » rsanheim 2009-06-29 Overhaul test suite and mas... 5 begin
6 gem "spicycode-micronaut"
7 require 'micronaut/rake_task'
8
9 Micronaut::RakeTask.new(:examples) do |examples|
10 examples.pattern = 'examples/**/*_example.rb'
11 examples.ruby_opts << '-Ilib -Iexamples'
12 end
f79efb51 » rob 2008-02-11 updating docs and stuff 13
5854ddbe » rsanheim 2009-06-29 Overhaul test suite and mas... 14 Micronaut::RakeTask.new(:rcov) do |examples|
15 examples.pattern = 'examples/**/*_example.rb'
16 examples.rcov_opts = %[-Ilib -Iexamples --exclude "gems/*,/Library/Ruby/*,config/*" --text-summary --sort coverage]
17 examples.rcov = true
18 end
19
20 task :default => 'rcov'
21 rescue LoadError
22 puts "Micronaut not available to run tests. Install it with: sudo gem install spicycode-micronaut -s http://gems.github.com"
f79efb51 » rob 2008-02-11 updating docs and stuff 23 end
24
25 desc 'Generate documentation for the brain_buster plugin.'
26 Rake::RDocTask.new(:rdoc) do |rdoc|
27 rdoc.rdoc_dir = 'rdoc'
28 rdoc.title = 'BrainBuster'
29 rdoc.options << '--line-numbers' << '--inline-source'
30 rdoc.rdoc_files.include('README')
31 rdoc.rdoc_files.include('lib/**/*.rb')
32 end
8845bebc » rsanheim 2009-06-29 Hooking up garlic support f... 33
34 begin
35 gem "ianwhite-garlic"
36 require 'garlic/tasks'
37 rescue LoadError => e
38 puts "Garlic not available for testing against multiple versions of Rails. To install: "
39 puts "gem install ianwhite-garlic --source=http://gems.github.com"
40 exit(1)
41 end