forked from sci-phi/downspout
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
53 lines (45 loc) · 1.63 KB
/
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
43
44
45
46
47
48
49
50
51
52
53
# Rakefile
require 'rubygems'
$LOAD_PATH.unshift('lib')
require 'rake'
require 'jeweler'
Jeweler::Tasks.new do |gem|
# gem is a Gem::Specification...
# see http://docs.rubygems.org/read/chapter/20 for more options
gem.name = "downspout"
gem.homepage = "http://github.com/sci-phi/downspout"
gem.license = "MIT"
gem.summary = %Q{Downspout is an easy-to-use ruby library for downloading files from URLs.}
gem.description = %Q{Downspout is an easy-to-use ruby library for downloading files from URLs, supporting both HTTP & FTP protocols. HTTP downloads can use either Net::HTTP, or libcurl (via the Curb gem)}
gem.email = "phi.sanders@sciphi.me"
gem.authors = ["Phi.Sanders"]
gem.files = FileList['lib/**/*.rb', '[A-Z]*', 'test/**/*'].to_a
gem.add_development_dependency "jeweler", "~> 1.5.2"
gem.add_development_dependency "rcov", ">= 0.9.9"
gem.add_development_dependency "shoulda", ">= 2.11.3"
gem.add_development_dependency "mocha", ">= 0.9.12"
gem.add_development_dependency "curb", ">= 0.7.15"
end
Jeweler::RubygemsDotOrgTasks.new
require 'rdoc'
require 'rake/rdoctask'
Rake::RDocTask.new do |rdoc|
version = File.exist?('VERSION') ? File.read('VERSION') : ""
rdoc.rdoc_dir = 'rdoc'
rdoc.title = "downspout #{version}"
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
end
require 'rcov/rcovtask'
Rcov::RcovTask.new do |test|
test.libs << 'test'
test.pattern = 'test/**/test_*.rb'
test.verbose = true
end
require 'rake/testtask'
Rake::TestTask.new(:test) do |test|
test.libs << 'lib' << 'test'
test.pattern = 'test/**/*_test.rb'
test.verbose = true
end
task :default => :test