Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 37 lines (30 sloc) 0.658 kB
e3ae9e2 * version: 2.1.2 -> 2.1.3-SNAPSHOT
nahi authored
1 require 'rake'
2 require 'rake/testtask'
3 require 'rake/rdoctask'
4
5 task :default => :gem
6
7 begin
8 require 'rake/gempackagetask'
9 load 'httpclient.gemspec'
10 Rake::GemPackageTask.new(SPEC) do |pkg|
11 pkg.need_zip = true
12 pkg.need_tar = true
13 end
14 rescue LoadError
15 end
16
17 begin
18 require 'rcov/rcovtask'
19 Rcov::RcovTask.new("coverage") do |rcov|
20 rcov.libs << 'lib'
21 rcov.pattern = 'test/test_*.rb'
22 end
23 rescue LoadError
24 end
25
26 Rake::TestTask.new("test") do |test|
27 test.libs << 'lib'
28 test.warning = true
29 test.pattern = 'test/test_*.rb'
30 end
31
32 Rake::RDocTask.new("doc") do |rdoc|
33 rdoc.rdoc_dir = 'doc'
34 rdoc.rdoc_files.include('lib/**/*.rb')
35 end
36
Something went wrong with that request. Please try again.