public
Description: the blackbook gem on github.
Homepage:
Clone URL: git://github.com/purzelrakete/blackbook.git
jjolma (author)
Wed Dec 10 08:04:39 -0800 2008
purzelrakete (committer)
Tue Dec 16 16:29:49 -0800 2008
blackbook / Rakefile
100644 40 lines (34 sloc) 1.243 kb
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
# -*- 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 = 'dave.myron@contentfree.com'
  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