-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
42 lines (36 loc) · 834 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
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
task :default => :gem
begin
require 'rake/gempackagetask'
load 'httpclient.gemspec'
Rake::GemPackageTask.new(SPEC) do |pkg|
pkg.need_zip = true
pkg.need_tar = true
end
rescue LoadError
end
begin
require 'rcov/rcovtask'
Rcov::RcovTask.new("coverage") do |rcov|
rcov.libs << 'lib'
rcov.pattern = 'test/test_*.rb'
end
rescue LoadError
end
Rake::TestTask.new("test") do |test|
test.libs << 'lib'
test.warning = true
test.pattern = 'test/test_*.rb'
end
Rake::RDocTask.new("doc") do |rdoc|
rdoc.rdoc_dir = 'doc'
rdoc.rdoc_files.include('README.txt')
rdoc.rdoc_files.include('lib/httpclient/*.rb')
rdoc.rdoc_files.include('lib/httpclient.rb')
end
task 'tags' do
chdir 'lib'
sh 'rtags --vi httpclient.rb httpclient/*.rb'
end