public
Description: zena is a state-of-the-art CMS (content managment system) based on Ruby on Rails with a focus on usability, ease of customization and web 2.0 goodness (application like behaviour).
Homepage: http://zenadmin.org
Clone URL: git://github.com/zena/zena.git
zena / Rakefile
100644 64 lines (52 sloc) 1.676 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
# Add your own tasks in files placed in lib/tasks ending in .rake,
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
 
require(File.join(File.dirname(__FILE__), 'config', 'boot'))
 
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
 
require 'tasks/rails'
 
# BONES gem management
 
begin
  require 'bones'
  Bones.setup
rescue LoadError
  begin
    load 'tasks/setup.rb'
  rescue LoadError
    raise RuntimeError, '### please install the "bones" gem ###'
  end
end
 
ensure_in_path 'lib'
require 'zena'
 
task :default => 'zena:test'
 
PROJ.name = 'zena'
PROJ.authors = 'Gaspard Bucher'
PROJ.email = 'gaspard@teti.ch'
PROJ.url = 'http://zenadmin.org'
PROJ.version = Zena::VERSION
PROJ.rubyforge.name = 'zena'
PROJ.readme_file = 'README.rdoc'
 
PROJ.spec.opts << '--color'
reject_paths = File.read(File.join(File.dirname(__FILE__),'.gitignore')).map do |git_ignore_path|
  %r{#{git_ignore_path.chomp.gsub('.', '\\.').gsub('*', '.*')}}
end
 
PROJ.gem.files = (
  ['History.txt', 'README.rdoc', 'db/schema.rb'] +
  ['app', 'bin', 'bricks', 'config', 'db', 'lib', 'locale', 'public', 'rails', 'vendor', 'test'].map do |d|
    Dir.glob("#{d}/**/*").reject do |path|
      File.basename(path) =~ /^\./ || !reject_paths.map { |regexp| regexp =~ path ? true : nil}.compact.empty?
    end
  end
).flatten
 
Zena.gem_configuration.each do |gem_name, gem_config|
  if gem_config
    if gem_config['development_only']
      PROJ.gem.development_dependencies << [gem_name, [gem_config['version']]]
    else
      PROJ.gem.dependencies << [gem_name, [gem_config['version']]]
    end
  else
    PROJ.gem.dependencies << [gem_name]
  end
end
# EOF