forked from akzhan/runit-man
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathRakefile
41 lines (31 loc) · 876 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
# encoding: utf-8
require 'rubygems'
begin
require 'bundler'
Bundler.setup(:default, :development, :test)
Bundler::GemHelper.install_tasks
rescue LoadError
$stderr.puts "Bundler not available. Install it with: gem install bundler"
end
$LOAD_PATH.unshift('./lib')
require 'runit-man/version'
begin
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new do |t|
t.rspec_opts = ["-c", "-f progress"]
end
RSpec::Core::RakeTask.new(:rcov) do |t|
t.rcov = true
t.ruby_opts = '-w'
t.rspec_opts = ["-c", "-f progress"]
t.rcov_opts = %q[-Ilib --exclude "spec/*,gems/*"]
end
rescue LoadError
$stderr.puts "RSpec not available. Install it with: gem install rspec-core rspec-expectations"
end
begin
require 'yard'
YARD::Rake::YardocTask.new
rescue LoadError
$stderr.puts "YARD not available. Install it with: gem install yard"
end