-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathRakefile
More file actions
33 lines (26 loc) · 744 Bytes
/
Rakefile
File metadata and controls
33 lines (26 loc) · 744 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
29
30
31
32
$:.unshift File.expand_path("../lib", __FILE__)
require 'rake'
require 'rdoc/task'
require 'rspec/core/rake_task'
require 'bundler'
Bundler::GemHelper.install_tasks
desc 'Default: run specs'
task :default => :spec
desc "Run specs"
RSpec::Core::RakeTask.new do |t|
t.rspec_opts = %w(-fs --color)
end
desc "Run specs with RCov"
RSpec::Core::RakeTask.new(:rcov) do |t|
t.rspec_opts = %w(-fs --color)
t.rcov = true
t.rcov_opts = %w(--exclude "spec/*,gems/*")
end
desc 'Generate documentation for the gem.'
RDoc::Task.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = 'Auditor'
rdoc.options << '--line-numbers' << '--inline-source'
rdoc.rdoc_files.include('README.rdoc')
rdoc.rdoc_files.include('lib/**/*.rb')
end