-
Notifications
You must be signed in to change notification settings - Fork 1
/
Rakefile
46 lines (35 loc) · 783 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
35
36
37
38
39
40
41
42
43
44
45
46
require "bundler"
Bundler.setup
Bundler::GemHelper.install_tasks
require "rake"
require "yaml"
require "rdoc/task"
require "rspec/core/rake_task"
desc "Run all examples"
RSpec::Core::RakeTask.new(:spec) do |t|
t.rspec_opts = %w[--color]
t.verbose = false
end
task :clobber do
rm_rf 'pkg'
rm_rf 'tmp'
rm_rf 'coverage'
end
namespace :rcov do
task :cleanup do
rm_rf 'coverage.data'
rm_rf 'coverage'
end
RSpec::Core::RakeTask.new :spec do |t|
t.rcov = true
end
end
task :rcov => ["rcov:cleanup", "rcov:spec"]
task(:release).clear_prerequisites.clear_actions
task :default => [:spec]
Rake::RDocTask.new do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = "RPush gem"
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
end