forked from remvee/exifr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
44 lines (34 loc) · 973 Bytes
/
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
41
42
43
44
# Copyright (c) 2006-2013 - R.W. van 't Veer
begin
require 'rdoc/task'
rescue LoadError
require 'rake/rdoctask'
end
require 'rake/testtask'
task :default => :test
desc 'Generate site'
task :site => :rdoc do
system 'rsync -av --delete doc/ remvee@rubyforge.org:/var/www/gforge-projects/exifr'
end
Rake::RDocTask.new do |rd|
rd.title = 'EXIF Reader for Ruby API Documentation'
rd.main = "README.rdoc"
rd.rdoc_dir = "doc/api"
rd.rdoc_files.include("README.rdoc", "lib/**/*.rb")
end
Rake::TestTask.new do |t|
t.libs << 'lib' << 'tests'
t.test_files = FileList['tests/*_test.rb']
end
begin
require 'rcov/rcovtask'
Rcov::RcovTask.new do |t|
t.libs << 'lib' << 'tests'
t.test_files = FileList['tests/*_test.rb']
end
desc 'Remove all artifacts left by testing and packaging'
task :clean => [:clobber_rdoc, :clobber_rcov]
rescue LoadError
desc 'Remove all artifacts left by testing and packaging'
task :clean => [:clobber_rdoc]
end