public
Description: All the extra stuff you could want for the Mack Framework.
Homepage: http://www.mackframework.com
Clone URL: git://github.com/markbates/mack-more.git
mack-more / Rakefile
100644 140 lines (107 sloc) 2.817 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
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 :multiruby do
  
  namespace :install do
 
    desc "Installs all the mack-more gems into multiruby"
    task :all do
      GEMS.each do |gem|
        sh("cd mack-#{gem} && rake multiruby:install")
      end
    end
 
    GEMS.each do |gem|
      desc "Installs the mack-#{gem} gem."
      task "#{gem}" do
        sh("cd mack-#{gem} && rake multiruby:install")
      end
    end
 
  end
  
end
 
namespace :freeze do
  
  desc "Installs all the mack-more gems"
  task :all do
    GEMS.each do |gem|
      sh("cd mack-#{gem} && rake gem:package:freezer")
    end
  end
  
  GEMS.each do |gem|
    desc "Installs the mack-#{gem} gem."
    task "#{gem}" do
      sh("cd mack-#{gem} && rake gem:package:freezer")
    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