-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathRakefile
41 lines (37 loc) · 1.21 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
# Rakefile
require 'rubygems'
require 'rake'
require 'rake/testtask'
require 'rdoc/task'
require 'echoe'
require 'cbac/version'
# Setting default task
desc 'Default: run unit tests.'
task :default => :test
# Test task
#desc 'Test CBAC plugin.'
#Rake::TestTask.new(:test) do |t|
# t.libs << 'lib'
# t.pattern = 'test/**/test_*.rb'
# t.verbose = true
#end
# Documentation task
desc 'Generate documentation for CBAC plugin.'
Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = 'Cbac'
rdoc.options << '--line-numbers' << '--inline-source'
rdoc.rdoc_files.include('README')
rdoc.rdoc_files.include('lib/**/*.rb')
end
# Echo information for packaging
Echoe.new('cbac', Cbac::VERSION) do |p|
p.summary = "CBAC - Simple authorization system for Rails applications."
p.description = "Simple authorization system for Rails applications. Allows you to develop applications with a mixed role based authorization and a context based authorization model. Does not supply authentication."
p.url = "http://cbac.rubyforge.org"
p.author = "Bert Meerman"
p.email = "[email protected]"
p.ignore_pattern = []
p.retain_gemspec = true
p.development_dependencies = []
end