Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 53 lines (45 sloc) 1.44 kb
184f7b8 @hukl Initial commit to righttp.
authored
1 require 'rubygems'
2 require 'rake'
3
4 begin
5 require 'jeweler'
6 Jeweler::Tasks.new do |gem|
7 gem.name = "righttp"
4755285 @hukl updated description
authored
8 gem.summary = %Q{A HTTP client library from scratch for ruby1.9}
9 gem.description = %Q{A HTTP client library written from scratch that is easy to use and offers full flexibility}
184f7b8 @hukl Initial commit to righttp.
authored
10 gem.email = "contact@smyck.org"
11 gem.homepage = "http://github.com/hukl/righttp"
12 gem.authors = ["hukl"]
13 # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
14 end
15 Jeweler::GemcutterTasks.new
16 rescue LoadError
17 puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
18 end
19
20 require 'rake/testtask'
21 Rake::TestTask.new(:test) do |test|
22 test.libs << 'lib' << 'test'
23 test.pattern = 'test/**/test_*.rb'
24 test.verbose = true
25 end
26
27 begin
28 require 'rcov/rcovtask'
29 Rcov::RcovTask.new do |test|
30 test.libs << 'test'
31 test.pattern = 'test/**/test_*.rb'
32 test.verbose = true
33 end
34 rescue LoadError
35 task :rcov do
36 abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
37 end
38 end
39
40 task :test => :check_dependencies
41
42 task :default => :test
43
44 require 'rake/rdoctask'
45 Rake::RDocTask.new do |rdoc|
46 version = File.exist?('VERSION') ? File.read('VERSION') : ""
47
48 rdoc.rdoc_dir = 'rdoc'
49 rdoc.title = "righttp #{version}"
50 rdoc.rdoc_files.include('README*')
51 rdoc.rdoc_files.include('lib/**/*.rb')
52 end
Something went wrong with that request. Please try again.