-
Notifications
You must be signed in to change notification settings - Fork 2
/
Rakefile
57 lines (46 loc) · 1.43 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
54
55
56
57
require 'rubygems'
require 'spec'
require 'rake/rdoctask'
require 'spec/rake/spectask'
require 'rake/gempackagetask'
$LOAD_PATH.unshift File.dirname(__FILE__) + '/lib'
require 'garlic'
begin
require 'jeweler'
Jeweler::Tasks.new do |s|
s.name = "garlic"
s.version = Garlic::Version::String
s.summary = "Test your project across multiple versions of rails/dependencies"
s.description = "CI tool to test your project across multiple versions of rails/dependencies"
s.email = "ian.w.white@gmail.com"
s.homepage = "http://github.com/ianwhite/garlic"
s.authors = ["Ian White"]
s.rubyforge_project = 'garlic'
end
Jeweler::GemcutterTasks.new
Jeweler::RubyforgeTasks.new do |rubyforge|
rubyforge.doc_task = "doc"
end
namespace :release do
desc "Release current version to github, gemcutter and rubyforge"
task :all => ['release', 'gemcutter:release', 'rubyforge:release']
end
rescue LoadError
puts "Jeweler not available for gem tasks. Install it with: sudo gem install jeweler"
end
begin
require 'hanna/rdoctask'
rescue LoadError
end
Rake::RDocTask.new(:doc) do |d|
d.options << '--all'
d.rdoc_dir = 'doc'
d.main = 'README.rdoc'
d.title = "garlic API Docs"
d.rdoc_files.include('README.rdoc', 'History.txt', 'License.txt', 'Todo.txt', 'VERSION', 'lib/**/*.rb')
end
task :rdoc => :doc
Spec::Rake::SpecTask.new(:spec) do |t|
t.warning = true
end
task :default => :spec