-
Notifications
You must be signed in to change notification settings - Fork 43
/
Rakefile
31 lines (26 loc) · 814 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 'rdoc/task'
require 'rspec/core/rake_task'
desc 'Default: run specs.'
task :default => :spec
spec_files = Rake::FileList["spec/**/*_spec.rb"]
desc "Run specs"
RSpec::Core::RakeTask.new(:spec) do |t|
t.pattern = "spec/**/*_spec.rb"
t.rspec_opts = ["-c"]
end
desc "Generate code coverage"
RSpec::Core::RakeTask.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