forked from ambethia/recaptcha
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
29 lines (24 loc) · 740 Bytes
/
Rakefile
File metadata and controls
29 lines (24 loc) · 740 Bytes
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
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
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