/
Rakefile
40 lines (33 loc) · 1.07 KB
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
require 'echoe'
Echoe.new('recaptcha', '0.1.0') do |p|
p.description = "This plugin adds helpers for the ReCAPTCHA API "
p.url = "http://github.com/ambethia/recaptcha/tree/master"
p.author = "Jason L. Perry"
p.email = "jasper@ambethia.com"
p.ignore_pattern = ["pkg/**/*"]
p.development_dependencies = []
end
desc 'Default: run unit tests.'
task :default => :test
desc 'Test the recaptcha plugin.'
Rake::TestTask.new(:test) do |t|
t.libs << 'lib'
t.pattern = 'test/**/*_test.rb'
t.verbose = true
end
ALLISON = "/Library/Ruby/Gems/1.8/gems/allison-2.0.3/lib/allison.rb"
Rake::RDocTask.new do |rd|
rd.main = "README.rdoc"
rd.rdoc_files.include "README.rdoc", "LICENSE", "lib/**/*.rb"
rd.title = "ReCAPTCHA"
rd.options << '-N' # line numbers
rd.options << '-S' # inline source
rd.template = ALLISON if File.exist?(ALLISON)
end
desc "Upload the rdoc to ambethia.com"
task "publish" do
sh "scp -r html/* ambethia.com:~/www/ambethia.com/recaptcha"
end