-
Notifications
You must be signed in to change notification settings - Fork 3
/
Rakefile
47 lines (39 loc) · 1.08 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
41
42
43
44
45
46
47
require 'rubygems'
require 'rake/gempackagetask'
require 'rake/rdoctask'
require 'rake/testtask'
require 'rcov/rcovtask'
SPEC = Gem::Specification.new do |spec|
spec.name = "zerenity"
spec.version = "1.3"
spec.author = "Farrel Lifson"
spec.email = "farrel.lifson@gmail.com"
spec.homepage = "http://www.aimred.com/projects/zerenity"
spec.platform = Gem::Platform::RUBY
spec.summary = "A Zenity clone for Ruby"
spec.files = Dir.glob("{lib,examples,test}/**/*")
spec.require_path = "lib"
spec.autorequire = "zerenity"
spec.has_rdoc = true
spec.extra_rdoc_files = ["README","CHANGELOG"]
end
Rake::GemPackageTask.new(SPEC) do |pkg|
pkg.need_tar = true
end
Rake::RDocTask.new do |rdoc|
rdoc.main = "README"
rdoc.rdoc_files.include("README","CHANGELOG","lib/**/*.rb")
rdoc.rdoc_dir = "doc"
end
Rake::TestTask.new do |test|
test.test_files = ['test/ts_zerenity.rb']
end
task :stats do
require 'code_statistics'
CodeStatistics.new(
["Code", "lib"],
["Units", "test"]).to_s
end
Rcov::RcovTask.new do |rcov|
rcov.test_files = FileList['test/ts_zerenity.rb']
end