forked from IceskYsl/blackbook
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Rakefile
39 lines (34 loc) · 1.21 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
# -*- ruby -*-
require 'rubygems'
require 'hoe'
$LOAD_PATH.unshift 'lib'
require 'blackbook'
begin
require 'rcov/rcovtask'
rescue LoadError
end
Hoe.new('blackbook', Blackbook::VERSION) do |p|
p.rubyforge_name = 'contentfree'
p.author = 'Contentfree'
p.email = '[email protected]'
p.summary = 'Blackbook handles the nitty-gritty of importing contacts from various service providers and contact lists and exporting them in a useful format.'
# FIX these were broken with the switch from README.txt to README.markdown
# p.description = p.paragraphs_of('README.txt', 1).join("\n\n")
# p.url = p.paragraphs_of('README.txt', 0).first.split(/\n/)[1..-1]
# p.changes = p.paragraphs_of('History.txt', 0..1).join("\n\n")
p.extra_deps << [ "mechanize", ">= 0.7.0" ]
p.extra_deps << [ "fastercsv", ">= 1.2.0" ]
p.clean_globs << 'coverage'
p.clean_globs << 'pkg'
p.clean_globs << 'doc'
p.clean_globs << 'ri'
end
task :release_and_publish => [:release, :publish_docs]
begin
Rcov::RcovTask.new do |t|
t.test_files = FileList['test/test*.rb']
t.verbose = true
#t.rcov_opts << "--exclude rcov.rb,hpricot.rb,hpricot/.*\.rb"
end
rescue NameError
end