forked from yob/pdf-reader
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
34 lines (29 loc) · 838 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 "bundler"
Bundler.setup
require 'rake'
require 'rake/rdoctask'
require 'rspec/core/rake_task'
require 'roodi'
require 'roodi_task'
desc "Default Task"
task :default => [ :spec ]
# run all rspecs
desc "Run all rspec files"
RSpec::Core::RakeTask.new("spec") do |t|
t.rspec_opts = ["--color", "--format progress"]
t.ruby_opts = "-w"
end
# Genereate the RDoc documentation
desc "Create documentation"
Rake::RDocTask.new("doc") do |rdoc|
rdoc.title = "pdf-reader"
rdoc.rdoc_dir = (ENV['CC_BUILD_ARTIFACTS'] || 'doc') + '/rdoc'
rdoc.rdoc_files.include('README.rdoc')
rdoc.rdoc_files.include('TODO')
rdoc.rdoc_files.include('CHANGELOG')
rdoc.rdoc_files.include('MIT-LICENSE')
rdoc.rdoc_files.include('lib/**/*.rb')
rdoc.options << "--inline-source"
end
RoodiTask.new 'roodi', ['lib/**/*.rb']