Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 45 lines (38 sloc) 1.052 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|
f0336f6 * added RDoc title.
nahi authored
33 load 'lib/httpclient.rb'
e3ae9e2 * version: 2.1.2 -> 2.1.3-SNAPSHOT
nahi authored
34 rdoc.rdoc_dir = 'doc'
f0336f6 * added RDoc title.
nahi authored
35 rdoc.title = "HTTPClient Library Document: Version #{HTTPClient::VERSION}"
792bbbb * added RDoc to httpclient.rb. see #162.
nahi authored
36 rdoc.rdoc_files.include('README.txt')
37 rdoc.rdoc_files.include('lib/httpclient/*.rb')
38 rdoc.rdoc_files.include('lib/httpclient.rb')
e3ae9e2 * version: 2.1.2 -> 2.1.3-SNAPSHOT
nahi authored
39 end
40
c6d461b * added RDoc for httpclient/connection.rb. see #162.
nahi authored
41 task 'tags' do
59bee82 @nahi Added docs for OAuthClient. closes #4.
authored
42 #sh 'rtags --vi lib/httpclient.rb lib/oauthclient.rb lib/hexdump.rb lib/httpclient/*.rb'
43 sh 'ctags lib/httpclient.rb lib/oauthclient.rb lib/hexdump.rb lib/httpclient/*.rb'
c6d461b * added RDoc for httpclient/connection.rb. see #162.
nahi authored
44 end
Something went wrong with that request. Please try again.