Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 41 lines (35 sloc) 1.104 kB
e70a0cb @cee-dub Rearrange repo to make it Rubygem friendly
cee-dub authored
1 require 'rake'
2 require 'rake/testtask'
3 require 'rake/rdoctask'
4 require 'rcov/rcovtask'
5
6 begin
7 require 'jeweler'
8 Jeweler::Tasks.new do |s|
9 s.name = "csshttprequest"
10 s.summary = %Q{CSSHttpRequest is cross-domain AJAX using CSS as a transport.}
11 s.email = "ping+csshttprequest@nb.io"
12 s.homepage = "http://github.com/nbio/csshttprequest"
13 s.description = "Please see the latest info at http://nb.io/hacks/csshttprequest/"
14 s.authors = ["Cameron Walters", "Randy Reddig"]
15 end
16 rescue LoadError
17 puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
18 end
19
20 Rake::TestTask.new do |t|
21 t.libs << 'lib'
22 t.pattern = 'test/**/*_test.rb'
23 t.verbose = false
24 end
25
26 Rake::RDocTask.new do |rdoc|
27 rdoc.rdoc_dir = 'rdoc'
28 rdoc.title = 'try-jeweler'
29 rdoc.options << '--line-numbers' << '--inline-source'
30 rdoc.rdoc_files.include('README*')
31 rdoc.rdoc_files.include('lib/**/*.rb')
32 end
33
34 Rcov::RcovTask.new do |t|
35 t.libs << 'test'
36 t.test_files = FileList['test/**/*_test.rb']
37 t.verbose = true
38 end
39
40 task :default => :rcov
Something went wrong with that request. Please try again.