forked from szimek/efax
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Rakefile
45 lines (39 loc) · 1.25 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
require 'rubygems'
require 'rake'
require 'rake/clean'
require 'rake/gempackagetask'
require 'rake/rdoctask'
require 'rake/testtask'
require 'spec/rake/spectask'
begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "efax"
gem.summary = 'Ruby library for accessing the eFax Developer service'
gem.authors = ["Szymon Nowak", "Pawel Kozlowski", "Dr Nic Williams"]
gem.email = "[email protected]"
gem.homepage = "https://github.com/szimek/efax"
gem.rubyforge_project = "efax"
gem.add_dependency('hpricot', '>= 0.8.1')
gem.add_development_dependency('mocha', '>= 0.9')
end
Jeweler::RubyforgeTasks.new do |rubyforge|
rubyforge.doc_task = "rdoc"
end
rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
end
Rake::RDocTask.new do |rdoc|
files =['README.rdoc', 'lib/**/*.rb']
rdoc.rdoc_files.add(files)
rdoc.main = "README.rdoc" # page to start on
rdoc.title = 'eFax: Ruby library for accessing the eFax Developer service'
rdoc.rdoc_dir = 'rdoc' # rdoc output folder
rdoc.options << '--line-numbers'
end
Rake::TestTask.new do |t|
t.test_files = FileList['test/**/*.rb']
end
Spec::Rake::SpecTask.new do |t|
t.spec_files = FileList['spec/**/*.rb']
end