forked from HamptonMakes/make_resourceful
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Rakefile
31 lines (26 loc) · 800 Bytes
/
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
require 'rake'
require 'rake/rdoctask'
require 'spec/rake/spectask'
desc 'Default: run specs.'
task :default => :spec
spec_files = Rake::FileList["spec/**/*_spec.rb"]
desc "Run specs"
Spec::Rake::SpecTask.new do |t|
t.spec_files = spec_files
t.spec_opts = ["-c"]
end
desc "Generate code coverage"
Spec::Rake::SpecTask.new(:coverage) do |t|
t.spec_files = spec_files
t.rcov = true
t.rcov_opts = ['--exclude', 'spec,/var/lib/gems']
end
desc 'Generate documentation for the make_resourceful plugin.'
Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = 'make_resourceful'
rdoc.options << '--line-numbers' << '--inline-source'
rdoc.main = 'README'
rdoc.rdoc_files.include(FileList.new('*').exclude(/[^A-Z0-9]/))
rdoc.rdoc_files.include('lib/**/*.rb')
end