forked from sprinkle-tool/sprinkle
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Rakefile
34 lines (28 loc) · 827 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
32
33
34
require 'rubygems'
require 'rake'
require 'rspec/core/rake_task'
require 'rdoc/task'
require './lib/sprinkle/version'
task "inst" => [:clobber, :build] do
puts `gem install pkg/sprinkle-*.gem`
end
desc 'Default: run specs.'
task :default => :spec
desc "Run specs"
RSpec::Core::RakeTask.new do |t|
t.pattern = "./spec/**/*_spec.rb" # don't need this, it's default.
# Put spec opts in a file named .rspec in root
end
desc "Generate code coverage"
RSpec::Core::RakeTask.new(:coverage) do |t|
t.pattern = "./spec/**/*_spec.rb" # don't need this, it's default.
t.rcov = true
t.rcov_opts = ['--exclude', 'spec']
end
RDoc::Task.new do |rdoc|
version = Sprinkle::Version
rdoc.rdoc_dir = 'rdoc'
rdoc.title = "sprinkle #{version}"
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
end