-
Notifications
You must be signed in to change notification settings - Fork 100
/
Rakefile
47 lines (36 loc) · 1003 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
47
# frozen_string_literal: true
GEMSPEC = File.expand_path('prawn-table.gemspec', __dir__)
require 'prawn/dev/tasks'
require 'yard'
task default: %i[spec rubocop]
desc "Run all rspec files"
RSpec::Core::RakeTask.new("spec") do |c|
c.rspec_opts = "-t ~unresolved"
end
desc "Show library's code statistics"
task :stats do
require 'code_statistics'
CodeStatistics::TEST_TYPES << "Specs"
CodeStatistics.new( ["Prawn", "lib"],
["Specs", "spec"] ).to_s
end
YARD::Rake::YardocTask.new do |t|
t.options = ['--output-dir', 'doc/html']
end
task :docs => :yard
desc "Generate the 'Prawn by Example' manual"
task :manual do
puts "Building manual..."
require_relative "manual/contents"
puts "The Prawn::Table manual is available at manual.pdf. Happy Prawning!"
end
desc "Run a console with Prawn loaded"
task :console do
require 'irb'
require 'irb/completion'
require "prawn"
require_relative 'lib/prawn/table'
Prawn.debug = true
ARGV.clear
IRB.start
end