-
Notifications
You must be signed in to change notification settings - Fork 7
/
Rakefile
39 lines (32 loc) · 848 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
require 'benchmark'
require 'rake'
require 'rake/clean'
require 'rake/testtask'
require 'rdoc/task'
require 'rubygems/package_task'
desc 'Default task (test)'
task :default => [:test]
Rake::TestTask.new('test') do |test|
test.pattern = 'test/test_*.rb'
test.warning = true
end
Rake::TestTask.new('benchmark') do |test|
test.pattern = 'test/benchmark.rb'
end
SPECFILE = 'twofish.gemspec'
if File.exist?(SPECFILE)
spec = eval( File.read(SPECFILE) )
Gem::PackageTask.new(spec) do |pkg|
pkg.need_tar = true
end
end
RDoc::Task.new do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = 'twofish.rb'
rdoc.options << '--line-numbers'
rdoc.options << '--charset' << 'utf-8'
rdoc.options << '--main' << 'README.rdoc'
rdoc.options << '--all'
rdoc.rdoc_files.include('README.rdoc')
rdoc.rdoc_files.include(Dir[ 'lib/**/*' ])
end