public
Description: garlic is a set of commands/rake tasks to help with CI across multiple rails/dependency versions
Homepage: http://blog.ardes.com/2008/4/24/continuous-integration-with-garlic
Clone URL: git://github.com/ianwhite/garlic.git
garlic / Rakefile
100644 58 lines (46 sloc) 1.463 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
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