-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathRakefile
More file actions
28 lines (23 loc) · 752 Bytes
/
Rakefile
File metadata and controls
28 lines (23 loc) · 752 Bytes
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
require 'rake'
require 'rake/testtask'
require 'rdoc/task'
require 'bundler'
# Silence warning from recent versions of bundler (1.0.12) for forward compatibility with rake > v0.9.0
include Rake::DSL if defined? ::Rake::DSL
Bundler::GemHelper.install_tasks
desc 'Default: run unit tests.'
task :default => :test
desc 'Test the authorize plugin.'
Rake::TestTask.new(:test) do |t|
t.libs << 'test/test'
t.pattern = 'test/test/**/*_test.rb'
t.verbose = true
end
desc 'Generate documentation for the authorize plugin.'
Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = 'Authorize'
rdoc.options << '--line-numbers' << '--inline-source'
rdoc.rdoc_files.include('README')
rdoc.rdoc_files.include('lib/**/*.rb')
end