forked from tcocca/active_pdftk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
29 lines (25 loc) · 688 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
require 'rubygems'
begin
require 'bundler'
Bundler::GemHelper.install_tasks
rescue LoadError
task(:build){abort "`gem install bundler` to build gem"}
task(:install){abort "`gem install bundler` to install gem"}
task(:release){abort "`gem install bundler` to release gem"}
end
begin
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new
rescue LoadError
task(:spec){abort "`gem install rspec` to run specs"}
end
task :test => :spec
task :default => :spec
begin
require 'yard'
YARD::Rake::YardocTask.new do |t|
t.options << "--files" << "CHANGELOG.rdoc,LICENSE"
end
rescue LoadError
task(:yardoc){abort "`gem install yard` to generate documentation"}
end