markbates / mack-more

All the extra stuff you could want for the Mack Framework.

This URL has Read+Write access

markbates (author)
Mon Oct 06 11:19:35 -0700 2008
commit  6a58d6a30390690c950c9b7adeaeeef7194f9716
tree    3ee98e1d71fd13e751125c716829acb6ebdacbd5
parent  2b553b896ca7f97b3653f6336b0fcb218084aaa5
mack-more / Rakefile
100644 100 lines (77 sloc) 2.079 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
require File.join(File.dirname(__FILE__), "common_rake_tasks", "rake_task_requires")
GEMS = full_gem_list
 
namespace :install do
  
  desc "Installs all the mack-more gems"
  task :all do
    GEMS.each do |gem|
      sh("cd mack-#{gem} && rake install")
    end
  end
  
  GEMS.each do |gem|
    desc "Installs the mack-#{gem} gem."
    task "#{gem}" do
      sh("cd mack-#{gem} && rake install")
    end
  end
  
end
 
namespace :rdoc do
  
  desc "Runs RDoc on all the mack-more gems."
  task :all do
    GEMS.each do |gem|
      sh("cd mack-#{gem} && rake rerdoc")
    end
  end
  
  task :destroy do
    GEMS.each do |gem|
      sh("cd mack-#{gem} && rm -rf doc")
    end
  end
  
  GEMS.each do |gem|
    desc "Runs RDoc on the mack-#{gem} gem."
    task "#{gem}" do
      sh("cd mack-#{gem} && rake rerdoc")
    end
  end
  
  desc "Compiles all the RDoc for all the mack-more gems into the mack-more/doc directory."
  task :integrated do
    sh("rdoc --force --line-numbers --inline-source --exclude spec --exclude example --exclude common_rake_tasks --title 'mack-more' --op mack-more/doc")
  end
  
end
 
namespace :release do
  
  task :all do
    GEMS.each do |gem|
      sh("cd mack-#{gem} && rake release")
    end
  end
  
  GEMS.each do |gem|
    task "#{gem}" do
      sh("cd mack-#{gem} && rake release")
    end
  end
  
end
 
namespace :test do
  
  desc "Runs the test suite on all the mack-more gems."
  task :all do
    GEMS.each do |gem|
      sh("cd mack-#{gem} && rake")
    end
  end
  
  GEMS.each do |gem|
    desc "Runs the test suite for the mack-#{gem} gem."
    task "#{gem}" do
      sh("cd mack-#{gem} && rake")
    end
  end
  
end
 
desc "Runs the test suite on all the mack-more gems."
task :default => "test:all"
 
desc "Installs all the mack-more gems"
task :install => "install:all"
 
desc "Runs RDoc on all the mack-more gems."
task :rdoc => "rdoc:all"
 
desc "Remove doc folder for all mack-more gems"
task :destroy_rdoc => "rdoc:destroy"
 
GEMS.each do |gem|
  desc "Runs the test suite for the mack-#{gem} gem."
  task gem => "test:#{gem}"
end